{-# 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.SWF.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.SWF.Types.HistoryEvent where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.ActivityTaskCancelRequestedEventAttributes
import Amazonka.SWF.Types.ActivityTaskCanceledEventAttributes
import Amazonka.SWF.Types.ActivityTaskCompletedEventAttributes
import Amazonka.SWF.Types.ActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.ActivityTaskScheduledEventAttributes
import Amazonka.SWF.Types.ActivityTaskStartedEventAttributes
import Amazonka.SWF.Types.ActivityTaskTimedOutEventAttributes
import Amazonka.SWF.Types.CancelTimerFailedEventAttributes
import Amazonka.SWF.Types.CancelWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionCanceledEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionCompletedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionStartedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionTerminatedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionTimedOutEventAttributes
import Amazonka.SWF.Types.CompleteWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.DecisionTaskCompletedEventAttributes
import Amazonka.SWF.Types.DecisionTaskScheduledEventAttributes
import Amazonka.SWF.Types.DecisionTaskStartedEventAttributes
import Amazonka.SWF.Types.DecisionTaskTimedOutEventAttributes
import Amazonka.SWF.Types.EventType
import Amazonka.SWF.Types.ExternalWorkflowExecutionCancelRequestedEventAttributes
import Amazonka.SWF.Types.ExternalWorkflowExecutionSignaledEventAttributes
import Amazonka.SWF.Types.FailWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionCompletedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionScheduledEventAttributes
import Amazonka.SWF.Types.LambdaFunctionStartedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionTimedOutEventAttributes
import Amazonka.SWF.Types.MarkerRecordedEventAttributes
import Amazonka.SWF.Types.RecordMarkerFailedEventAttributes
import Amazonka.SWF.Types.RequestCancelActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.ScheduleActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.ScheduleLambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.StartChildWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.StartChildWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.StartLambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.StartTimerFailedEventAttributes
import Amazonka.SWF.Types.TimerCanceledEventAttributes
import Amazonka.SWF.Types.TimerFiredEventAttributes
import Amazonka.SWF.Types.TimerStartedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCancelRequestedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCanceledEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCompletedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionContinuedAsNewEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionSignaledEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionStartedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionTerminatedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionTimedOutEventAttributes

-- | Event within a workflow execution. A history event can be one of these
-- types:
--
-- -   @ActivityTaskCancelRequested@ – A @RequestCancelActivityTask@
--     decision was received by the system.
--
-- -   @ActivityTaskCanceled@ – The activity task was successfully
--     canceled.
--
-- -   @ActivityTaskCompleted@ – An activity worker successfully completed
--     an activity task by calling RespondActivityTaskCompleted.
--
-- -   @ActivityTaskFailed@ – An activity worker failed an activity task by
--     calling RespondActivityTaskFailed.
--
-- -   @ActivityTaskScheduled@ – An activity task was scheduled for
--     execution.
--
-- -   @ActivityTaskStarted@ – The scheduled activity task was dispatched
--     to a worker.
--
-- -   @ActivityTaskTimedOut@ – The activity task timed out.
--
-- -   @CancelTimerFailed@ – Failed to process CancelTimer decision. This
--     happens when the decision isn\'t configured properly, for example no
--     timer exists with the specified timer Id.
--
-- -   @CancelWorkflowExecutionFailed@ – A request to cancel a workflow
--     execution failed.
--
-- -   @ChildWorkflowExecutionCanceled@ – A child workflow execution,
--     started by this workflow execution, was canceled and closed.
--
-- -   @ChildWorkflowExecutionCompleted@ – A child workflow execution,
--     started by this workflow execution, completed successfully and was
--     closed.
--
-- -   @ChildWorkflowExecutionFailed@ – A child workflow execution, started
--     by this workflow execution, failed to complete successfully and was
--     closed.
--
-- -   @ChildWorkflowExecutionStarted@ – A child workflow execution was
--     successfully started.
--
-- -   @ChildWorkflowExecutionTerminated@ – A child workflow execution,
--     started by this workflow execution, was terminated.
--
-- -   @ChildWorkflowExecutionTimedOut@ – A child workflow execution,
--     started by this workflow execution, timed out and was closed.
--
-- -   @CompleteWorkflowExecutionFailed@ – The workflow execution failed to
--     complete.
--
-- -   @ContinueAsNewWorkflowExecutionFailed@ – The workflow execution
--     failed to complete after being continued as a new workflow
--     execution.
--
-- -   @DecisionTaskCompleted@ – The decider successfully completed a
--     decision task by calling RespondDecisionTaskCompleted.
--
-- -   @DecisionTaskScheduled@ – A decision task was scheduled for the
--     workflow execution.
--
-- -   @DecisionTaskStarted@ – The decision task was dispatched to a
--     decider.
--
-- -   @DecisionTaskTimedOut@ – The decision task timed out.
--
-- -   @ExternalWorkflowExecutionCancelRequested@ – Request to cancel an
--     external workflow execution was successfully delivered to the target
--     execution.
--
-- -   @ExternalWorkflowExecutionSignaled@ – A signal, requested by this
--     workflow execution, was successfully delivered to the target
--     external workflow execution.
--
-- -   @FailWorkflowExecutionFailed@ – A request to mark a workflow
--     execution as failed, itself failed.
--
-- -   @MarkerRecorded@ – A marker was recorded in the workflow history as
--     the result of a @RecordMarker@ decision.
--
-- -   @RecordMarkerFailed@ – A @RecordMarker@ decision was returned as
--     failed.
--
-- -   @RequestCancelActivityTaskFailed@ – Failed to process
--     RequestCancelActivityTask decision. This happens when the decision
--     isn\'t configured properly.
--
-- -   @RequestCancelExternalWorkflowExecutionFailed@ – Request to cancel
--     an external workflow execution failed.
--
-- -   @RequestCancelExternalWorkflowExecutionInitiated@ – A request was
--     made to request the cancellation of an external workflow execution.
--
-- -   @ScheduleActivityTaskFailed@ – Failed to process
--     ScheduleActivityTask decision. This happens when the decision isn\'t
--     configured properly, for example the activity type specified isn\'t
--     registered.
--
-- -   @SignalExternalWorkflowExecutionFailed@ – The request to signal an
--     external workflow execution failed.
--
-- -   @SignalExternalWorkflowExecutionInitiated@ – A request to signal an
--     external workflow was made.
--
-- -   @StartActivityTaskFailed@ – A scheduled activity task failed to
--     start.
--
-- -   @StartChildWorkflowExecutionFailed@ – Failed to process
--     StartChildWorkflowExecution decision. This happens when the decision
--     isn\'t configured properly, for example the workflow type specified
--     isn\'t registered.
--
-- -   @StartChildWorkflowExecutionInitiated@ – A request was made to start
--     a child workflow execution.
--
-- -   @StartTimerFailed@ – Failed to process StartTimer decision. This
--     happens when the decision isn\'t configured properly, for example a
--     timer already exists with the specified timer Id.
--
-- -   @TimerCanceled@ – A timer, previously started for this workflow
--     execution, was successfully canceled.
--
-- -   @TimerFired@ – A timer, previously started for this workflow
--     execution, fired.
--
-- -   @TimerStarted@ – A timer was started for the workflow execution due
--     to a @StartTimer@ decision.
--
-- -   @WorkflowExecutionCancelRequested@ – A request to cancel this
--     workflow execution was made.
--
-- -   @WorkflowExecutionCanceled@ – The workflow execution was
--     successfully canceled and closed.
--
-- -   @WorkflowExecutionCompleted@ – The workflow execution was closed due
--     to successful completion.
--
-- -   @WorkflowExecutionContinuedAsNew@ – The workflow execution was
--     closed and a new execution of the same type was created with the
--     same workflowId.
--
-- -   @WorkflowExecutionFailed@ – The workflow execution closed due to a
--     failure.
--
-- -   @WorkflowExecutionSignaled@ – An external signal was received for
--     the workflow execution.
--
-- -   @WorkflowExecutionStarted@ – The workflow execution was started.
--
-- -   @WorkflowExecutionTerminated@ – The workflow execution was
--     terminated.
--
-- -   @WorkflowExecutionTimedOut@ – The workflow execution was closed
--     because a time out was exceeded.
--
-- /See:/ 'newHistoryEvent' smart constructor.
data HistoryEvent = HistoryEvent'
  { -- | If the event is of type @WorkflowExecutionCancelRequested@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes :: Prelude.Maybe WorkflowExecutionCancelRequestedEventAttributes,
    -- | If the event is of type @DecisionTaskFailed@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes :: Prelude.Maybe RecordMarkerFailedEventAttributes,
    -- | If the event is of type
    -- @RequestCancelExternalWorkflowExecutionInitiated@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent
-> Maybe
     RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Prelude.Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes,
    -- | Provides the details of the @LambdaFunctionStarted@ event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes :: Prelude.Maybe LambdaFunctionStartedEventAttributes,
    -- | If the event is of type @DecisionTaskScheduled@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes :: Prelude.Maybe DecisionTaskScheduledEventAttributes,
    -- | If the event is of type @WorkflowExecutionCompleted@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes :: Prelude.Maybe WorkflowExecutionCompletedEventAttributes,
    -- | If the event is of type @StartTimerFailed@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes :: Prelude.Maybe StartTimerFailedEventAttributes,
    -- | If the event is of type @ActivityTaskScheduled@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes :: Prelude.Maybe ActivityTaskScheduledEventAttributes,
    -- | If the event is of type @ScheduleActivityTaskFailed@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes :: Prelude.Maybe ScheduleActivityTaskFailedEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionCompleted@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes :: Prelude.Maybe ChildWorkflowExecutionCompletedEventAttributes,
    -- | If the event is of type @MarkerRecorded@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes :: Prelude.Maybe MarkerRecordedEventAttributes,
    -- | Provides the details of the @ScheduleLambdaFunctionFailed@ event. It
    -- isn\'t set for other event types.
    HistoryEvent -> Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes :: Prelude.Maybe ScheduleLambdaFunctionFailedEventAttributes,
    -- | If the event is of type @CompleteWorkflowExecutionFailed@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes :: Prelude.Maybe CompleteWorkflowExecutionFailedEventAttributes,
    -- | Provides the details of the @LambdaFunctionCompleted@ event. It isn\'t
    -- set for other event types.
    HistoryEvent -> Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes :: Prelude.Maybe LambdaFunctionCompletedEventAttributes,
    -- | If the event is of type @RequestCancelExternalWorkflowExecutionFailed@
    -- then this member is set and provides detailed information about the
    -- event. It isn\'t set for other event types.
    HistoryEvent
-> Maybe
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes :: Prelude.Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @TimerCanceled@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes :: Prelude.Maybe TimerCanceledEventAttributes,
    -- | If the event is of type @WorkflowExecutionStarted@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes :: Prelude.Maybe WorkflowExecutionStartedEventAttributes,
    -- | If the event is of type @ActivityTaskCompleted@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes :: Prelude.Maybe ActivityTaskCompletedEventAttributes,
    -- | If the event is of type @DecisionTaskTimedOut@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes :: Prelude.Maybe DecisionTaskTimedOutEventAttributes,
    -- | If the event is of type @CancelTimerFailed@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes :: Prelude.Maybe CancelTimerFailedEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionStarted@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes :: Prelude.Maybe ChildWorkflowExecutionStartedEventAttributes,
    -- | If the event is of type @ActivityTaskCanceled@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes :: Prelude.Maybe ActivityTaskCanceledEventAttributes,
    -- | If the event is of type @ActivityTaskTimedOut@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes :: Prelude.Maybe ActivityTaskTimedOutEventAttributes,
    -- | If the event is of type @DecisionTaskStarted@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes :: Prelude.Maybe DecisionTaskStartedEventAttributes,
    -- | If the event is of type @WorkflowExecutionTerminated@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes :: Prelude.Maybe WorkflowExecutionTerminatedEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionCanceled@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent -> Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes :: Prelude.Maybe ChildWorkflowExecutionCanceledEventAttributes,
    -- | If the event is of type @RequestCancelActivityTaskFailed@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes :: Prelude.Maybe RequestCancelActivityTaskFailedEventAttributes,
    -- | Provides the details of the @LambdaFunctionScheduled@ event. It isn\'t
    -- set for other event types.
    HistoryEvent -> Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes :: Prelude.Maybe LambdaFunctionScheduledEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionTimedOut@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes :: Prelude.Maybe ChildWorkflowExecutionTimedOutEventAttributes,
    -- | If the event is of type @CancelWorkflowExecutionFailed@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes :: Prelude.Maybe CancelWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @StartChildWorkflowExecutionInitiated@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes :: Prelude.Maybe StartChildWorkflowExecutionInitiatedEventAttributes,
    -- | If the event is of type @SignalExternalWorkflowExecutionFailed@ then
    -- this member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes :: Prelude.Maybe SignalExternalWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @ActivityTaskStarted@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes :: Prelude.Maybe ActivityTaskStartedEventAttributes,
    -- | Provides the details of the @StartLambdaFunctionFailed@ event. It isn\'t
    -- set for other event types.
    HistoryEvent -> Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes :: Prelude.Maybe StartLambdaFunctionFailedEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionTerminated@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes :: Prelude.Maybe ChildWorkflowExecutionTerminatedEventAttributes,
    -- | Provides the details of the @LambdaFunctionFailed@ event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes :: Prelude.Maybe LambdaFunctionFailedEventAttributes,
    -- | If the event is of type @WorkflowExecutionCanceled@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes :: Prelude.Maybe WorkflowExecutionCanceledEventAttributes,
    -- | If the event is of type @TimerStarted@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe TimerStartedEventAttributes
timerStartedEventAttributes :: Prelude.Maybe TimerStartedEventAttributes,
    -- | If the event is of type @ActivityTaskcancelRequested@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes :: Prelude.Maybe ActivityTaskCancelRequestedEventAttributes,
    -- | If the event is of type @WorkflowExecutionTimedOut@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes :: Prelude.Maybe WorkflowExecutionTimedOutEventAttributes,
    -- | If the event is of type @WorkflowExecutionSignaled@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes :: Prelude.Maybe WorkflowExecutionSignaledEventAttributes,
    -- | If the event is of type @TimerFired@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe TimerFiredEventAttributes
timerFiredEventAttributes :: Prelude.Maybe TimerFiredEventAttributes,
    -- | If the event is of type @ActivityTaskFailed@ then this member is set and
    -- provides detailed information about the event. It isn\'t set for other
    -- event types.
    HistoryEvent -> Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes :: Prelude.Maybe ActivityTaskFailedEventAttributes,
    -- | If the event is of type @ExternalWorkflowExecutionSignaled@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes :: Prelude.Maybe ExternalWorkflowExecutionSignaledEventAttributes,
    -- | If the event is of type @DecisionTaskCompleted@ then this member is set
    -- and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes :: Prelude.Maybe DecisionTaskCompletedEventAttributes,
    -- | If the event is of type @StartChildWorkflowExecutionFailed@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes :: Prelude.Maybe StartChildWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @ChildWorkflowExecutionFailed@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes :: Prelude.Maybe ChildWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @FailWorkflowExecutionFailed@ then this member
    -- is set and provides detailed information about the event. It isn\'t set
    -- for other event types.
    HistoryEvent -> Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes :: Prelude.Maybe FailWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @ContinueAsNewWorkflowExecutionFailed@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes :: Prelude.Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @SignalExternalWorkflowExecutionInitiated@ then
    -- this member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes :: Prelude.Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes,
    -- | Provides the details of the @LambdaFunctionTimedOut@ event. It isn\'t
    -- set for other event types.
    HistoryEvent -> Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes :: Prelude.Maybe LambdaFunctionTimedOutEventAttributes,
    -- | If the event is of type @WorkflowExecutionFailed@ then this member is
    -- set and provides detailed information about the event. It isn\'t set for
    -- other event types.
    HistoryEvent -> Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes :: Prelude.Maybe WorkflowExecutionFailedEventAttributes,
    -- | If the event is of type @WorkflowExecutionContinuedAsNew@ then this
    -- member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes :: Prelude.Maybe WorkflowExecutionContinuedAsNewEventAttributes,
    -- | If the event is of type @ExternalWorkflowExecutionCancelRequested@ then
    -- this member is set and provides detailed information about the event. It
    -- isn\'t set for other event types.
    HistoryEvent
-> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes :: Prelude.Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes,
    -- | The date and time when the event occurred.
    HistoryEvent -> POSIX
eventTimestamp :: Core.POSIX,
    -- | The type of the history event.
    HistoryEvent -> EventType
eventType :: EventType,
    -- | The system generated ID of the event. This ID uniquely identifies the
    -- event with in the workflow execution history.
    HistoryEvent -> Integer
eventId :: 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, ReadPrec [HistoryEvent]
ReadPrec HistoryEvent
Int -> ReadS HistoryEvent
ReadS [HistoryEvent]
(Int -> ReadS HistoryEvent)
-> ReadS [HistoryEvent]
-> ReadPrec HistoryEvent
-> ReadPrec [HistoryEvent]
-> Read HistoryEvent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HistoryEvent]
$creadListPrec :: ReadPrec [HistoryEvent]
readPrec :: ReadPrec HistoryEvent
$creadPrec :: ReadPrec HistoryEvent
readList :: ReadS [HistoryEvent]
$creadList :: ReadS [HistoryEvent]
readsPrec :: Int -> ReadS HistoryEvent
$creadsPrec :: Int -> ReadS HistoryEvent
Prelude.Read, 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:
--
-- 'workflowExecutionCancelRequestedEventAttributes', 'historyEvent_workflowExecutionCancelRequestedEventAttributes' - If the event is of type @WorkflowExecutionCancelRequested@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'recordMarkerFailedEventAttributes', 'historyEvent_recordMarkerFailedEventAttributes' - If the event is of type @DecisionTaskFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes', 'historyEvent_requestCancelExternalWorkflowExecutionInitiatedEventAttributes' - If the event is of type
-- @RequestCancelExternalWorkflowExecutionInitiated@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'lambdaFunctionStartedEventAttributes', 'historyEvent_lambdaFunctionStartedEventAttributes' - Provides the details of the @LambdaFunctionStarted@ event. It isn\'t set
-- for other event types.
--
-- 'decisionTaskScheduledEventAttributes', 'historyEvent_decisionTaskScheduledEventAttributes' - If the event is of type @DecisionTaskScheduled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'workflowExecutionCompletedEventAttributes', 'historyEvent_workflowExecutionCompletedEventAttributes' - If the event is of type @WorkflowExecutionCompleted@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'startTimerFailedEventAttributes', 'historyEvent_startTimerFailedEventAttributes' - If the event is of type @StartTimerFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'activityTaskScheduledEventAttributes', 'historyEvent_activityTaskScheduledEventAttributes' - If the event is of type @ActivityTaskScheduled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'scheduleActivityTaskFailedEventAttributes', 'historyEvent_scheduleActivityTaskFailedEventAttributes' - If the event is of type @ScheduleActivityTaskFailed@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'childWorkflowExecutionCompletedEventAttributes', 'historyEvent_childWorkflowExecutionCompletedEventAttributes' - If the event is of type @ChildWorkflowExecutionCompleted@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'markerRecordedEventAttributes', 'historyEvent_markerRecordedEventAttributes' - If the event is of type @MarkerRecorded@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'scheduleLambdaFunctionFailedEventAttributes', 'historyEvent_scheduleLambdaFunctionFailedEventAttributes' - Provides the details of the @ScheduleLambdaFunctionFailed@ event. It
-- isn\'t set for other event types.
--
-- 'completeWorkflowExecutionFailedEventAttributes', 'historyEvent_completeWorkflowExecutionFailedEventAttributes' - If the event is of type @CompleteWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'lambdaFunctionCompletedEventAttributes', 'historyEvent_lambdaFunctionCompletedEventAttributes' - Provides the details of the @LambdaFunctionCompleted@ event. It isn\'t
-- set for other event types.
--
-- 'requestCancelExternalWorkflowExecutionFailedEventAttributes', 'historyEvent_requestCancelExternalWorkflowExecutionFailedEventAttributes' - If the event is of type @RequestCancelExternalWorkflowExecutionFailed@
-- then this member is set and provides detailed information about the
-- event. It isn\'t set for other event types.
--
-- 'timerCanceledEventAttributes', 'historyEvent_timerCanceledEventAttributes' - If the event is of type @TimerCanceled@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'workflowExecutionStartedEventAttributes', 'historyEvent_workflowExecutionStartedEventAttributes' - If the event is of type @WorkflowExecutionStarted@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'activityTaskCompletedEventAttributes', 'historyEvent_activityTaskCompletedEventAttributes' - If the event is of type @ActivityTaskCompleted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'decisionTaskTimedOutEventAttributes', 'historyEvent_decisionTaskTimedOutEventAttributes' - If the event is of type @DecisionTaskTimedOut@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'cancelTimerFailedEventAttributes', 'historyEvent_cancelTimerFailedEventAttributes' - If the event is of type @CancelTimerFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'childWorkflowExecutionStartedEventAttributes', 'historyEvent_childWorkflowExecutionStartedEventAttributes' - If the event is of type @ChildWorkflowExecutionStarted@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'activityTaskCanceledEventAttributes', 'historyEvent_activityTaskCanceledEventAttributes' - If the event is of type @ActivityTaskCanceled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'activityTaskTimedOutEventAttributes', 'historyEvent_activityTaskTimedOutEventAttributes' - If the event is of type @ActivityTaskTimedOut@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'decisionTaskStartedEventAttributes', 'historyEvent_decisionTaskStartedEventAttributes' - If the event is of type @DecisionTaskStarted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'workflowExecutionTerminatedEventAttributes', 'historyEvent_workflowExecutionTerminatedEventAttributes' - If the event is of type @WorkflowExecutionTerminated@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'childWorkflowExecutionCanceledEventAttributes', 'historyEvent_childWorkflowExecutionCanceledEventAttributes' - If the event is of type @ChildWorkflowExecutionCanceled@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'requestCancelActivityTaskFailedEventAttributes', 'historyEvent_requestCancelActivityTaskFailedEventAttributes' - If the event is of type @RequestCancelActivityTaskFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'lambdaFunctionScheduledEventAttributes', 'historyEvent_lambdaFunctionScheduledEventAttributes' - Provides the details of the @LambdaFunctionScheduled@ event. It isn\'t
-- set for other event types.
--
-- 'childWorkflowExecutionTimedOutEventAttributes', 'historyEvent_childWorkflowExecutionTimedOutEventAttributes' - If the event is of type @ChildWorkflowExecutionTimedOut@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'cancelWorkflowExecutionFailedEventAttributes', 'historyEvent_cancelWorkflowExecutionFailedEventAttributes' - If the event is of type @CancelWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'startChildWorkflowExecutionInitiatedEventAttributes', 'historyEvent_startChildWorkflowExecutionInitiatedEventAttributes' - If the event is of type @StartChildWorkflowExecutionInitiated@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'signalExternalWorkflowExecutionFailedEventAttributes', 'historyEvent_signalExternalWorkflowExecutionFailedEventAttributes' - If the event is of type @SignalExternalWorkflowExecutionFailed@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'activityTaskStartedEventAttributes', 'historyEvent_activityTaskStartedEventAttributes' - If the event is of type @ActivityTaskStarted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'startLambdaFunctionFailedEventAttributes', 'historyEvent_startLambdaFunctionFailedEventAttributes' - Provides the details of the @StartLambdaFunctionFailed@ event. It isn\'t
-- set for other event types.
--
-- 'childWorkflowExecutionTerminatedEventAttributes', 'historyEvent_childWorkflowExecutionTerminatedEventAttributes' - If the event is of type @ChildWorkflowExecutionTerminated@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'lambdaFunctionFailedEventAttributes', 'historyEvent_lambdaFunctionFailedEventAttributes' - Provides the details of the @LambdaFunctionFailed@ event. It isn\'t set
-- for other event types.
--
-- 'workflowExecutionCanceledEventAttributes', 'historyEvent_workflowExecutionCanceledEventAttributes' - If the event is of type @WorkflowExecutionCanceled@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'timerStartedEventAttributes', 'historyEvent_timerStartedEventAttributes' - If the event is of type @TimerStarted@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'activityTaskCancelRequestedEventAttributes', 'historyEvent_activityTaskCancelRequestedEventAttributes' - If the event is of type @ActivityTaskcancelRequested@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'workflowExecutionTimedOutEventAttributes', 'historyEvent_workflowExecutionTimedOutEventAttributes' - If the event is of type @WorkflowExecutionTimedOut@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'workflowExecutionSignaledEventAttributes', 'historyEvent_workflowExecutionSignaledEventAttributes' - If the event is of type @WorkflowExecutionSignaled@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'timerFiredEventAttributes', 'historyEvent_timerFiredEventAttributes' - If the event is of type @TimerFired@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'activityTaskFailedEventAttributes', 'historyEvent_activityTaskFailedEventAttributes' - If the event is of type @ActivityTaskFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
--
-- 'externalWorkflowExecutionSignaledEventAttributes', 'historyEvent_externalWorkflowExecutionSignaledEventAttributes' - If the event is of type @ExternalWorkflowExecutionSignaled@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'decisionTaskCompletedEventAttributes', 'historyEvent_decisionTaskCompletedEventAttributes' - If the event is of type @DecisionTaskCompleted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'startChildWorkflowExecutionFailedEventAttributes', 'historyEvent_startChildWorkflowExecutionFailedEventAttributes' - If the event is of type @StartChildWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'childWorkflowExecutionFailedEventAttributes', 'historyEvent_childWorkflowExecutionFailedEventAttributes' - If the event is of type @ChildWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'failWorkflowExecutionFailedEventAttributes', 'historyEvent_failWorkflowExecutionFailedEventAttributes' - If the event is of type @FailWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
--
-- 'continueAsNewWorkflowExecutionFailedEventAttributes', 'historyEvent_continueAsNewWorkflowExecutionFailedEventAttributes' - If the event is of type @ContinueAsNewWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'signalExternalWorkflowExecutionInitiatedEventAttributes', 'historyEvent_signalExternalWorkflowExecutionInitiatedEventAttributes' - If the event is of type @SignalExternalWorkflowExecutionInitiated@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'lambdaFunctionTimedOutEventAttributes', 'historyEvent_lambdaFunctionTimedOutEventAttributes' - Provides the details of the @LambdaFunctionTimedOut@ event. It isn\'t
-- set for other event types.
--
-- 'workflowExecutionFailedEventAttributes', 'historyEvent_workflowExecutionFailedEventAttributes' - If the event is of type @WorkflowExecutionFailed@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
--
-- 'workflowExecutionContinuedAsNewEventAttributes', 'historyEvent_workflowExecutionContinuedAsNewEventAttributes' - If the event is of type @WorkflowExecutionContinuedAsNew@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'externalWorkflowExecutionCancelRequestedEventAttributes', 'historyEvent_externalWorkflowExecutionCancelRequestedEventAttributes' - If the event is of type @ExternalWorkflowExecutionCancelRequested@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
--
-- 'eventTimestamp', 'historyEvent_eventTimestamp' - The date and time when the event occurred.
--
-- 'eventType', 'historyEvent_eventType' - The type of the history event.
--
-- 'eventId', 'historyEvent_eventId' - The system generated ID of the event. This ID uniquely identifies the
-- event with in the workflow execution history.
newHistoryEvent ::
  -- | 'eventTimestamp'
  Prelude.UTCTime ->
  -- | 'eventType'
  EventType ->
  -- | 'eventId'
  Prelude.Integer ->
  HistoryEvent
newHistoryEvent :: UTCTime -> EventType -> Integer -> HistoryEvent
newHistoryEvent
  UTCTime
pEventTimestamp_
  EventType
pEventType_
  Integer
pEventId_ =
    HistoryEvent' :: Maybe WorkflowExecutionCancelRequestedEventAttributes
-> Maybe RecordMarkerFailedEventAttributes
-> Maybe
     RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe LambdaFunctionStartedEventAttributes
-> Maybe DecisionTaskScheduledEventAttributes
-> Maybe WorkflowExecutionCompletedEventAttributes
-> Maybe StartTimerFailedEventAttributes
-> Maybe ActivityTaskScheduledEventAttributes
-> Maybe ScheduleActivityTaskFailedEventAttributes
-> Maybe ChildWorkflowExecutionCompletedEventAttributes
-> Maybe MarkerRecordedEventAttributes
-> Maybe ScheduleLambdaFunctionFailedEventAttributes
-> Maybe CompleteWorkflowExecutionFailedEventAttributes
-> Maybe LambdaFunctionCompletedEventAttributes
-> Maybe
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe TimerCanceledEventAttributes
-> Maybe WorkflowExecutionStartedEventAttributes
-> Maybe ActivityTaskCompletedEventAttributes
-> Maybe DecisionTaskTimedOutEventAttributes
-> Maybe CancelTimerFailedEventAttributes
-> Maybe ChildWorkflowExecutionStartedEventAttributes
-> Maybe ActivityTaskCanceledEventAttributes
-> Maybe ActivityTaskTimedOutEventAttributes
-> Maybe DecisionTaskStartedEventAttributes
-> Maybe WorkflowExecutionTerminatedEventAttributes
-> Maybe ChildWorkflowExecutionCanceledEventAttributes
-> Maybe RequestCancelActivityTaskFailedEventAttributes
-> Maybe LambdaFunctionScheduledEventAttributes
-> Maybe ChildWorkflowExecutionTimedOutEventAttributes
-> Maybe CancelWorkflowExecutionFailedEventAttributes
-> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
-> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
-> Maybe ActivityTaskStartedEventAttributes
-> Maybe StartLambdaFunctionFailedEventAttributes
-> Maybe ChildWorkflowExecutionTerminatedEventAttributes
-> Maybe LambdaFunctionFailedEventAttributes
-> Maybe WorkflowExecutionCanceledEventAttributes
-> Maybe TimerStartedEventAttributes
-> Maybe ActivityTaskCancelRequestedEventAttributes
-> Maybe WorkflowExecutionTimedOutEventAttributes
-> Maybe WorkflowExecutionSignaledEventAttributes
-> Maybe TimerFiredEventAttributes
-> Maybe ActivityTaskFailedEventAttributes
-> Maybe ExternalWorkflowExecutionSignaledEventAttributes
-> Maybe DecisionTaskCompletedEventAttributes
-> Maybe StartChildWorkflowExecutionFailedEventAttributes
-> Maybe ChildWorkflowExecutionFailedEventAttributes
-> Maybe FailWorkflowExecutionFailedEventAttributes
-> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
-> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe LambdaFunctionTimedOutEventAttributes
-> Maybe WorkflowExecutionFailedEventAttributes
-> Maybe WorkflowExecutionContinuedAsNewEventAttributes
-> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
-> POSIX
-> EventType
-> Integer
-> HistoryEvent
HistoryEvent'
      { $sel:workflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes =
          Maybe WorkflowExecutionCancelRequestedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:recordMarkerFailedEventAttributes:HistoryEvent' :: Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes = Maybe RecordMarkerFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:requestCancelExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes =
          Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaFunctionStartedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes =
          Maybe LambdaFunctionStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:decisionTaskScheduledEventAttributes:HistoryEvent' :: Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes =
          Maybe DecisionTaskScheduledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionCompletedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes =
          Maybe WorkflowExecutionCompletedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:startTimerFailedEventAttributes:HistoryEvent' :: Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes = Maybe StartTimerFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskScheduledEventAttributes:HistoryEvent' :: Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes =
          Maybe ActivityTaskScheduledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:scheduleActivityTaskFailedEventAttributes:HistoryEvent' :: Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes =
          Maybe ScheduleActivityTaskFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionCompletedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes =
          Maybe ChildWorkflowExecutionCompletedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:markerRecordedEventAttributes:HistoryEvent' :: Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes = Maybe MarkerRecordedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:scheduleLambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes =
          Maybe ScheduleLambdaFunctionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:completeWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes =
          Maybe CompleteWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaFunctionCompletedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes =
          Maybe LambdaFunctionCompletedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:requestCancelExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes =
          Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:timerCanceledEventAttributes:HistoryEvent' :: Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes = Maybe TimerCanceledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionStartedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes =
          Maybe WorkflowExecutionStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskCompletedEventAttributes:HistoryEvent' :: Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes =
          Maybe ActivityTaskCompletedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:decisionTaskTimedOutEventAttributes:HistoryEvent' :: Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes =
          Maybe DecisionTaskTimedOutEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:cancelTimerFailedEventAttributes:HistoryEvent' :: Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes = Maybe CancelTimerFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionStartedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes =
          Maybe ChildWorkflowExecutionStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskCanceledEventAttributes:HistoryEvent' :: Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes =
          Maybe ActivityTaskCanceledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskTimedOutEventAttributes:HistoryEvent' :: Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes =
          Maybe ActivityTaskTimedOutEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:decisionTaskStartedEventAttributes:HistoryEvent' :: Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes = Maybe DecisionTaskStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionTerminatedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes =
          Maybe WorkflowExecutionTerminatedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionCanceledEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes =
          Maybe ChildWorkflowExecutionCanceledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:requestCancelActivityTaskFailedEventAttributes:HistoryEvent' :: Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes =
          Maybe RequestCancelActivityTaskFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaFunctionScheduledEventAttributes:HistoryEvent' :: Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes =
          Maybe LambdaFunctionScheduledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionTimedOutEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes =
          Maybe ChildWorkflowExecutionTimedOutEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:cancelWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes =
          Maybe CancelWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:startChildWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes =
          Maybe StartChildWorkflowExecutionInitiatedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:signalExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes =
          Maybe SignalExternalWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskStartedEventAttributes:HistoryEvent' :: Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes = Maybe ActivityTaskStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:startLambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes =
          Maybe StartLambdaFunctionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionTerminatedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes =
          Maybe ChildWorkflowExecutionTerminatedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes =
          Maybe LambdaFunctionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionCanceledEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes =
          Maybe WorkflowExecutionCanceledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:timerStartedEventAttributes:HistoryEvent' :: Maybe TimerStartedEventAttributes
timerStartedEventAttributes = Maybe TimerStartedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskCancelRequestedEventAttributes:HistoryEvent' :: Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes =
          Maybe ActivityTaskCancelRequestedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionTimedOutEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes =
          Maybe WorkflowExecutionTimedOutEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionSignaledEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes =
          Maybe WorkflowExecutionSignaledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:timerFiredEventAttributes:HistoryEvent' :: Maybe TimerFiredEventAttributes
timerFiredEventAttributes = Maybe TimerFiredEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:activityTaskFailedEventAttributes:HistoryEvent' :: Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes = Maybe ActivityTaskFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:externalWorkflowExecutionSignaledEventAttributes:HistoryEvent' :: Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes =
          Maybe ExternalWorkflowExecutionSignaledEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:decisionTaskCompletedEventAttributes:HistoryEvent' :: Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes =
          Maybe DecisionTaskCompletedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:startChildWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes =
          Maybe StartChildWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:childWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes =
          Maybe ChildWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:failWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes =
          Maybe FailWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:continueAsNewWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes =
          Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:signalExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes =
          Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaFunctionTimedOutEventAttributes:HistoryEvent' :: Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes =
          Maybe LambdaFunctionTimedOutEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes =
          Maybe WorkflowExecutionFailedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecutionContinuedAsNewEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes =
          Maybe WorkflowExecutionContinuedAsNewEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:externalWorkflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes =
          Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:eventTimestamp:HistoryEvent' :: POSIX
eventTimestamp = 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
pEventTimestamp_,
        $sel:eventType:HistoryEvent' :: EventType
eventType = EventType
pEventType_,
        $sel:eventId:HistoryEvent' :: Integer
eventId = Integer
pEventId_
      }

-- | If the event is of type @WorkflowExecutionCancelRequested@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_workflowExecutionCancelRequestedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionCancelRequestedEventAttributes)
historyEvent_workflowExecutionCancelRequestedEventAttributes :: (Maybe WorkflowExecutionCancelRequestedEventAttributes
 -> f (Maybe WorkflowExecutionCancelRequestedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionCancelRequestedEventAttributes = (HistoryEvent
 -> Maybe WorkflowExecutionCancelRequestedEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionCancelRequestedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionCancelRequestedEventAttributes)
     (Maybe WorkflowExecutionCancelRequestedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes :: Maybe WorkflowExecutionCancelRequestedEventAttributes
$sel:workflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes} -> Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionCancelRequestedEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCancelRequestedEventAttributes
workflowExecutionCancelRequestedEventAttributes = Maybe WorkflowExecutionCancelRequestedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @DecisionTaskFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_recordMarkerFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe RecordMarkerFailedEventAttributes)
historyEvent_recordMarkerFailedEventAttributes :: (Maybe RecordMarkerFailedEventAttributes
 -> f (Maybe RecordMarkerFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_recordMarkerFailedEventAttributes = (HistoryEvent -> Maybe RecordMarkerFailedEventAttributes)
-> (HistoryEvent
    -> Maybe RecordMarkerFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe RecordMarkerFailedEventAttributes)
     (Maybe RecordMarkerFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes :: Maybe RecordMarkerFailedEventAttributes
$sel:recordMarkerFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes} -> Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe RecordMarkerFailedEventAttributes
a -> HistoryEvent
s {$sel:recordMarkerFailedEventAttributes:HistoryEvent' :: Maybe RecordMarkerFailedEventAttributes
recordMarkerFailedEventAttributes = Maybe RecordMarkerFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type
-- @RequestCancelExternalWorkflowExecutionInitiated@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
historyEvent_requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: (Maybe
   RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
 -> f (Maybe
         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_requestCancelExternalWorkflowExecutionInitiatedEventAttributes = (HistoryEvent
 -> Maybe
      RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
-> (HistoryEvent
    -> Maybe
         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
     (Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
$sel:requestCancelExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe
     RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes} -> Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
a -> HistoryEvent
s {$sel:requestCancelExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
requestCancelExternalWorkflowExecutionInitiatedEventAttributes = Maybe
  RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @LambdaFunctionStarted@ event. It isn\'t set
-- for other event types.
historyEvent_lambdaFunctionStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionStartedEventAttributes)
historyEvent_lambdaFunctionStartedEventAttributes :: (Maybe LambdaFunctionStartedEventAttributes
 -> f (Maybe LambdaFunctionStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionStartedEventAttributes = (HistoryEvent -> Maybe LambdaFunctionStartedEventAttributes)
-> (HistoryEvent
    -> Maybe LambdaFunctionStartedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionStartedEventAttributes)
     (Maybe LambdaFunctionStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes :: Maybe LambdaFunctionStartedEventAttributes
$sel:lambdaFunctionStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes} -> Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionStartedEventAttributes
a -> HistoryEvent
s {$sel:lambdaFunctionStartedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes = Maybe LambdaFunctionStartedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @DecisionTaskScheduled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_decisionTaskScheduledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe DecisionTaskScheduledEventAttributes)
historyEvent_decisionTaskScheduledEventAttributes :: (Maybe DecisionTaskScheduledEventAttributes
 -> f (Maybe DecisionTaskScheduledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_decisionTaskScheduledEventAttributes = (HistoryEvent -> Maybe DecisionTaskScheduledEventAttributes)
-> (HistoryEvent
    -> Maybe DecisionTaskScheduledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe DecisionTaskScheduledEventAttributes)
     (Maybe DecisionTaskScheduledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes :: Maybe DecisionTaskScheduledEventAttributes
$sel:decisionTaskScheduledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes} -> Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe DecisionTaskScheduledEventAttributes
a -> HistoryEvent
s {$sel:decisionTaskScheduledEventAttributes:HistoryEvent' :: Maybe DecisionTaskScheduledEventAttributes
decisionTaskScheduledEventAttributes = Maybe DecisionTaskScheduledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionCompleted@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionCompletedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionCompletedEventAttributes)
historyEvent_workflowExecutionCompletedEventAttributes :: (Maybe WorkflowExecutionCompletedEventAttributes
 -> f (Maybe WorkflowExecutionCompletedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionCompletedEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionCompletedEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionCompletedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionCompletedEventAttributes)
     (Maybe WorkflowExecutionCompletedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes :: Maybe WorkflowExecutionCompletedEventAttributes
$sel:workflowExecutionCompletedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes} -> Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionCompletedEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionCompletedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCompletedEventAttributes
workflowExecutionCompletedEventAttributes = Maybe WorkflowExecutionCompletedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @StartTimerFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_startTimerFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe StartTimerFailedEventAttributes)
historyEvent_startTimerFailedEventAttributes :: (Maybe StartTimerFailedEventAttributes
 -> f (Maybe StartTimerFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_startTimerFailedEventAttributes = (HistoryEvent -> Maybe StartTimerFailedEventAttributes)
-> (HistoryEvent
    -> Maybe StartTimerFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StartTimerFailedEventAttributes)
     (Maybe StartTimerFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes :: Maybe StartTimerFailedEventAttributes
$sel:startTimerFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes} -> Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StartTimerFailedEventAttributes
a -> HistoryEvent
s {$sel:startTimerFailedEventAttributes:HistoryEvent' :: Maybe StartTimerFailedEventAttributes
startTimerFailedEventAttributes = Maybe StartTimerFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskScheduled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_activityTaskScheduledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskScheduledEventAttributes)
historyEvent_activityTaskScheduledEventAttributes :: (Maybe ActivityTaskScheduledEventAttributes
 -> f (Maybe ActivityTaskScheduledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskScheduledEventAttributes = (HistoryEvent -> Maybe ActivityTaskScheduledEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskScheduledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskScheduledEventAttributes)
     (Maybe ActivityTaskScheduledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes :: Maybe ActivityTaskScheduledEventAttributes
$sel:activityTaskScheduledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes} -> Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskScheduledEventAttributes
a -> HistoryEvent
s {$sel:activityTaskScheduledEventAttributes:HistoryEvent' :: Maybe ActivityTaskScheduledEventAttributes
activityTaskScheduledEventAttributes = Maybe ActivityTaskScheduledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ScheduleActivityTaskFailed@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_scheduleActivityTaskFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ScheduleActivityTaskFailedEventAttributes)
historyEvent_scheduleActivityTaskFailedEventAttributes :: (Maybe ScheduleActivityTaskFailedEventAttributes
 -> f (Maybe ScheduleActivityTaskFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_scheduleActivityTaskFailedEventAttributes = (HistoryEvent -> Maybe ScheduleActivityTaskFailedEventAttributes)
-> (HistoryEvent
    -> Maybe ScheduleActivityTaskFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ScheduleActivityTaskFailedEventAttributes)
     (Maybe ScheduleActivityTaskFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes :: Maybe ScheduleActivityTaskFailedEventAttributes
$sel:scheduleActivityTaskFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes} -> Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ScheduleActivityTaskFailedEventAttributes
a -> HistoryEvent
s {$sel:scheduleActivityTaskFailedEventAttributes:HistoryEvent' :: Maybe ScheduleActivityTaskFailedEventAttributes
scheduleActivityTaskFailedEventAttributes = Maybe ScheduleActivityTaskFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionCompleted@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_childWorkflowExecutionCompletedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionCompletedEventAttributes)
historyEvent_childWorkflowExecutionCompletedEventAttributes :: (Maybe ChildWorkflowExecutionCompletedEventAttributes
 -> f (Maybe ChildWorkflowExecutionCompletedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionCompletedEventAttributes = (HistoryEvent
 -> Maybe ChildWorkflowExecutionCompletedEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionCompletedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionCompletedEventAttributes)
     (Maybe ChildWorkflowExecutionCompletedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes :: Maybe ChildWorkflowExecutionCompletedEventAttributes
$sel:childWorkflowExecutionCompletedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes} -> Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionCompletedEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionCompletedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionCompletedEventAttributes
childWorkflowExecutionCompletedEventAttributes = Maybe ChildWorkflowExecutionCompletedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @MarkerRecorded@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_markerRecordedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe MarkerRecordedEventAttributes)
historyEvent_markerRecordedEventAttributes :: (Maybe MarkerRecordedEventAttributes
 -> f (Maybe MarkerRecordedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_markerRecordedEventAttributes = (HistoryEvent -> Maybe MarkerRecordedEventAttributes)
-> (HistoryEvent
    -> Maybe MarkerRecordedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MarkerRecordedEventAttributes)
     (Maybe MarkerRecordedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes :: Maybe MarkerRecordedEventAttributes
$sel:markerRecordedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes} -> Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MarkerRecordedEventAttributes
a -> HistoryEvent
s {$sel:markerRecordedEventAttributes:HistoryEvent' :: Maybe MarkerRecordedEventAttributes
markerRecordedEventAttributes = Maybe MarkerRecordedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @ScheduleLambdaFunctionFailed@ event. It
-- isn\'t set for other event types.
historyEvent_scheduleLambdaFunctionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ScheduleLambdaFunctionFailedEventAttributes)
historyEvent_scheduleLambdaFunctionFailedEventAttributes :: (Maybe ScheduleLambdaFunctionFailedEventAttributes
 -> f (Maybe ScheduleLambdaFunctionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_scheduleLambdaFunctionFailedEventAttributes = (HistoryEvent -> Maybe ScheduleLambdaFunctionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe ScheduleLambdaFunctionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ScheduleLambdaFunctionFailedEventAttributes)
     (Maybe ScheduleLambdaFunctionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes :: Maybe ScheduleLambdaFunctionFailedEventAttributes
$sel:scheduleLambdaFunctionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes} -> Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ScheduleLambdaFunctionFailedEventAttributes
a -> HistoryEvent
s {$sel:scheduleLambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe ScheduleLambdaFunctionFailedEventAttributes
scheduleLambdaFunctionFailedEventAttributes = Maybe ScheduleLambdaFunctionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @CompleteWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_completeWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe CompleteWorkflowExecutionFailedEventAttributes)
historyEvent_completeWorkflowExecutionFailedEventAttributes :: (Maybe CompleteWorkflowExecutionFailedEventAttributes
 -> f (Maybe CompleteWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_completeWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe CompleteWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe CompleteWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe CompleteWorkflowExecutionFailedEventAttributes)
     (Maybe CompleteWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes :: Maybe CompleteWorkflowExecutionFailedEventAttributes
$sel:completeWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes} -> Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe CompleteWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:completeWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes = Maybe CompleteWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @LambdaFunctionCompleted@ event. It isn\'t
-- set for other event types.
historyEvent_lambdaFunctionCompletedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionCompletedEventAttributes)
historyEvent_lambdaFunctionCompletedEventAttributes :: (Maybe LambdaFunctionCompletedEventAttributes
 -> f (Maybe LambdaFunctionCompletedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionCompletedEventAttributes = (HistoryEvent -> Maybe LambdaFunctionCompletedEventAttributes)
-> (HistoryEvent
    -> Maybe LambdaFunctionCompletedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionCompletedEventAttributes)
     (Maybe LambdaFunctionCompletedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes :: Maybe LambdaFunctionCompletedEventAttributes
$sel:lambdaFunctionCompletedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes} -> Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionCompletedEventAttributes
a -> HistoryEvent
s {$sel:lambdaFunctionCompletedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionCompletedEventAttributes
lambdaFunctionCompletedEventAttributes = Maybe LambdaFunctionCompletedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @RequestCancelExternalWorkflowExecutionFailed@
-- then this member is set and provides detailed information about the
-- event. It isn\'t set for other event types.
historyEvent_requestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
historyEvent_requestCancelExternalWorkflowExecutionFailedEventAttributes :: (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
 -> f (Maybe
         RequestCancelExternalWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_requestCancelExternalWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe
      RequestCancelExternalWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe
         RequestCancelExternalWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
     (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes :: Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
$sel:requestCancelExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes} -> Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:requestCancelExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
requestCancelExternalWorkflowExecutionFailedEventAttributes = Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @TimerCanceled@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_timerCanceledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe TimerCanceledEventAttributes)
historyEvent_timerCanceledEventAttributes :: (Maybe TimerCanceledEventAttributes
 -> f (Maybe TimerCanceledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_timerCanceledEventAttributes = (HistoryEvent -> Maybe TimerCanceledEventAttributes)
-> (HistoryEvent
    -> Maybe TimerCanceledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TimerCanceledEventAttributes)
     (Maybe TimerCanceledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes :: Maybe TimerCanceledEventAttributes
$sel:timerCanceledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes} -> Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TimerCanceledEventAttributes
a -> HistoryEvent
s {$sel:timerCanceledEventAttributes:HistoryEvent' :: Maybe TimerCanceledEventAttributes
timerCanceledEventAttributes = Maybe TimerCanceledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionStarted@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionStartedEventAttributes)
historyEvent_workflowExecutionStartedEventAttributes :: (Maybe WorkflowExecutionStartedEventAttributes
 -> f (Maybe WorkflowExecutionStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionStartedEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionStartedEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionStartedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionStartedEventAttributes)
     (Maybe WorkflowExecutionStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes :: Maybe WorkflowExecutionStartedEventAttributes
$sel:workflowExecutionStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes} -> Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionStartedEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionStartedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes = Maybe WorkflowExecutionStartedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskCompleted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_activityTaskCompletedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskCompletedEventAttributes)
historyEvent_activityTaskCompletedEventAttributes :: (Maybe ActivityTaskCompletedEventAttributes
 -> f (Maybe ActivityTaskCompletedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskCompletedEventAttributes = (HistoryEvent -> Maybe ActivityTaskCompletedEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskCompletedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskCompletedEventAttributes)
     (Maybe ActivityTaskCompletedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes :: Maybe ActivityTaskCompletedEventAttributes
$sel:activityTaskCompletedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes} -> Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskCompletedEventAttributes
a -> HistoryEvent
s {$sel:activityTaskCompletedEventAttributes:HistoryEvent' :: Maybe ActivityTaskCompletedEventAttributes
activityTaskCompletedEventAttributes = Maybe ActivityTaskCompletedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @DecisionTaskTimedOut@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_decisionTaskTimedOutEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe DecisionTaskTimedOutEventAttributes)
historyEvent_decisionTaskTimedOutEventAttributes :: (Maybe DecisionTaskTimedOutEventAttributes
 -> f (Maybe DecisionTaskTimedOutEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_decisionTaskTimedOutEventAttributes = (HistoryEvent -> Maybe DecisionTaskTimedOutEventAttributes)
-> (HistoryEvent
    -> Maybe DecisionTaskTimedOutEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe DecisionTaskTimedOutEventAttributes)
     (Maybe DecisionTaskTimedOutEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes :: Maybe DecisionTaskTimedOutEventAttributes
$sel:decisionTaskTimedOutEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes} -> Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe DecisionTaskTimedOutEventAttributes
a -> HistoryEvent
s {$sel:decisionTaskTimedOutEventAttributes:HistoryEvent' :: Maybe DecisionTaskTimedOutEventAttributes
decisionTaskTimedOutEventAttributes = Maybe DecisionTaskTimedOutEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @CancelTimerFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_cancelTimerFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe CancelTimerFailedEventAttributes)
historyEvent_cancelTimerFailedEventAttributes :: (Maybe CancelTimerFailedEventAttributes
 -> f (Maybe CancelTimerFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_cancelTimerFailedEventAttributes = (HistoryEvent -> Maybe CancelTimerFailedEventAttributes)
-> (HistoryEvent
    -> Maybe CancelTimerFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe CancelTimerFailedEventAttributes)
     (Maybe CancelTimerFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes :: Maybe CancelTimerFailedEventAttributes
$sel:cancelTimerFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes} -> Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe CancelTimerFailedEventAttributes
a -> HistoryEvent
s {$sel:cancelTimerFailedEventAttributes:HistoryEvent' :: Maybe CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes = Maybe CancelTimerFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionStarted@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_childWorkflowExecutionStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionStartedEventAttributes)
historyEvent_childWorkflowExecutionStartedEventAttributes :: (Maybe ChildWorkflowExecutionStartedEventAttributes
 -> f (Maybe ChildWorkflowExecutionStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionStartedEventAttributes = (HistoryEvent
 -> Maybe ChildWorkflowExecutionStartedEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionStartedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionStartedEventAttributes)
     (Maybe ChildWorkflowExecutionStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes :: Maybe ChildWorkflowExecutionStartedEventAttributes
$sel:childWorkflowExecutionStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes} -> Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionStartedEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionStartedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionStartedEventAttributes
childWorkflowExecutionStartedEventAttributes = Maybe ChildWorkflowExecutionStartedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskCanceled@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_activityTaskCanceledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskCanceledEventAttributes)
historyEvent_activityTaskCanceledEventAttributes :: (Maybe ActivityTaskCanceledEventAttributes
 -> f (Maybe ActivityTaskCanceledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskCanceledEventAttributes = (HistoryEvent -> Maybe ActivityTaskCanceledEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskCanceledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskCanceledEventAttributes)
     (Maybe ActivityTaskCanceledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes :: Maybe ActivityTaskCanceledEventAttributes
$sel:activityTaskCanceledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes} -> Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskCanceledEventAttributes
a -> HistoryEvent
s {$sel:activityTaskCanceledEventAttributes:HistoryEvent' :: Maybe ActivityTaskCanceledEventAttributes
activityTaskCanceledEventAttributes = Maybe ActivityTaskCanceledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskTimedOut@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_activityTaskTimedOutEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskTimedOutEventAttributes)
historyEvent_activityTaskTimedOutEventAttributes :: (Maybe ActivityTaskTimedOutEventAttributes
 -> f (Maybe ActivityTaskTimedOutEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskTimedOutEventAttributes = (HistoryEvent -> Maybe ActivityTaskTimedOutEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskTimedOutEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskTimedOutEventAttributes)
     (Maybe ActivityTaskTimedOutEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes :: Maybe ActivityTaskTimedOutEventAttributes
$sel:activityTaskTimedOutEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes} -> Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskTimedOutEventAttributes
a -> HistoryEvent
s {$sel:activityTaskTimedOutEventAttributes:HistoryEvent' :: Maybe ActivityTaskTimedOutEventAttributes
activityTaskTimedOutEventAttributes = Maybe ActivityTaskTimedOutEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @DecisionTaskStarted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_decisionTaskStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe DecisionTaskStartedEventAttributes)
historyEvent_decisionTaskStartedEventAttributes :: (Maybe DecisionTaskStartedEventAttributes
 -> f (Maybe DecisionTaskStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_decisionTaskStartedEventAttributes = (HistoryEvent -> Maybe DecisionTaskStartedEventAttributes)
-> (HistoryEvent
    -> Maybe DecisionTaskStartedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe DecisionTaskStartedEventAttributes)
     (Maybe DecisionTaskStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes :: Maybe DecisionTaskStartedEventAttributes
$sel:decisionTaskStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes} -> Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe DecisionTaskStartedEventAttributes
a -> HistoryEvent
s {$sel:decisionTaskStartedEventAttributes:HistoryEvent' :: Maybe DecisionTaskStartedEventAttributes
decisionTaskStartedEventAttributes = Maybe DecisionTaskStartedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionTerminated@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_workflowExecutionTerminatedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionTerminatedEventAttributes)
historyEvent_workflowExecutionTerminatedEventAttributes :: (Maybe WorkflowExecutionTerminatedEventAttributes
 -> f (Maybe WorkflowExecutionTerminatedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionTerminatedEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionTerminatedEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionTerminatedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionTerminatedEventAttributes)
     (Maybe WorkflowExecutionTerminatedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes :: Maybe WorkflowExecutionTerminatedEventAttributes
$sel:workflowExecutionTerminatedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes} -> Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionTerminatedEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionTerminatedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionTerminatedEventAttributes
workflowExecutionTerminatedEventAttributes = Maybe WorkflowExecutionTerminatedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionCanceled@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_childWorkflowExecutionCanceledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionCanceledEventAttributes)
historyEvent_childWorkflowExecutionCanceledEventAttributes :: (Maybe ChildWorkflowExecutionCanceledEventAttributes
 -> f (Maybe ChildWorkflowExecutionCanceledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionCanceledEventAttributes = (HistoryEvent
 -> Maybe ChildWorkflowExecutionCanceledEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionCanceledEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionCanceledEventAttributes)
     (Maybe ChildWorkflowExecutionCanceledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes :: Maybe ChildWorkflowExecutionCanceledEventAttributes
$sel:childWorkflowExecutionCanceledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes} -> Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionCanceledEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionCanceledEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionCanceledEventAttributes
childWorkflowExecutionCanceledEventAttributes = Maybe ChildWorkflowExecutionCanceledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @RequestCancelActivityTaskFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_requestCancelActivityTaskFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe RequestCancelActivityTaskFailedEventAttributes)
historyEvent_requestCancelActivityTaskFailedEventAttributes :: (Maybe RequestCancelActivityTaskFailedEventAttributes
 -> f (Maybe RequestCancelActivityTaskFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_requestCancelActivityTaskFailedEventAttributes = (HistoryEvent
 -> Maybe RequestCancelActivityTaskFailedEventAttributes)
-> (HistoryEvent
    -> Maybe RequestCancelActivityTaskFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe RequestCancelActivityTaskFailedEventAttributes)
     (Maybe RequestCancelActivityTaskFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes :: Maybe RequestCancelActivityTaskFailedEventAttributes
$sel:requestCancelActivityTaskFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes} -> Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe RequestCancelActivityTaskFailedEventAttributes
a -> HistoryEvent
s {$sel:requestCancelActivityTaskFailedEventAttributes:HistoryEvent' :: Maybe RequestCancelActivityTaskFailedEventAttributes
requestCancelActivityTaskFailedEventAttributes = Maybe RequestCancelActivityTaskFailedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @LambdaFunctionScheduled@ event. It isn\'t
-- set for other event types.
historyEvent_lambdaFunctionScheduledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionScheduledEventAttributes)
historyEvent_lambdaFunctionScheduledEventAttributes :: (Maybe LambdaFunctionScheduledEventAttributes
 -> f (Maybe LambdaFunctionScheduledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionScheduledEventAttributes = (HistoryEvent -> Maybe LambdaFunctionScheduledEventAttributes)
-> (HistoryEvent
    -> Maybe LambdaFunctionScheduledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionScheduledEventAttributes)
     (Maybe LambdaFunctionScheduledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes :: Maybe LambdaFunctionScheduledEventAttributes
$sel:lambdaFunctionScheduledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes} -> Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionScheduledEventAttributes
a -> HistoryEvent
s {$sel:lambdaFunctionScheduledEventAttributes:HistoryEvent' :: Maybe LambdaFunctionScheduledEventAttributes
lambdaFunctionScheduledEventAttributes = Maybe LambdaFunctionScheduledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionTimedOut@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_childWorkflowExecutionTimedOutEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionTimedOutEventAttributes)
historyEvent_childWorkflowExecutionTimedOutEventAttributes :: (Maybe ChildWorkflowExecutionTimedOutEventAttributes
 -> f (Maybe ChildWorkflowExecutionTimedOutEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionTimedOutEventAttributes = (HistoryEvent
 -> Maybe ChildWorkflowExecutionTimedOutEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionTimedOutEventAttributes)
     (Maybe ChildWorkflowExecutionTimedOutEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes :: Maybe ChildWorkflowExecutionTimedOutEventAttributes
$sel:childWorkflowExecutionTimedOutEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes} -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionTimedOutEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionTimedOutEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes = Maybe ChildWorkflowExecutionTimedOutEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @CancelWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_cancelWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe CancelWorkflowExecutionFailedEventAttributes)
historyEvent_cancelWorkflowExecutionFailedEventAttributes :: (Maybe CancelWorkflowExecutionFailedEventAttributes
 -> f (Maybe CancelWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_cancelWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe CancelWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe CancelWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe CancelWorkflowExecutionFailedEventAttributes)
     (Maybe CancelWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes :: Maybe CancelWorkflowExecutionFailedEventAttributes
$sel:cancelWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes} -> Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe CancelWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:cancelWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe CancelWorkflowExecutionFailedEventAttributes
cancelWorkflowExecutionFailedEventAttributes = Maybe CancelWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @StartChildWorkflowExecutionInitiated@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_startChildWorkflowExecutionInitiatedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
historyEvent_startChildWorkflowExecutionInitiatedEventAttributes :: (Maybe StartChildWorkflowExecutionInitiatedEventAttributes
 -> f (Maybe StartChildWorkflowExecutionInitiatedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_startChildWorkflowExecutionInitiatedEventAttributes = (HistoryEvent
 -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
-> (HistoryEvent
    -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
     (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes :: Maybe StartChildWorkflowExecutionInitiatedEventAttributes
$sel:startChildWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes} -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StartChildWorkflowExecutionInitiatedEventAttributes
a -> HistoryEvent
s {$sel:startChildWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes = Maybe StartChildWorkflowExecutionInitiatedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @SignalExternalWorkflowExecutionFailed@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_signalExternalWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
historyEvent_signalExternalWorkflowExecutionFailedEventAttributes :: (Maybe SignalExternalWorkflowExecutionFailedEventAttributes
 -> f (Maybe SignalExternalWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_signalExternalWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
     (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes :: Maybe SignalExternalWorkflowExecutionFailedEventAttributes
$sel:signalExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes} -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe SignalExternalWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:signalExternalWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe SignalExternalWorkflowExecutionFailedEventAttributes
signalExternalWorkflowExecutionFailedEventAttributes = Maybe SignalExternalWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskStarted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_activityTaskStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskStartedEventAttributes)
historyEvent_activityTaskStartedEventAttributes :: (Maybe ActivityTaskStartedEventAttributes
 -> f (Maybe ActivityTaskStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskStartedEventAttributes = (HistoryEvent -> Maybe ActivityTaskStartedEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskStartedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskStartedEventAttributes)
     (Maybe ActivityTaskStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes :: Maybe ActivityTaskStartedEventAttributes
$sel:activityTaskStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes} -> Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskStartedEventAttributes
a -> HistoryEvent
s {$sel:activityTaskStartedEventAttributes:HistoryEvent' :: Maybe ActivityTaskStartedEventAttributes
activityTaskStartedEventAttributes = Maybe ActivityTaskStartedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @StartLambdaFunctionFailed@ event. It isn\'t
-- set for other event types.
historyEvent_startLambdaFunctionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe StartLambdaFunctionFailedEventAttributes)
historyEvent_startLambdaFunctionFailedEventAttributes :: (Maybe StartLambdaFunctionFailedEventAttributes
 -> f (Maybe StartLambdaFunctionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_startLambdaFunctionFailedEventAttributes = (HistoryEvent -> Maybe StartLambdaFunctionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe StartLambdaFunctionFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StartLambdaFunctionFailedEventAttributes)
     (Maybe StartLambdaFunctionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes :: Maybe StartLambdaFunctionFailedEventAttributes
$sel:startLambdaFunctionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes} -> Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StartLambdaFunctionFailedEventAttributes
a -> HistoryEvent
s {$sel:startLambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes = Maybe StartLambdaFunctionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionTerminated@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_childWorkflowExecutionTerminatedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionTerminatedEventAttributes)
historyEvent_childWorkflowExecutionTerminatedEventAttributes :: (Maybe ChildWorkflowExecutionTerminatedEventAttributes
 -> f (Maybe ChildWorkflowExecutionTerminatedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionTerminatedEventAttributes = (HistoryEvent
 -> Maybe ChildWorkflowExecutionTerminatedEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionTerminatedEventAttributes)
     (Maybe ChildWorkflowExecutionTerminatedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes :: Maybe ChildWorkflowExecutionTerminatedEventAttributes
$sel:childWorkflowExecutionTerminatedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes} -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionTerminatedEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionTerminatedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionTerminatedEventAttributes
childWorkflowExecutionTerminatedEventAttributes = Maybe ChildWorkflowExecutionTerminatedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @LambdaFunctionFailed@ event. It isn\'t set
-- for other event types.
historyEvent_lambdaFunctionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionFailedEventAttributes)
historyEvent_lambdaFunctionFailedEventAttributes :: (Maybe LambdaFunctionFailedEventAttributes
 -> f (Maybe LambdaFunctionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionFailedEventAttributes = (HistoryEvent -> Maybe LambdaFunctionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe LambdaFunctionFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionFailedEventAttributes)
     (Maybe LambdaFunctionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes :: Maybe LambdaFunctionFailedEventAttributes
$sel:lambdaFunctionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes} -> Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionFailedEventAttributes
a -> HistoryEvent
s {$sel:lambdaFunctionFailedEventAttributes:HistoryEvent' :: Maybe LambdaFunctionFailedEventAttributes
lambdaFunctionFailedEventAttributes = Maybe LambdaFunctionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionCanceled@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionCanceledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionCanceledEventAttributes)
historyEvent_workflowExecutionCanceledEventAttributes :: (Maybe WorkflowExecutionCanceledEventAttributes
 -> f (Maybe WorkflowExecutionCanceledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionCanceledEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionCanceledEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionCanceledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionCanceledEventAttributes)
     (Maybe WorkflowExecutionCanceledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes :: Maybe WorkflowExecutionCanceledEventAttributes
$sel:workflowExecutionCanceledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes} -> Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionCanceledEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionCanceledEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionCanceledEventAttributes
workflowExecutionCanceledEventAttributes = Maybe WorkflowExecutionCanceledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @TimerStarted@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_timerStartedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe TimerStartedEventAttributes)
historyEvent_timerStartedEventAttributes :: (Maybe TimerStartedEventAttributes
 -> f (Maybe TimerStartedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_timerStartedEventAttributes = (HistoryEvent -> Maybe TimerStartedEventAttributes)
-> (HistoryEvent
    -> Maybe TimerStartedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TimerStartedEventAttributes)
     (Maybe TimerStartedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TimerStartedEventAttributes
timerStartedEventAttributes :: Maybe TimerStartedEventAttributes
$sel:timerStartedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe TimerStartedEventAttributes
timerStartedEventAttributes} -> Maybe TimerStartedEventAttributes
timerStartedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TimerStartedEventAttributes
a -> HistoryEvent
s {$sel:timerStartedEventAttributes:HistoryEvent' :: Maybe TimerStartedEventAttributes
timerStartedEventAttributes = Maybe TimerStartedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskcancelRequested@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_activityTaskCancelRequestedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskCancelRequestedEventAttributes)
historyEvent_activityTaskCancelRequestedEventAttributes :: (Maybe ActivityTaskCancelRequestedEventAttributes
 -> f (Maybe ActivityTaskCancelRequestedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskCancelRequestedEventAttributes = (HistoryEvent -> Maybe ActivityTaskCancelRequestedEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskCancelRequestedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskCancelRequestedEventAttributes)
     (Maybe ActivityTaskCancelRequestedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes :: Maybe ActivityTaskCancelRequestedEventAttributes
$sel:activityTaskCancelRequestedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes} -> Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskCancelRequestedEventAttributes
a -> HistoryEvent
s {$sel:activityTaskCancelRequestedEventAttributes:HistoryEvent' :: Maybe ActivityTaskCancelRequestedEventAttributes
activityTaskCancelRequestedEventAttributes = Maybe ActivityTaskCancelRequestedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionTimedOut@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionTimedOutEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionTimedOutEventAttributes)
historyEvent_workflowExecutionTimedOutEventAttributes :: (Maybe WorkflowExecutionTimedOutEventAttributes
 -> f (Maybe WorkflowExecutionTimedOutEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionTimedOutEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionTimedOutEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionTimedOutEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionTimedOutEventAttributes)
     (Maybe WorkflowExecutionTimedOutEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes :: Maybe WorkflowExecutionTimedOutEventAttributes
$sel:workflowExecutionTimedOutEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes} -> Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionTimedOutEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionTimedOutEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionTimedOutEventAttributes
workflowExecutionTimedOutEventAttributes = Maybe WorkflowExecutionTimedOutEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionSignaled@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionSignaledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionSignaledEventAttributes)
historyEvent_workflowExecutionSignaledEventAttributes :: (Maybe WorkflowExecutionSignaledEventAttributes
 -> f (Maybe WorkflowExecutionSignaledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionSignaledEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionSignaledEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionSignaledEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionSignaledEventAttributes)
     (Maybe WorkflowExecutionSignaledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes :: Maybe WorkflowExecutionSignaledEventAttributes
$sel:workflowExecutionSignaledEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes} -> Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionSignaledEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionSignaledEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionSignaledEventAttributes
workflowExecutionSignaledEventAttributes = Maybe WorkflowExecutionSignaledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @TimerFired@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_timerFiredEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe TimerFiredEventAttributes)
historyEvent_timerFiredEventAttributes :: (Maybe TimerFiredEventAttributes
 -> f (Maybe TimerFiredEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_timerFiredEventAttributes = (HistoryEvent -> Maybe TimerFiredEventAttributes)
-> (HistoryEvent
    -> Maybe TimerFiredEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TimerFiredEventAttributes)
     (Maybe TimerFiredEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TimerFiredEventAttributes
timerFiredEventAttributes :: Maybe TimerFiredEventAttributes
$sel:timerFiredEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe TimerFiredEventAttributes
timerFiredEventAttributes} -> Maybe TimerFiredEventAttributes
timerFiredEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TimerFiredEventAttributes
a -> HistoryEvent
s {$sel:timerFiredEventAttributes:HistoryEvent' :: Maybe TimerFiredEventAttributes
timerFiredEventAttributes = Maybe TimerFiredEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ActivityTaskFailed@ then this member is set and
-- provides detailed information about the event. It isn\'t set for other
-- event types.
historyEvent_activityTaskFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTaskFailedEventAttributes)
historyEvent_activityTaskFailedEventAttributes :: (Maybe ActivityTaskFailedEventAttributes
 -> f (Maybe ActivityTaskFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTaskFailedEventAttributes = (HistoryEvent -> Maybe ActivityTaskFailedEventAttributes)
-> (HistoryEvent
    -> Maybe ActivityTaskFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTaskFailedEventAttributes)
     (Maybe ActivityTaskFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes :: Maybe ActivityTaskFailedEventAttributes
$sel:activityTaskFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes} -> Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTaskFailedEventAttributes
a -> HistoryEvent
s {$sel:activityTaskFailedEventAttributes:HistoryEvent' :: Maybe ActivityTaskFailedEventAttributes
activityTaskFailedEventAttributes = Maybe ActivityTaskFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ExternalWorkflowExecutionSignaled@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_externalWorkflowExecutionSignaledEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ExternalWorkflowExecutionSignaledEventAttributes)
historyEvent_externalWorkflowExecutionSignaledEventAttributes :: (Maybe ExternalWorkflowExecutionSignaledEventAttributes
 -> f (Maybe ExternalWorkflowExecutionSignaledEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_externalWorkflowExecutionSignaledEventAttributes = (HistoryEvent
 -> Maybe ExternalWorkflowExecutionSignaledEventAttributes)
-> (HistoryEvent
    -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExternalWorkflowExecutionSignaledEventAttributes)
     (Maybe ExternalWorkflowExecutionSignaledEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes :: Maybe ExternalWorkflowExecutionSignaledEventAttributes
$sel:externalWorkflowExecutionSignaledEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes} -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExternalWorkflowExecutionSignaledEventAttributes
a -> HistoryEvent
s {$sel:externalWorkflowExecutionSignaledEventAttributes:HistoryEvent' :: Maybe ExternalWorkflowExecutionSignaledEventAttributes
externalWorkflowExecutionSignaledEventAttributes = Maybe ExternalWorkflowExecutionSignaledEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @DecisionTaskCompleted@ then this member is set
-- and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_decisionTaskCompletedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe DecisionTaskCompletedEventAttributes)
historyEvent_decisionTaskCompletedEventAttributes :: (Maybe DecisionTaskCompletedEventAttributes
 -> f (Maybe DecisionTaskCompletedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_decisionTaskCompletedEventAttributes = (HistoryEvent -> Maybe DecisionTaskCompletedEventAttributes)
-> (HistoryEvent
    -> Maybe DecisionTaskCompletedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe DecisionTaskCompletedEventAttributes)
     (Maybe DecisionTaskCompletedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes :: Maybe DecisionTaskCompletedEventAttributes
$sel:decisionTaskCompletedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes} -> Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe DecisionTaskCompletedEventAttributes
a -> HistoryEvent
s {$sel:decisionTaskCompletedEventAttributes:HistoryEvent' :: Maybe DecisionTaskCompletedEventAttributes
decisionTaskCompletedEventAttributes = Maybe DecisionTaskCompletedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @StartChildWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_startChildWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe StartChildWorkflowExecutionFailedEventAttributes)
historyEvent_startChildWorkflowExecutionFailedEventAttributes :: (Maybe StartChildWorkflowExecutionFailedEventAttributes
 -> f (Maybe StartChildWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_startChildWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe StartChildWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe StartChildWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StartChildWorkflowExecutionFailedEventAttributes)
     (Maybe StartChildWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes :: Maybe StartChildWorkflowExecutionFailedEventAttributes
$sel:startChildWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes} -> Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StartChildWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:startChildWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe StartChildWorkflowExecutionFailedEventAttributes
startChildWorkflowExecutionFailedEventAttributes = Maybe StartChildWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ChildWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_childWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ChildWorkflowExecutionFailedEventAttributes)
historyEvent_childWorkflowExecutionFailedEventAttributes :: (Maybe ChildWorkflowExecutionFailedEventAttributes
 -> f (Maybe ChildWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_childWorkflowExecutionFailedEventAttributes = (HistoryEvent -> Maybe ChildWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe ChildWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ChildWorkflowExecutionFailedEventAttributes)
     (Maybe ChildWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes :: Maybe ChildWorkflowExecutionFailedEventAttributes
$sel:childWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes} -> Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ChildWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:childWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes = Maybe ChildWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @FailWorkflowExecutionFailed@ then this member
-- is set and provides detailed information about the event. It isn\'t set
-- for other event types.
historyEvent_failWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe FailWorkflowExecutionFailedEventAttributes)
historyEvent_failWorkflowExecutionFailedEventAttributes :: (Maybe FailWorkflowExecutionFailedEventAttributes
 -> f (Maybe FailWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_failWorkflowExecutionFailedEventAttributes = (HistoryEvent -> Maybe FailWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe FailWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe FailWorkflowExecutionFailedEventAttributes)
     (Maybe FailWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes :: Maybe FailWorkflowExecutionFailedEventAttributes
$sel:failWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes} -> Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe FailWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:failWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes = Maybe FailWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ContinueAsNewWorkflowExecutionFailed@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_continueAsNewWorkflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
historyEvent_continueAsNewWorkflowExecutionFailedEventAttributes :: (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
 -> f (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_continueAsNewWorkflowExecutionFailedEventAttributes = (HistoryEvent
 -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
     (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes :: Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
$sel:continueAsNewWorkflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes} -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:continueAsNewWorkflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
continueAsNewWorkflowExecutionFailedEventAttributes = Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @SignalExternalWorkflowExecutionInitiated@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_signalExternalWorkflowExecutionInitiatedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
historyEvent_signalExternalWorkflowExecutionInitiatedEventAttributes :: (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> f (Maybe
         SignalExternalWorkflowExecutionInitiatedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_signalExternalWorkflowExecutionInitiatedEventAttributes = (HistoryEvent
 -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> (HistoryEvent
    -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
     (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes :: Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
$sel:signalExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes} -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
a -> HistoryEvent
s {$sel:signalExternalWorkflowExecutionInitiatedEventAttributes:HistoryEvent' :: Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes = Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
a} :: HistoryEvent)

-- | Provides the details of the @LambdaFunctionTimedOut@ event. It isn\'t
-- set for other event types.
historyEvent_lambdaFunctionTimedOutEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionTimedOutEventAttributes)
historyEvent_lambdaFunctionTimedOutEventAttributes :: (Maybe LambdaFunctionTimedOutEventAttributes
 -> f (Maybe LambdaFunctionTimedOutEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionTimedOutEventAttributes = (HistoryEvent -> Maybe LambdaFunctionTimedOutEventAttributes)
-> (HistoryEvent
    -> Maybe LambdaFunctionTimedOutEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionTimedOutEventAttributes)
     (Maybe LambdaFunctionTimedOutEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes :: Maybe LambdaFunctionTimedOutEventAttributes
$sel:lambdaFunctionTimedOutEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes} -> Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionTimedOutEventAttributes
a -> HistoryEvent
s {$sel:lambdaFunctionTimedOutEventAttributes:HistoryEvent' :: Maybe LambdaFunctionTimedOutEventAttributes
lambdaFunctionTimedOutEventAttributes = Maybe LambdaFunctionTimedOutEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionFailed@ then this member is
-- set and provides detailed information about the event. It isn\'t set for
-- other event types.
historyEvent_workflowExecutionFailedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionFailedEventAttributes)
historyEvent_workflowExecutionFailedEventAttributes :: (Maybe WorkflowExecutionFailedEventAttributes
 -> f (Maybe WorkflowExecutionFailedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionFailedEventAttributes = (HistoryEvent -> Maybe WorkflowExecutionFailedEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionFailedEventAttributes -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionFailedEventAttributes)
     (Maybe WorkflowExecutionFailedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes :: Maybe WorkflowExecutionFailedEventAttributes
$sel:workflowExecutionFailedEventAttributes:HistoryEvent' :: HistoryEvent -> Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes} -> Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionFailedEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionFailedEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionFailedEventAttributes
workflowExecutionFailedEventAttributes = Maybe WorkflowExecutionFailedEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @WorkflowExecutionContinuedAsNew@ then this
-- member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_workflowExecutionContinuedAsNewEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe WorkflowExecutionContinuedAsNewEventAttributes)
historyEvent_workflowExecutionContinuedAsNewEventAttributes :: (Maybe WorkflowExecutionContinuedAsNewEventAttributes
 -> f (Maybe WorkflowExecutionContinuedAsNewEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_workflowExecutionContinuedAsNewEventAttributes = (HistoryEvent
 -> Maybe WorkflowExecutionContinuedAsNewEventAttributes)
-> (HistoryEvent
    -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe WorkflowExecutionContinuedAsNewEventAttributes)
     (Maybe WorkflowExecutionContinuedAsNewEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes :: Maybe WorkflowExecutionContinuedAsNewEventAttributes
$sel:workflowExecutionContinuedAsNewEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes} -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe WorkflowExecutionContinuedAsNewEventAttributes
a -> HistoryEvent
s {$sel:workflowExecutionContinuedAsNewEventAttributes:HistoryEvent' :: Maybe WorkflowExecutionContinuedAsNewEventAttributes
workflowExecutionContinuedAsNewEventAttributes = Maybe WorkflowExecutionContinuedAsNewEventAttributes
a} :: HistoryEvent)

-- | If the event is of type @ExternalWorkflowExecutionCancelRequested@ then
-- this member is set and provides detailed information about the event. It
-- isn\'t set for other event types.
historyEvent_externalWorkflowExecutionCancelRequestedEventAttributes :: Lens.Lens' HistoryEvent (Prelude.Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
historyEvent_externalWorkflowExecutionCancelRequestedEventAttributes :: (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
 -> f (Maybe
         ExternalWorkflowExecutionCancelRequestedEventAttributes))
-> HistoryEvent -> f HistoryEvent
historyEvent_externalWorkflowExecutionCancelRequestedEventAttributes = (HistoryEvent
 -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
-> (HistoryEvent
    -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
    -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
     (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes :: Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
$sel:externalWorkflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: HistoryEvent
-> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes} -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
a -> HistoryEvent
s {$sel:externalWorkflowExecutionCancelRequestedEventAttributes:HistoryEvent' :: Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
externalWorkflowExecutionCancelRequestedEventAttributes = Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
a} :: HistoryEvent)

-- | The date and time when the event occurred.
historyEvent_eventTimestamp :: Lens.Lens' HistoryEvent Prelude.UTCTime
historyEvent_eventTimestamp :: (UTCTime -> f UTCTime) -> HistoryEvent -> f HistoryEvent
historyEvent_eventTimestamp = (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
eventTimestamp :: POSIX
$sel:eventTimestamp:HistoryEvent' :: HistoryEvent -> POSIX
eventTimestamp} -> POSIX
eventTimestamp) (\s :: HistoryEvent
s@HistoryEvent' {} POSIX
a -> HistoryEvent
s {$sel:eventTimestamp:HistoryEvent' :: POSIX
eventTimestamp = 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 history event.
historyEvent_eventType :: Lens.Lens' HistoryEvent EventType
historyEvent_eventType :: (EventType -> f EventType) -> HistoryEvent -> f HistoryEvent
historyEvent_eventType = (HistoryEvent -> EventType)
-> (HistoryEvent -> EventType -> HistoryEvent)
-> Lens HistoryEvent HistoryEvent EventType EventType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {EventType
eventType :: EventType
$sel:eventType:HistoryEvent' :: HistoryEvent -> EventType
eventType} -> EventType
eventType) (\s :: HistoryEvent
s@HistoryEvent' {} EventType
a -> HistoryEvent
s {$sel:eventType:HistoryEvent' :: EventType
eventType = EventType
a} :: HistoryEvent)

-- | The system generated ID of the event. This ID uniquely identifies the
-- event with in the workflow execution history.
historyEvent_eventId :: Lens.Lens' HistoryEvent Prelude.Integer
historyEvent_eventId :: (Integer -> f Integer) -> HistoryEvent -> f HistoryEvent
historyEvent_eventId = (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
eventId :: Integer
$sel:eventId:HistoryEvent' :: HistoryEvent -> Integer
eventId} -> Integer
eventId) (\s :: HistoryEvent
s@HistoryEvent' {} Integer
a -> HistoryEvent
s {$sel:eventId:HistoryEvent' :: Integer
eventId = 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 WorkflowExecutionCancelRequestedEventAttributes
-> Maybe RecordMarkerFailedEventAttributes
-> Maybe
     RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe LambdaFunctionStartedEventAttributes
-> Maybe DecisionTaskScheduledEventAttributes
-> Maybe WorkflowExecutionCompletedEventAttributes
-> Maybe StartTimerFailedEventAttributes
-> Maybe ActivityTaskScheduledEventAttributes
-> Maybe ScheduleActivityTaskFailedEventAttributes
-> Maybe ChildWorkflowExecutionCompletedEventAttributes
-> Maybe MarkerRecordedEventAttributes
-> Maybe ScheduleLambdaFunctionFailedEventAttributes
-> Maybe CompleteWorkflowExecutionFailedEventAttributes
-> Maybe LambdaFunctionCompletedEventAttributes
-> Maybe
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe TimerCanceledEventAttributes
-> Maybe WorkflowExecutionStartedEventAttributes
-> Maybe ActivityTaskCompletedEventAttributes
-> Maybe DecisionTaskTimedOutEventAttributes
-> Maybe CancelTimerFailedEventAttributes
-> Maybe ChildWorkflowExecutionStartedEventAttributes
-> Maybe ActivityTaskCanceledEventAttributes
-> Maybe ActivityTaskTimedOutEventAttributes
-> Maybe DecisionTaskStartedEventAttributes
-> Maybe WorkflowExecutionTerminatedEventAttributes
-> Maybe ChildWorkflowExecutionCanceledEventAttributes
-> Maybe RequestCancelActivityTaskFailedEventAttributes
-> Maybe LambdaFunctionScheduledEventAttributes
-> Maybe ChildWorkflowExecutionTimedOutEventAttributes
-> Maybe CancelWorkflowExecutionFailedEventAttributes
-> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
-> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
-> Maybe ActivityTaskStartedEventAttributes
-> Maybe StartLambdaFunctionFailedEventAttributes
-> Maybe ChildWorkflowExecutionTerminatedEventAttributes
-> Maybe LambdaFunctionFailedEventAttributes
-> Maybe WorkflowExecutionCanceledEventAttributes
-> Maybe TimerStartedEventAttributes
-> Maybe ActivityTaskCancelRequestedEventAttributes
-> Maybe WorkflowExecutionTimedOutEventAttributes
-> Maybe WorkflowExecutionSignaledEventAttributes
-> Maybe TimerFiredEventAttributes
-> Maybe ActivityTaskFailedEventAttributes
-> Maybe ExternalWorkflowExecutionSignaledEventAttributes
-> Maybe DecisionTaskCompletedEventAttributes
-> Maybe StartChildWorkflowExecutionFailedEventAttributes
-> Maybe ChildWorkflowExecutionFailedEventAttributes
-> Maybe FailWorkflowExecutionFailedEventAttributes
-> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
-> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe LambdaFunctionTimedOutEventAttributes
-> Maybe WorkflowExecutionFailedEventAttributes
-> Maybe WorkflowExecutionContinuedAsNewEventAttributes
-> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
-> POSIX
-> EventType
-> Integer
-> HistoryEvent
HistoryEvent'
            (Maybe WorkflowExecutionCancelRequestedEventAttributes
 -> Maybe RecordMarkerFailedEventAttributes
 -> Maybe
      RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
 -> Maybe LambdaFunctionStartedEventAttributes
 -> Maybe DecisionTaskScheduledEventAttributes
 -> Maybe WorkflowExecutionCompletedEventAttributes
 -> Maybe StartTimerFailedEventAttributes
 -> Maybe ActivityTaskScheduledEventAttributes
 -> Maybe ScheduleActivityTaskFailedEventAttributes
 -> Maybe ChildWorkflowExecutionCompletedEventAttributes
 -> Maybe MarkerRecordedEventAttributes
 -> Maybe ScheduleLambdaFunctionFailedEventAttributes
 -> Maybe CompleteWorkflowExecutionFailedEventAttributes
 -> Maybe LambdaFunctionCompletedEventAttributes
 -> Maybe
      RequestCancelExternalWorkflowExecutionFailedEventAttributes
 -> Maybe TimerCanceledEventAttributes
 -> Maybe WorkflowExecutionStartedEventAttributes
 -> Maybe ActivityTaskCompletedEventAttributes
 -> Maybe DecisionTaskTimedOutEventAttributes
 -> Maybe CancelTimerFailedEventAttributes
 -> Maybe ChildWorkflowExecutionStartedEventAttributes
 -> Maybe ActivityTaskCanceledEventAttributes
 -> Maybe ActivityTaskTimedOutEventAttributes
 -> Maybe DecisionTaskStartedEventAttributes
 -> Maybe WorkflowExecutionTerminatedEventAttributes
 -> Maybe ChildWorkflowExecutionCanceledEventAttributes
 -> Maybe RequestCancelActivityTaskFailedEventAttributes
 -> Maybe LambdaFunctionScheduledEventAttributes
 -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
 -> Maybe CancelWorkflowExecutionFailedEventAttributes
 -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
 -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
 -> Maybe ActivityTaskStartedEventAttributes
 -> Maybe StartLambdaFunctionFailedEventAttributes
 -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
 -> Maybe LambdaFunctionFailedEventAttributes
 -> Maybe WorkflowExecutionCanceledEventAttributes
 -> Maybe TimerStartedEventAttributes
 -> Maybe ActivityTaskCancelRequestedEventAttributes
 -> Maybe WorkflowExecutionTimedOutEventAttributes
 -> Maybe WorkflowExecutionSignaledEventAttributes
 -> Maybe TimerFiredEventAttributes
 -> Maybe ActivityTaskFailedEventAttributes
 -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
 -> Maybe DecisionTaskCompletedEventAttributes
 -> Maybe StartChildWorkflowExecutionFailedEventAttributes
 -> Maybe ChildWorkflowExecutionFailedEventAttributes
 -> Maybe FailWorkflowExecutionFailedEventAttributes
 -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
 -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> Maybe LambdaFunctionTimedOutEventAttributes
 -> Maybe WorkflowExecutionFailedEventAttributes
 -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
 -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
 -> POSIX
 -> EventType
 -> Integer
 -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionCancelRequestedEventAttributes)
-> Parser
     (Maybe RecordMarkerFailedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionStartedEventAttributes
      -> Maybe DecisionTaskScheduledEventAttributes
      -> Maybe WorkflowExecutionCompletedEventAttributes
      -> Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            Object
-> Text
-> Parser (Maybe WorkflowExecutionCancelRequestedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionCancelRequestedEventAttributes"
                        )
            Parser
  (Maybe RecordMarkerFailedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionStartedEventAttributes
   -> Maybe DecisionTaskScheduledEventAttributes
   -> Maybe WorkflowExecutionCompletedEventAttributes
   -> Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe RecordMarkerFailedEventAttributes)
-> Parser
     (Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionStartedEventAttributes
      -> Maybe DecisionTaskScheduledEventAttributes
      -> Maybe WorkflowExecutionCompletedEventAttributes
      -> Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RecordMarkerFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"recordMarkerFailedEventAttributes")
            Parser
  (Maybe
     RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionStartedEventAttributes
   -> Maybe DecisionTaskScheduledEventAttributes
   -> Maybe WorkflowExecutionCompletedEventAttributes
   -> Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser
     (Maybe LambdaFunctionStartedEventAttributes
      -> Maybe DecisionTaskScheduledEventAttributes
      -> Maybe WorkflowExecutionCompletedEventAttributes
      -> Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"requestCancelExternalWorkflowExecutionInitiatedEventAttributes"
                        )
            Parser
  (Maybe LambdaFunctionStartedEventAttributes
   -> Maybe DecisionTaskScheduledEventAttributes
   -> Maybe WorkflowExecutionCompletedEventAttributes
   -> Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionStartedEventAttributes)
-> Parser
     (Maybe DecisionTaskScheduledEventAttributes
      -> Maybe WorkflowExecutionCompletedEventAttributes
      -> Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionStartedEventAttributes")
            Parser
  (Maybe DecisionTaskScheduledEventAttributes
   -> Maybe WorkflowExecutionCompletedEventAttributes
   -> Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe DecisionTaskScheduledEventAttributes)
-> Parser
     (Maybe WorkflowExecutionCompletedEventAttributes
      -> Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe DecisionTaskScheduledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"decisionTaskScheduledEventAttributes")
            Parser
  (Maybe WorkflowExecutionCompletedEventAttributes
   -> Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionCompletedEventAttributes)
-> Parser
     (Maybe StartTimerFailedEventAttributes
      -> Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe WorkflowExecutionCompletedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionCompletedEventAttributes"
                        )
            Parser
  (Maybe StartTimerFailedEventAttributes
   -> Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe StartTimerFailedEventAttributes)
-> Parser
     (Maybe ActivityTaskScheduledEventAttributes
      -> Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StartTimerFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startTimerFailedEventAttributes")
            Parser
  (Maybe ActivityTaskScheduledEventAttributes
   -> Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskScheduledEventAttributes)
-> Parser
     (Maybe ScheduleActivityTaskFailedEventAttributes
      -> Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ActivityTaskScheduledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskScheduledEventAttributes")
            Parser
  (Maybe ScheduleActivityTaskFailedEventAttributes
   -> Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ScheduleActivityTaskFailedEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionCompletedEventAttributes
      -> Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe ScheduleActivityTaskFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"scheduleActivityTaskFailedEventAttributes"
                        )
            Parser
  (Maybe ChildWorkflowExecutionCompletedEventAttributes
   -> Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionCompletedEventAttributes)
-> Parser
     (Maybe MarkerRecordedEventAttributes
      -> Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionCompletedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionCompletedEventAttributes"
                        )
            Parser
  (Maybe MarkerRecordedEventAttributes
   -> Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe MarkerRecordedEventAttributes)
-> Parser
     (Maybe ScheduleLambdaFunctionFailedEventAttributes
      -> Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MarkerRecordedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"markerRecordedEventAttributes")
            Parser
  (Maybe ScheduleLambdaFunctionFailedEventAttributes
   -> Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ScheduleLambdaFunctionFailedEventAttributes)
-> Parser
     (Maybe CompleteWorkflowExecutionFailedEventAttributes
      -> Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ScheduleLambdaFunctionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"scheduleLambdaFunctionFailedEventAttributes"
                        )
            Parser
  (Maybe CompleteWorkflowExecutionFailedEventAttributes
   -> Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe CompleteWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe LambdaFunctionCompletedEventAttributes
      -> Maybe
           RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe CompleteWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"completeWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe LambdaFunctionCompletedEventAttributes
   -> Maybe
        RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionCompletedEventAttributes)
-> Parser
     (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
      -> Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionCompletedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionCompletedEventAttributes")
            Parser
  (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes
   -> Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe TimerCanceledEventAttributes
      -> Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"requestCancelExternalWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe TimerCanceledEventAttributes
   -> Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TimerCanceledEventAttributes)
-> Parser
     (Maybe WorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TimerCanceledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timerCanceledEventAttributes")
            Parser
  (Maybe WorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionStartedEventAttributes)
-> Parser
     (Maybe ActivityTaskCompletedEventAttributes
      -> Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe WorkflowExecutionStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionStartedEventAttributes"
                        )
            Parser
  (Maybe ActivityTaskCompletedEventAttributes
   -> Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskCompletedEventAttributes)
-> Parser
     (Maybe DecisionTaskTimedOutEventAttributes
      -> Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ActivityTaskCompletedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskCompletedEventAttributes")
            Parser
  (Maybe DecisionTaskTimedOutEventAttributes
   -> Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe DecisionTaskTimedOutEventAttributes)
-> Parser
     (Maybe CancelTimerFailedEventAttributes
      -> Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe DecisionTaskTimedOutEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"decisionTaskTimedOutEventAttributes")
            Parser
  (Maybe CancelTimerFailedEventAttributes
   -> Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe CancelTimerFailedEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionStartedEventAttributes
      -> Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CancelTimerFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cancelTimerFailedEventAttributes")
            Parser
  (Maybe ChildWorkflowExecutionStartedEventAttributes
   -> Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionStartedEventAttributes)
-> Parser
     (Maybe ActivityTaskCanceledEventAttributes
      -> Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionStartedEventAttributes"
                        )
            Parser
  (Maybe ActivityTaskCanceledEventAttributes
   -> Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskCanceledEventAttributes)
-> Parser
     (Maybe ActivityTaskTimedOutEventAttributes
      -> Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ActivityTaskCanceledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskCanceledEventAttributes")
            Parser
  (Maybe ActivityTaskTimedOutEventAttributes
   -> Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskTimedOutEventAttributes)
-> Parser
     (Maybe DecisionTaskStartedEventAttributes
      -> Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ActivityTaskTimedOutEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskTimedOutEventAttributes")
            Parser
  (Maybe DecisionTaskStartedEventAttributes
   -> Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe DecisionTaskStartedEventAttributes)
-> Parser
     (Maybe WorkflowExecutionTerminatedEventAttributes
      -> Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DecisionTaskStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"decisionTaskStartedEventAttributes")
            Parser
  (Maybe WorkflowExecutionTerminatedEventAttributes
   -> Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionTerminatedEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionCanceledEventAttributes
      -> Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe WorkflowExecutionTerminatedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionTerminatedEventAttributes"
                        )
            Parser
  (Maybe ChildWorkflowExecutionCanceledEventAttributes
   -> Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionCanceledEventAttributes)
-> Parser
     (Maybe RequestCancelActivityTaskFailedEventAttributes
      -> Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionCanceledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionCanceledEventAttributes"
                        )
            Parser
  (Maybe RequestCancelActivityTaskFailedEventAttributes
   -> Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe RequestCancelActivityTaskFailedEventAttributes)
-> Parser
     (Maybe LambdaFunctionScheduledEventAttributes
      -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe RequestCancelActivityTaskFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"requestCancelActivityTaskFailedEventAttributes"
                        )
            Parser
  (Maybe LambdaFunctionScheduledEventAttributes
   -> Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionScheduledEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionTimedOutEventAttributes
      -> Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionScheduledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionScheduledEventAttributes")
            Parser
  (Maybe ChildWorkflowExecutionTimedOutEventAttributes
   -> Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser
     (Maybe CancelWorkflowExecutionFailedEventAttributes
      -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionTimedOutEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionTimedOutEventAttributes"
                        )
            Parser
  (Maybe CancelWorkflowExecutionFailedEventAttributes
   -> Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe CancelWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe StartChildWorkflowExecutionInitiatedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe CancelWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cancelWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe StartChildWorkflowExecutionInitiatedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser
     (Maybe SignalExternalWorkflowExecutionFailedEventAttributes
      -> Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startChildWorkflowExecutionInitiatedEventAttributes"
                        )
            Parser
  (Maybe SignalExternalWorkflowExecutionFailedEventAttributes
   -> Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe ActivityTaskStartedEventAttributes
      -> Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"signalExternalWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe ActivityTaskStartedEventAttributes
   -> Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskStartedEventAttributes)
-> Parser
     (Maybe StartLambdaFunctionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityTaskStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskStartedEventAttributes")
            Parser
  (Maybe StartLambdaFunctionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe StartLambdaFunctionFailedEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionTerminatedEventAttributes
      -> Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe StartLambdaFunctionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startLambdaFunctionFailedEventAttributes"
                        )
            Parser
  (Maybe ChildWorkflowExecutionTerminatedEventAttributes
   -> Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionTerminatedEventAttributes)
-> Parser
     (Maybe LambdaFunctionFailedEventAttributes
      -> Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionTerminatedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionTerminatedEventAttributes"
                        )
            Parser
  (Maybe LambdaFunctionFailedEventAttributes
   -> Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionFailedEventAttributes)
-> Parser
     (Maybe WorkflowExecutionCanceledEventAttributes
      -> Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionFailedEventAttributes")
            Parser
  (Maybe WorkflowExecutionCanceledEventAttributes
   -> Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionCanceledEventAttributes)
-> Parser
     (Maybe TimerStartedEventAttributes
      -> Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe WorkflowExecutionCanceledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionCanceledEventAttributes"
                        )
            Parser
  (Maybe TimerStartedEventAttributes
   -> Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TimerStartedEventAttributes)
-> Parser
     (Maybe ActivityTaskCancelRequestedEventAttributes
      -> Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TimerStartedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timerStartedEventAttributes")
            Parser
  (Maybe ActivityTaskCancelRequestedEventAttributes
   -> Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskCancelRequestedEventAttributes)
-> Parser
     (Maybe WorkflowExecutionTimedOutEventAttributes
      -> Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ActivityTaskCancelRequestedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskCancelRequestedEventAttributes"
                        )
            Parser
  (Maybe WorkflowExecutionTimedOutEventAttributes
   -> Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionTimedOutEventAttributes)
-> Parser
     (Maybe WorkflowExecutionSignaledEventAttributes
      -> Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe WorkflowExecutionTimedOutEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionTimedOutEventAttributes"
                        )
            Parser
  (Maybe WorkflowExecutionSignaledEventAttributes
   -> Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionSignaledEventAttributes)
-> Parser
     (Maybe TimerFiredEventAttributes
      -> Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe WorkflowExecutionSignaledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionSignaledEventAttributes"
                        )
            Parser
  (Maybe TimerFiredEventAttributes
   -> Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TimerFiredEventAttributes)
-> Parser
     (Maybe ActivityTaskFailedEventAttributes
      -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TimerFiredEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timerFiredEventAttributes")
            Parser
  (Maybe ActivityTaskFailedEventAttributes
   -> Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTaskFailedEventAttributes)
-> Parser
     (Maybe ExternalWorkflowExecutionSignaledEventAttributes
      -> Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityTaskFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTaskFailedEventAttributes")
            Parser
  (Maybe ExternalWorkflowExecutionSignaledEventAttributes
   -> Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExternalWorkflowExecutionSignaledEventAttributes)
-> Parser
     (Maybe DecisionTaskCompletedEventAttributes
      -> Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ExternalWorkflowExecutionSignaledEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"externalWorkflowExecutionSignaledEventAttributes"
                        )
            Parser
  (Maybe DecisionTaskCompletedEventAttributes
   -> Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe DecisionTaskCompletedEventAttributes)
-> Parser
     (Maybe StartChildWorkflowExecutionFailedEventAttributes
      -> Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe DecisionTaskCompletedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"decisionTaskCompletedEventAttributes")
            Parser
  (Maybe StartChildWorkflowExecutionFailedEventAttributes
   -> Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe StartChildWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe ChildWorkflowExecutionFailedEventAttributes
      -> Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe StartChildWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startChildWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe ChildWorkflowExecutionFailedEventAttributes
   -> Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ChildWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe FailWorkflowExecutionFailedEventAttributes
      -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ChildWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"childWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe FailWorkflowExecutionFailedEventAttributes
   -> Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe FailWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
      -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe FailWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"failWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes
   -> Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
      -> Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"continueAsNewWorkflowExecutionFailedEventAttributes"
                        )
            Parser
  (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes
   -> Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser
     (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser
     (Maybe LambdaFunctionTimedOutEventAttributes
      -> Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"signalExternalWorkflowExecutionInitiatedEventAttributes"
                        )
            Parser
  (Maybe LambdaFunctionTimedOutEventAttributes
   -> Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionTimedOutEventAttributes)
-> Parser
     (Maybe WorkflowExecutionFailedEventAttributes
      -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionTimedOutEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionTimedOutEventAttributes")
            Parser
  (Maybe WorkflowExecutionFailedEventAttributes
   -> Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionFailedEventAttributes)
-> Parser
     (Maybe WorkflowExecutionContinuedAsNewEventAttributes
      -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX
      -> EventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe WorkflowExecutionFailedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionFailedEventAttributes")
            Parser
  (Maybe WorkflowExecutionContinuedAsNewEventAttributes
   -> Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX
   -> EventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe WorkflowExecutionContinuedAsNewEventAttributes)
-> Parser
     (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
      -> POSIX -> EventType -> Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe WorkflowExecutionContinuedAsNewEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"workflowExecutionContinuedAsNewEventAttributes"
                        )
            Parser
  (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes
   -> POSIX -> EventType -> Integer -> HistoryEvent)
-> Parser
     (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
-> Parser (POSIX -> EventType -> Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser
     (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"externalWorkflowExecutionCancelRequestedEventAttributes"
                        )
            Parser (POSIX -> EventType -> Integer -> HistoryEvent)
-> Parser POSIX -> Parser (EventType -> 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
"eventTimestamp")
            Parser (EventType -> Integer -> HistoryEvent)
-> Parser EventType -> Parser (Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser EventType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"eventType")
            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
"eventId")
      )

instance Prelude.Hashable HistoryEvent

instance Prelude.NFData HistoryEvent