packages feed

amazonka-swf 0.3.6 → 1.0.0

raw patch · 42 files changed

+15838/−12443 lines, 42 filesdep +amazonka-swfdep +amazonka-testdep +bytestringdep ~amazonka-coredep ~basePVP ok

version bump matches the API change (PVP)

Dependencies added: amazonka-swf, amazonka-test, bytestring, lens, tasty, tasty-hunit, text, time, unordered-containers

Dependency ranges changed: amazonka-core, base

API changes (from Hackage documentation)

- Network.AWS.SWF.CountClosedWorkflowExecutions: ccwerCount :: Lens' CountClosedWorkflowExecutionsResponse Natural
- Network.AWS.SWF.CountClosedWorkflowExecutions: ccwerTruncated :: Lens' CountClosedWorkflowExecutionsResponse (Maybe Bool)
- Network.AWS.SWF.CountClosedWorkflowExecutions: countClosedWorkflowExecutionsResponse :: Natural -> CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: data CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: instance Eq CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: instance FromJSON CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: instance Ord CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: instance Read CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountClosedWorkflowExecutions: instance Show CountClosedWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: countOpenWorkflowExecutionsResponse :: Natural -> CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: cowerCount :: Lens' CountOpenWorkflowExecutionsResponse Natural
- Network.AWS.SWF.CountOpenWorkflowExecutions: cowerTruncated :: Lens' CountOpenWorkflowExecutionsResponse (Maybe Bool)
- Network.AWS.SWF.CountOpenWorkflowExecutions: data CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance Eq CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance FromJSON CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance Ord CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance Read CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance Show CountOpenWorkflowExecutionsResponse
- Network.AWS.SWF.CountPendingActivityTasks: countPendingActivityTasksResponse :: Natural -> CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: cpatrCount :: Lens' CountPendingActivityTasksResponse Natural
- Network.AWS.SWF.CountPendingActivityTasks: cpatrTruncated :: Lens' CountPendingActivityTasksResponse (Maybe Bool)
- Network.AWS.SWF.CountPendingActivityTasks: data CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: instance Eq CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: instance FromJSON CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: instance Ord CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: instance Read CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingActivityTasks: instance Show CountPendingActivityTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: countPendingDecisionTasksResponse :: Natural -> CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: cpdtrCount :: Lens' CountPendingDecisionTasksResponse Natural
- Network.AWS.SWF.CountPendingDecisionTasks: cpdtrTruncated :: Lens' CountPendingDecisionTasksResponse (Maybe Bool)
- Network.AWS.SWF.CountPendingDecisionTasks: data CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: instance Eq CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: instance FromJSON CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: instance Ord CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: instance Read CountPendingDecisionTasksResponse
- Network.AWS.SWF.CountPendingDecisionTasks: instance Show CountPendingDecisionTasksResponse
- Network.AWS.SWF.DeprecateActivityType: dat1ActivityType :: Lens' DeprecateActivityType ActivityType
- Network.AWS.SWF.DeprecateActivityType: dat1Domain :: Lens' DeprecateActivityType Text
- Network.AWS.SWF.DeprecateActivityType: instance Ord DeprecateActivityTypeResponse
- Network.AWS.SWF.DeprecateDomain: dd1Name :: Lens' DeprecateDomain Text
- Network.AWS.SWF.DeprecateDomain: instance IsString DeprecateDomain
- Network.AWS.SWF.DeprecateDomain: instance Monoid DeprecateDomain
- Network.AWS.SWF.DeprecateDomain: instance Ord DeprecateDomain
- Network.AWS.SWF.DeprecateDomain: instance Ord DeprecateDomainResponse
- Network.AWS.SWF.DeprecateWorkflowType: dwt1Domain :: Lens' DeprecateWorkflowType Text
- Network.AWS.SWF.DeprecateWorkflowType: dwt1WorkflowType :: Lens' DeprecateWorkflowType WorkflowType
- Network.AWS.SWF.DeprecateWorkflowType: instance Ord DeprecateWorkflowTypeResponse
- Network.AWS.SWF.DescribeActivityType: datrConfiguration :: Lens' DescribeActivityTypeResponse ActivityTypeConfiguration
- Network.AWS.SWF.DescribeActivityType: datrTypeInfo :: Lens' DescribeActivityTypeResponse ActivityTypeInfo
- Network.AWS.SWF.DescribeActivityType: instance FromJSON DescribeActivityTypeResponse
- Network.AWS.SWF.DescribeDomain: ddrConfiguration :: Lens' DescribeDomainResponse DomainConfiguration
- Network.AWS.SWF.DescribeDomain: ddrDomainInfo :: Lens' DescribeDomainResponse DomainInfo
- Network.AWS.SWF.DescribeDomain: instance FromJSON DescribeDomainResponse
- Network.AWS.SWF.DescribeDomain: instance IsString DescribeDomain
- Network.AWS.SWF.DescribeDomain: instance Monoid DescribeDomain
- Network.AWS.SWF.DescribeDomain: instance Ord DescribeDomain
- Network.AWS.SWF.DescribeWorkflowExecution: dwerExecutionConfiguration :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration
- Network.AWS.SWF.DescribeWorkflowExecution: dwerExecutionInfo :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo
- Network.AWS.SWF.DescribeWorkflowExecution: dwerLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime)
- Network.AWS.SWF.DescribeWorkflowExecution: dwerLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text)
- Network.AWS.SWF.DescribeWorkflowExecution: dwerOpenCounts :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts
- Network.AWS.SWF.DescribeWorkflowExecution: instance FromJSON DescribeWorkflowExecutionResponse
- Network.AWS.SWF.DescribeWorkflowType: dwtrConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration
- Network.AWS.SWF.DescribeWorkflowType: dwtrTypeInfo :: Lens' DescribeWorkflowTypeResponse WorkflowTypeInfo
- Network.AWS.SWF.DescribeWorkflowType: instance FromJSON DescribeWorkflowTypeResponse
- Network.AWS.SWF.GetWorkflowExecutionHistory: gwehrEvents :: Lens' GetWorkflowExecutionHistoryResponse [HistoryEvent]
- Network.AWS.SWF.GetWorkflowExecutionHistory: gwehrNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text)
- Network.AWS.SWF.GetWorkflowExecutionHistory: instance FromJSON GetWorkflowExecutionHistoryResponse
- Network.AWS.SWF.ListActivityTypes: instance FromJSON ListActivityTypesResponse
- Network.AWS.SWF.ListActivityTypes: latrNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text)
- Network.AWS.SWF.ListActivityTypes: latrTypeInfos :: Lens' ListActivityTypesResponse [ActivityTypeInfo]
- Network.AWS.SWF.ListClosedWorkflowExecutions: data ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListClosedWorkflowExecutions: instance Eq ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListClosedWorkflowExecutions: instance FromJSON ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListClosedWorkflowExecutions: instance Read ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListClosedWorkflowExecutions: instance Show ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListClosedWorkflowExecutions: lcwerExecutionInfos :: Lens' ListClosedWorkflowExecutionsResponse [WorkflowExecutionInfo]
- Network.AWS.SWF.ListClosedWorkflowExecutions: lcwerNextPageToken :: Lens' ListClosedWorkflowExecutionsResponse (Maybe Text)
- Network.AWS.SWF.ListClosedWorkflowExecutions: listClosedWorkflowExecutionsResponse :: ListClosedWorkflowExecutionsResponse
- Network.AWS.SWF.ListDomains: instance FromJSON ListDomainsResponse
- Network.AWS.SWF.ListDomains: ldrDomainInfos :: Lens' ListDomainsResponse [DomainInfo]
- Network.AWS.SWF.ListDomains: ldrNextPageToken :: Lens' ListDomainsResponse (Maybe Text)
- Network.AWS.SWF.ListOpenWorkflowExecutions: data ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: instance Eq ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: instance FromJSON ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: instance Read ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: instance Show ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: listOpenWorkflowExecutionsResponse :: ListOpenWorkflowExecutionsResponse
- Network.AWS.SWF.ListOpenWorkflowExecutions: lowerExecutionInfos :: Lens' ListOpenWorkflowExecutionsResponse [WorkflowExecutionInfo]
- Network.AWS.SWF.ListOpenWorkflowExecutions: lowerNextPageToken :: Lens' ListOpenWorkflowExecutionsResponse (Maybe Text)
- Network.AWS.SWF.ListWorkflowTypes: instance FromJSON ListWorkflowTypesResponse
- Network.AWS.SWF.ListWorkflowTypes: lwtrNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text)
- Network.AWS.SWF.ListWorkflowTypes: lwtrTypeInfos :: Lens' ListWorkflowTypesResponse [WorkflowTypeInfo]
- Network.AWS.SWF.PollForActivityTask: instance FromJSON PollForActivityTaskResponse
- Network.AWS.SWF.PollForActivityTask: pfatrActivityId :: Lens' PollForActivityTaskResponse Text
- Network.AWS.SWF.PollForActivityTask: pfatrActivityType :: Lens' PollForActivityTaskResponse ActivityType
- Network.AWS.SWF.PollForActivityTask: pfatrInput :: Lens' PollForActivityTaskResponse (Maybe Text)
- Network.AWS.SWF.PollForActivityTask: pfatrStartedEventId :: Lens' PollForActivityTaskResponse Integer
- Network.AWS.SWF.PollForActivityTask: pfatrTaskToken :: Lens' PollForActivityTaskResponse Text
- Network.AWS.SWF.PollForActivityTask: pfatrWorkflowExecution :: Lens' PollForActivityTaskResponse WorkflowExecution
- Network.AWS.SWF.PollForDecisionTask: instance FromJSON PollForDecisionTaskResponse
- Network.AWS.SWF.PollForDecisionTask: pfdtrEvents :: Lens' PollForDecisionTaskResponse [HistoryEvent]
- Network.AWS.SWF.PollForDecisionTask: pfdtrNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text)
- Network.AWS.SWF.PollForDecisionTask: pfdtrPreviousStartedEventId :: Lens' PollForDecisionTaskResponse (Maybe Integer)
- Network.AWS.SWF.PollForDecisionTask: pfdtrStartedEventId :: Lens' PollForDecisionTaskResponse Integer
- Network.AWS.SWF.PollForDecisionTask: pfdtrTaskToken :: Lens' PollForDecisionTaskResponse Text
- Network.AWS.SWF.PollForDecisionTask: pfdtrWorkflowExecution :: Lens' PollForDecisionTaskResponse WorkflowExecution
- Network.AWS.SWF.PollForDecisionTask: pfdtrWorkflowType :: Lens' PollForDecisionTaskResponse WorkflowType
- Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Enum RecordActivityTaskHeartbeatResponse
- Network.AWS.SWF.RecordActivityTaskHeartbeat: instance FromJSON RecordActivityTaskHeartbeatResponse
- Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Ord RecordActivityTaskHeartbeat
- Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Ord RecordActivityTaskHeartbeatResponse
- Network.AWS.SWF.RecordActivityTaskHeartbeat: rathrCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool
- Network.AWS.SWF.RegisterActivityType: instance Ord RegisterActivityTypeResponse
- Network.AWS.SWF.RegisterDomain: instance Ord RegisterDomain
- Network.AWS.SWF.RegisterDomain: instance Ord RegisterDomainResponse
- Network.AWS.SWF.RegisterWorkflowType: instance Ord RegisterWorkflowTypeResponse
- Network.AWS.SWF.RequestCancelWorkflowExecution: instance Ord RequestCancelWorkflowExecution
- Network.AWS.SWF.RequestCancelWorkflowExecution: instance Ord RequestCancelWorkflowExecutionResponse
- Network.AWS.SWF.RespondActivityTaskCanceled: instance Ord RespondActivityTaskCanceled
- Network.AWS.SWF.RespondActivityTaskCanceled: instance Ord RespondActivityTaskCanceledResponse
- Network.AWS.SWF.RespondActivityTaskCanceled: ratc1Details :: Lens' RespondActivityTaskCanceled (Maybe Text)
- Network.AWS.SWF.RespondActivityTaskCanceled: ratc1TaskToken :: Lens' RespondActivityTaskCanceled Text
- Network.AWS.SWF.RespondActivityTaskCompleted: instance Ord RespondActivityTaskCompleted
- Network.AWS.SWF.RespondActivityTaskCompleted: instance Ord RespondActivityTaskCompletedResponse
- Network.AWS.SWF.RespondActivityTaskFailed: instance Ord RespondActivityTaskFailed
- Network.AWS.SWF.RespondActivityTaskFailed: instance Ord RespondActivityTaskFailedResponse
- Network.AWS.SWF.RespondDecisionTaskCompleted: instance Ord RespondDecisionTaskCompletedResponse
- Network.AWS.SWF.SignalWorkflowExecution: instance Ord SignalWorkflowExecution
- Network.AWS.SWF.SignalWorkflowExecution: instance Ord SignalWorkflowExecutionResponse
- Network.AWS.SWF.StartWorkflowExecution: instance FromJSON StartWorkflowExecutionResponse
- Network.AWS.SWF.StartWorkflowExecution: instance Monoid StartWorkflowExecutionResponse
- Network.AWS.SWF.StartWorkflowExecution: instance Ord StartWorkflowExecutionResponse
- Network.AWS.SWF.StartWorkflowExecution: swe1ChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy)
- Network.AWS.SWF.StartWorkflowExecution: swe1Domain :: Lens' StartWorkflowExecution Text
- Network.AWS.SWF.StartWorkflowExecution: swe1ExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)
- Network.AWS.SWF.StartWorkflowExecution: swe1Input :: Lens' StartWorkflowExecution (Maybe Text)
- Network.AWS.SWF.StartWorkflowExecution: swe1TagList :: Lens' StartWorkflowExecution [Text]
- Network.AWS.SWF.StartWorkflowExecution: swe1TaskList :: Lens' StartWorkflowExecution (Maybe TaskList)
- Network.AWS.SWF.StartWorkflowExecution: swe1TaskPriority :: Lens' StartWorkflowExecution (Maybe Text)
- Network.AWS.SWF.StartWorkflowExecution: swe1TaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)
- Network.AWS.SWF.StartWorkflowExecution: swe1WorkflowId :: Lens' StartWorkflowExecution Text
- Network.AWS.SWF.StartWorkflowExecution: swe1WorkflowType :: Lens' StartWorkflowExecution WorkflowType
- Network.AWS.SWF.StartWorkflowExecution: swerRunId :: Lens' StartWorkflowExecutionResponse (Maybe Text)
- Network.AWS.SWF.TerminateWorkflowExecution: instance Ord TerminateWorkflowExecutionResponse
- Network.AWS.SWF.Types: ActivityIdUnknown :: RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: CSCanceled :: CloseStatus
- Network.AWS.SWF.Types: CSCompleted :: CloseStatus
- Network.AWS.SWF.Types: CSContinuedAsNew :: CloseStatus
- Network.AWS.SWF.Types: CSFailed :: CloseStatus
- Network.AWS.SWF.Types: CSTerminated :: CloseStatus
- Network.AWS.SWF.Types: CSTimedOut :: CloseStatus
- Network.AWS.SWF.Types: CompleteWorkflowExecutionFailedCauseOperationNotPermitted :: CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: CompleteWorkflowExecutionFailedCauseUnhandledDecision :: CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: DTTTStartToClose :: DecisionTaskTimeoutType
- Network.AWS.SWF.Types: EventLimitExceeded :: WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: OperatorInitiated :: WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: STFCOpenTimersLimitExceeded :: StartTimerFailedCause
- Network.AWS.SWF.Types: STFCOperationNotPermitted :: StartTimerFailedCause
- Network.AWS.SWF.Types: STFCTimerCreationRateExceeded :: StartTimerFailedCause
- Network.AWS.SWF.Types: STFCTimerIdAlreadyInUse :: StartTimerFailedCause
- Network.AWS.SWF.Types: WECRCChildPolicyApplied :: WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: atcea1Details :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)
- Network.AWS.SWF.Types: atcea1LatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)
- Network.AWS.SWF.Types: atcea1ScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
- Network.AWS.SWF.Types: atcea1StartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
- Network.AWS.SWF.Types: cwecea1Details :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)
- Network.AWS.SWF.Types: cwecea1InitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
- Network.AWS.SWF.Types: cwecea1StartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
- Network.AWS.SWF.Types: cwecea1WorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution
- Network.AWS.SWF.Types: cwecea1WorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType
- Network.AWS.SWF.Types: cwefea1Cause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: cwefea1DecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer
- Network.AWS.SWF.Types: data JSONError :: *
- Network.AWS.SWF.Types: instance Constructor C1_0ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_0CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0ChildPolicy
- Network.AWS.SWF.Types: instance Constructor C1_0CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_0CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_0DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_0EventType
- Network.AWS.SWF.Types: instance Constructor C1_0ExecutionStatus
- Network.AWS.SWF.Types: instance Constructor C1_0FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0RegistrationStatus
- Network.AWS.SWF.Types: instance Constructor C1_0RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0StartTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_0WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Constructor C1_0WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Constructor C1_0WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_10DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_10EventType
- Network.AWS.SWF.Types: instance Constructor C1_10ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_10StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_11DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_11EventType
- Network.AWS.SWF.Types: instance Constructor C1_12EventType
- Network.AWS.SWF.Types: instance Constructor C1_13EventType
- Network.AWS.SWF.Types: instance Constructor C1_14EventType
- Network.AWS.SWF.Types: instance Constructor C1_15EventType
- Network.AWS.SWF.Types: instance Constructor C1_16EventType
- Network.AWS.SWF.Types: instance Constructor C1_17EventType
- Network.AWS.SWF.Types: instance Constructor C1_18EventType
- Network.AWS.SWF.Types: instance Constructor C1_19EventType
- Network.AWS.SWF.Types: instance Constructor C1_1ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_1CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1ChildPolicy
- Network.AWS.SWF.Types: instance Constructor C1_1CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_1CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_1EventType
- Network.AWS.SWF.Types: instance Constructor C1_1ExecutionStatus
- Network.AWS.SWF.Types: instance Constructor C1_1FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1RegistrationStatus
- Network.AWS.SWF.Types: instance Constructor C1_1RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1StartTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_1WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Constructor C1_20EventType
- Network.AWS.SWF.Types: instance Constructor C1_21EventType
- Network.AWS.SWF.Types: instance Constructor C1_22EventType
- Network.AWS.SWF.Types: instance Constructor C1_23EventType
- Network.AWS.SWF.Types: instance Constructor C1_24EventType
- Network.AWS.SWF.Types: instance Constructor C1_25EventType
- Network.AWS.SWF.Types: instance Constructor C1_26EventType
- Network.AWS.SWF.Types: instance Constructor C1_27EventType
- Network.AWS.SWF.Types: instance Constructor C1_28EventType
- Network.AWS.SWF.Types: instance Constructor C1_29EventType
- Network.AWS.SWF.Types: instance Constructor C1_2ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_2ChildPolicy
- Network.AWS.SWF.Types: instance Constructor C1_2CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_2ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_2EventType
- Network.AWS.SWF.Types: instance Constructor C1_2RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2StartTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_2WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Constructor C1_30EventType
- Network.AWS.SWF.Types: instance Constructor C1_31EventType
- Network.AWS.SWF.Types: instance Constructor C1_32EventType
- Network.AWS.SWF.Types: instance Constructor C1_33EventType
- Network.AWS.SWF.Types: instance Constructor C1_34EventType
- Network.AWS.SWF.Types: instance Constructor C1_35EventType
- Network.AWS.SWF.Types: instance Constructor C1_36EventType
- Network.AWS.SWF.Types: instance Constructor C1_37EventType
- Network.AWS.SWF.Types: instance Constructor C1_38EventType
- Network.AWS.SWF.Types: instance Constructor C1_39EventType
- Network.AWS.SWF.Types: instance Constructor C1_3ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Constructor C1_3CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_3ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_3DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_3EventType
- Network.AWS.SWF.Types: instance Constructor C1_3ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_3StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_3StartTimerFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_40EventType
- Network.AWS.SWF.Types: instance Constructor C1_41EventType
- Network.AWS.SWF.Types: instance Constructor C1_42EventType
- Network.AWS.SWF.Types: instance Constructor C1_43EventType
- Network.AWS.SWF.Types: instance Constructor C1_44EventType
- Network.AWS.SWF.Types: instance Constructor C1_45EventType
- Network.AWS.SWF.Types: instance Constructor C1_46EventType
- Network.AWS.SWF.Types: instance Constructor C1_4CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_4ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_4DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_4EventType
- Network.AWS.SWF.Types: instance Constructor C1_4ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_4StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_5CloseStatus
- Network.AWS.SWF.Types: instance Constructor C1_5ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_5DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_5EventType
- Network.AWS.SWF.Types: instance Constructor C1_5ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_5StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_6ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_6DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_6EventType
- Network.AWS.SWF.Types: instance Constructor C1_6ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_6StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_7ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_7DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_7EventType
- Network.AWS.SWF.Types: instance Constructor C1_7ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_7StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_8ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_8DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_8EventType
- Network.AWS.SWF.Types: instance Constructor C1_8ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_8StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_9DecisionType
- Network.AWS.SWF.Types: instance Constructor C1_9EventType
- Network.AWS.SWF.Types: instance Constructor C1_9ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Constructor C1_9StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Datatype D1CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Datatype D1CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1ChildPolicy
- Network.AWS.SWF.Types: instance Datatype D1CloseStatus
- Network.AWS.SWF.Types: instance Datatype D1CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Datatype D1DecisionType
- Network.AWS.SWF.Types: instance Datatype D1EventType
- Network.AWS.SWF.Types: instance Datatype D1ExecutionStatus
- Network.AWS.SWF.Types: instance Datatype D1FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Datatype D1RegistrationStatus
- Network.AWS.SWF.Types: instance Datatype D1RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Datatype D1RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Datatype D1SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Datatype D1StartTimerFailedCause
- Network.AWS.SWF.Types: instance Datatype D1WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Datatype D1WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Datatype D1WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Enum ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Enum CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Enum CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum ChildPolicy
- Network.AWS.SWF.Types: instance Enum CloseStatus
- Network.AWS.SWF.Types: instance Enum CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Enum DecisionType
- Network.AWS.SWF.Types: instance Enum EventType
- Network.AWS.SWF.Types: instance Enum ExecutionStatus
- Network.AWS.SWF.Types: instance Enum FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Enum RegistrationStatus
- Network.AWS.SWF.Types: instance Enum RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Enum RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Enum SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Enum StartTimerFailedCause
- Network.AWS.SWF.Types: instance Enum WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Enum WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Enum WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Eq ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Eq ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Eq ActivityType
- Network.AWS.SWF.Types: instance Eq ActivityTypeConfiguration
- Network.AWS.SWF.Types: instance Eq ActivityTypeInfo
- Network.AWS.SWF.Types: instance Eq CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Eq CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Eq CancelTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq CancelWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildPolicy
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Eq ChildWorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Eq CloseStatus
- Network.AWS.SWF.Types: instance Eq CloseStatusFilter
- Network.AWS.SWF.Types: instance Eq CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq CompleteWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq ContinueAsNewWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq ContinueAsNewWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq Decision
- Network.AWS.SWF.Types: instance Eq DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Eq DecisionTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Eq DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Eq DecisionTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Eq DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Eq DecisionType
- Network.AWS.SWF.Types: instance Eq DomainConfiguration
- Network.AWS.SWF.Types: instance Eq DomainInfo
- Network.AWS.SWF.Types: instance Eq EventType
- Network.AWS.SWF.Types: instance Eq ExecutionStatus
- Network.AWS.SWF.Types: instance Eq ExecutionTimeFilter
- Network.AWS.SWF.Types: instance Eq ExternalWorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Eq ExternalWorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Eq FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq FailWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq HistoryEvent
- Network.AWS.SWF.Types: instance Eq MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance Eq PendingTaskCount
- Network.AWS.SWF.Types: instance Eq RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance Eq RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Eq RecordMarkerFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq RegistrationStatus
- Network.AWS.SWF.Types: instance Eq RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Eq RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Eq RequestCancelActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq RequestCancelExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Eq ScheduleActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Eq ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Eq ScheduleActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq SignalExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Eq StartChildWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Eq StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Eq StartChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq StartChildWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Eq StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Eq StartTimerFailedCause
- Network.AWS.SWF.Types: instance Eq StartTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq TagFilter
- Network.AWS.SWF.Types: instance Eq TaskList
- Network.AWS.SWF.Types: instance Eq TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance Eq TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance Eq TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecution
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionConfiguration
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionContinuedAsNewEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionCount
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionInfo
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionInfos
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Eq WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Eq WorkflowType
- Network.AWS.SWF.Types: instance Eq WorkflowTypeConfiguration
- Network.AWS.SWF.Types: instance Eq WorkflowTypeFilter
- Network.AWS.SWF.Types: instance Eq WorkflowTypeInfo
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance FromJSON ActivityType
- Network.AWS.SWF.Types: instance FromJSON ActivityTypeConfiguration
- Network.AWS.SWF.Types: instance FromJSON ActivityTypeInfo
- Network.AWS.SWF.Types: instance FromJSON CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON CancelTimerFailedCause
- Network.AWS.SWF.Types: instance FromJSON CancelTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON CancelWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildPolicy
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ChildWorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance FromJSON CloseStatus
- Network.AWS.SWF.Types: instance FromJSON CloseStatusFilter
- Network.AWS.SWF.Types: instance FromJSON CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON CompleteWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ContinueAsNewWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON ContinueAsNewWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON Decision
- Network.AWS.SWF.Types: instance FromJSON DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON DecisionTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON DecisionTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance FromJSON DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance FromJSON DecisionType
- Network.AWS.SWF.Types: instance FromJSON DomainConfiguration
- Network.AWS.SWF.Types: instance FromJSON DomainInfo
- Network.AWS.SWF.Types: instance FromJSON EventType
- Network.AWS.SWF.Types: instance FromJSON ExecutionStatus
- Network.AWS.SWF.Types: instance FromJSON ExecutionTimeFilter
- Network.AWS.SWF.Types: instance FromJSON ExternalWorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ExternalWorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON FailWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON HistoryEvent
- Network.AWS.SWF.Types: instance FromJSON MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON PendingTaskCount
- Network.AWS.SWF.Types: instance FromJSON RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance FromJSON RecordMarkerFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON RegistrationStatus
- Network.AWS.SWF.Types: instance FromJSON RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance FromJSON RequestCancelActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON RequestCancelExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON ScheduleActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance FromJSON ScheduleActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON SignalExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON StartChildWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromJSON StartChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON StartChildWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance FromJSON StartTimerFailedCause
- Network.AWS.SWF.Types: instance FromJSON StartTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON TagFilter
- Network.AWS.SWF.Types: instance FromJSON TaskList
- Network.AWS.SWF.Types: instance FromJSON TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance FromJSON TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecution
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionConfiguration
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionContinuedAsNewEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionCount
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionInfo
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionInfos
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance FromJSON WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance FromJSON WorkflowType
- Network.AWS.SWF.Types: instance FromJSON WorkflowTypeConfiguration
- Network.AWS.SWF.Types: instance FromJSON WorkflowTypeFilter
- Network.AWS.SWF.Types: instance FromJSON WorkflowTypeInfo
- Network.AWS.SWF.Types: instance FromText ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance FromText CancelTimerFailedCause
- Network.AWS.SWF.Types: instance FromText CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText ChildPolicy
- Network.AWS.SWF.Types: instance FromText CloseStatus
- Network.AWS.SWF.Types: instance FromText CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance FromText DecisionType
- Network.AWS.SWF.Types: instance FromText EventType
- Network.AWS.SWF.Types: instance FromText ExecutionStatus
- Network.AWS.SWF.Types: instance FromText FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance FromText RegistrationStatus
- Network.AWS.SWF.Types: instance FromText RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance FromText RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance FromText SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance FromText StartTimerFailedCause
- Network.AWS.SWF.Types: instance FromText WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance FromText WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance FromText WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Generic ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Generic CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Generic CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic ChildPolicy
- Network.AWS.SWF.Types: instance Generic CloseStatus
- Network.AWS.SWF.Types: instance Generic CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Generic DecisionType
- Network.AWS.SWF.Types: instance Generic EventType
- Network.AWS.SWF.Types: instance Generic ExecutionStatus
- Network.AWS.SWF.Types: instance Generic FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Generic RegistrationStatus
- Network.AWS.SWF.Types: instance Generic RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Generic RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Generic SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Generic StartTimerFailedCause
- Network.AWS.SWF.Types: instance Generic WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Generic WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Generic WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Hashable ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Hashable CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Hashable CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable ChildPolicy
- Network.AWS.SWF.Types: instance Hashable CloseStatus
- Network.AWS.SWF.Types: instance Hashable CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Hashable DecisionType
- Network.AWS.SWF.Types: instance Hashable EventType
- Network.AWS.SWF.Types: instance Hashable ExecutionStatus
- Network.AWS.SWF.Types: instance Hashable FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Hashable RegistrationStatus
- Network.AWS.SWF.Types: instance Hashable RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Hashable RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Hashable SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Hashable StartTimerFailedCause
- Network.AWS.SWF.Types: instance Hashable WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Hashable WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Hashable WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance IsString CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance IsString DomainConfiguration
- Network.AWS.SWF.Types: instance IsString RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance IsString TagFilter
- Network.AWS.SWF.Types: instance IsString TaskList
- Network.AWS.SWF.Types: instance IsString WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Monoid CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Monoid CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Monoid CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Monoid DomainConfiguration
- Network.AWS.SWF.Types: instance Monoid RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Monoid TagFilter
- Network.AWS.SWF.Types: instance Monoid TaskList
- Network.AWS.SWF.Types: instance Monoid WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Ord ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Ord ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance Ord ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Ord ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Ord ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Ord ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Ord ActivityType
- Network.AWS.SWF.Types: instance Ord CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Ord CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Ord CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Ord CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord ChildPolicy
- Network.AWS.SWF.Types: instance Ord CloseStatus
- Network.AWS.SWF.Types: instance Ord CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Ord CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Ord DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Ord DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Ord DecisionType
- Network.AWS.SWF.Types: instance Ord DomainConfiguration
- Network.AWS.SWF.Types: instance Ord EventType
- Network.AWS.SWF.Types: instance Ord ExecutionStatus
- Network.AWS.SWF.Types: instance Ord ExecutionTimeFilter
- Network.AWS.SWF.Types: instance Ord FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Ord FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance Ord PendingTaskCount
- Network.AWS.SWF.Types: instance Ord RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance Ord RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Ord RegistrationStatus
- Network.AWS.SWF.Types: instance Ord RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Ord RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Ord RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Ord RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Ord ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Ord SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Ord SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Ord StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Ord StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Ord StartTimerFailedCause
- Network.AWS.SWF.Types: instance Ord TagFilter
- Network.AWS.SWF.Types: instance Ord TaskList
- Network.AWS.SWF.Types: instance Ord TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance Ord TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance Ord TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance Ord WorkflowExecution
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionCount
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Ord WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Ord WorkflowType
- Network.AWS.SWF.Types: instance Ord WorkflowTypeFilter
- Network.AWS.SWF.Types: instance Read ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Read ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Read ActivityType
- Network.AWS.SWF.Types: instance Read ActivityTypeConfiguration
- Network.AWS.SWF.Types: instance Read ActivityTypeInfo
- Network.AWS.SWF.Types: instance Read CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Read CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Read CancelTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Read CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read CancelWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read ChildPolicy
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Read ChildWorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Read CloseStatus
- Network.AWS.SWF.Types: instance Read CloseStatusFilter
- Network.AWS.SWF.Types: instance Read CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read CompleteWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read ContinueAsNewWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read ContinueAsNewWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read Decision
- Network.AWS.SWF.Types: instance Read DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Read DecisionTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Read DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Read DecisionTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Read DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Read DecisionType
- Network.AWS.SWF.Types: instance Read DomainConfiguration
- Network.AWS.SWF.Types: instance Read DomainInfo
- Network.AWS.SWF.Types: instance Read EventType
- Network.AWS.SWF.Types: instance Read ExecutionStatus
- Network.AWS.SWF.Types: instance Read ExecutionTimeFilter
- Network.AWS.SWF.Types: instance Read ExternalWorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Read ExternalWorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Read FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read FailWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read HistoryEvent
- Network.AWS.SWF.Types: instance Read MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance Read PendingTaskCount
- Network.AWS.SWF.Types: instance Read RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance Read RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Read RecordMarkerFailedEventAttributes
- Network.AWS.SWF.Types: instance Read RegistrationStatus
- Network.AWS.SWF.Types: instance Read RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Read RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Read RequestCancelActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Read RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read RequestCancelExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Read ScheduleActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Read ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Read ScheduleActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Read SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read SignalExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Read StartChildWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Read StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Read StartChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read StartChildWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Read StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Read StartTimerFailedCause
- Network.AWS.SWF.Types: instance Read StartTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Read TagFilter
- Network.AWS.SWF.Types: instance Read TaskList
- Network.AWS.SWF.Types: instance Read TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance Read TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance Read TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecution
- Network.AWS.SWF.Types: instance Read WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Read WorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionConfiguration
- Network.AWS.SWF.Types: instance Read WorkflowExecutionContinuedAsNewEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionCount
- Network.AWS.SWF.Types: instance Read WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Read WorkflowExecutionInfo
- Network.AWS.SWF.Types: instance Read WorkflowExecutionInfos
- Network.AWS.SWF.Types: instance Read WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance Read WorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Read WorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Read WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Read WorkflowType
- Network.AWS.SWF.Types: instance Read WorkflowTypeConfiguration
- Network.AWS.SWF.Types: instance Read WorkflowTypeFilter
- Network.AWS.SWF.Types: instance Read WorkflowTypeInfo
- Network.AWS.SWF.Types: instance Show ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Show ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance Show ActivityType
- Network.AWS.SWF.Types: instance Show ActivityTypeConfiguration
- Network.AWS.SWF.Types: instance Show ActivityTypeInfo
- Network.AWS.SWF.Types: instance Show CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Show CancelTimerFailedCause
- Network.AWS.SWF.Types: instance Show CancelTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Show CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show CancelWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show ChildPolicy
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Show ChildWorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Show CloseStatus
- Network.AWS.SWF.Types: instance Show CloseStatusFilter
- Network.AWS.SWF.Types: instance Show CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show CompleteWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show ContinueAsNewWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show ContinueAsNewWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show Decision
- Network.AWS.SWF.Types: instance Show DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance Show DecisionTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance Show DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance Show DecisionTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Show DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance Show DecisionType
- Network.AWS.SWF.Types: instance Show DomainConfiguration
- Network.AWS.SWF.Types: instance Show DomainInfo
- Network.AWS.SWF.Types: instance Show EventType
- Network.AWS.SWF.Types: instance Show ExecutionStatus
- Network.AWS.SWF.Types: instance Show ExecutionTimeFilter
- Network.AWS.SWF.Types: instance Show ExternalWorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Show ExternalWorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Show FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show FailWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show HistoryEvent
- Network.AWS.SWF.Types: instance Show MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance Show PendingTaskCount
- Network.AWS.SWF.Types: instance Show RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance Show RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance Show RecordMarkerFailedEventAttributes
- Network.AWS.SWF.Types: instance Show RegistrationStatus
- Network.AWS.SWF.Types: instance Show RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Show RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Show RequestCancelActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Show RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show RequestCancelExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Show ScheduleActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance Show ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance Show ScheduleActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance Show SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show SignalExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Show StartChildWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance Show StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance Show StartChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show StartChildWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance Show StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance Show StartTimerFailedCause
- Network.AWS.SWF.Types: instance Show StartTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance Show TagFilter
- Network.AWS.SWF.Types: instance Show TaskList
- Network.AWS.SWF.Types: instance Show TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance Show TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance Show TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecution
- Network.AWS.SWF.Types: instance Show WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance Show WorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionConfiguration
- Network.AWS.SWF.Types: instance Show WorkflowExecutionContinuedAsNewEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionCount
- Network.AWS.SWF.Types: instance Show WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance Show WorkflowExecutionInfo
- Network.AWS.SWF.Types: instance Show WorkflowExecutionInfos
- Network.AWS.SWF.Types: instance Show WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance Show WorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance Show WorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance Show WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance Show WorkflowType
- Network.AWS.SWF.Types: instance Show WorkflowTypeConfiguration
- Network.AWS.SWF.Types: instance Show WorkflowTypeFilter
- Network.AWS.SWF.Types: instance Show WorkflowTypeInfo
- Network.AWS.SWF.Types: instance ToByteString ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance ToByteString CancelTimerFailedCause
- Network.AWS.SWF.Types: instance ToByteString CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString ChildPolicy
- Network.AWS.SWF.Types: instance ToByteString CloseStatus
- Network.AWS.SWF.Types: instance ToByteString CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance ToByteString DecisionType
- Network.AWS.SWF.Types: instance ToByteString EventType
- Network.AWS.SWF.Types: instance ToByteString ExecutionStatus
- Network.AWS.SWF.Types: instance ToByteString FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance ToByteString RegistrationStatus
- Network.AWS.SWF.Types: instance ToByteString RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToByteString RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToByteString SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToByteString StartTimerFailedCause
- Network.AWS.SWF.Types: instance ToByteString WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance ToByteString WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance ToByteString WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance ToHeader ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance ToHeader CancelTimerFailedCause
- Network.AWS.SWF.Types: instance ToHeader CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader ChildPolicy
- Network.AWS.SWF.Types: instance ToHeader CloseStatus
- Network.AWS.SWF.Types: instance ToHeader CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance ToHeader DecisionType
- Network.AWS.SWF.Types: instance ToHeader EventType
- Network.AWS.SWF.Types: instance ToHeader ExecutionStatus
- Network.AWS.SWF.Types: instance ToHeader FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance ToHeader RegistrationStatus
- Network.AWS.SWF.Types: instance ToHeader RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToHeader RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToHeader SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToHeader StartTimerFailedCause
- Network.AWS.SWF.Types: instance ToHeader WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance ToHeader WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance ToHeader WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskCanceledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance ToJSON ActivityType
- Network.AWS.SWF.Types: instance ToJSON ActivityTypeConfiguration
- Network.AWS.SWF.Types: instance ToJSON ActivityTypeInfo
- Network.AWS.SWF.Types: instance ToJSON CancelTimerDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON CancelTimerFailedCause
- Network.AWS.SWF.Types: instance ToJSON CancelTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON CancelWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON CancelWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildPolicy
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ChildWorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance ToJSON CloseStatus
- Network.AWS.SWF.Types: instance ToJSON CloseStatusFilter
- Network.AWS.SWF.Types: instance ToJSON CompleteWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON CompleteWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ContinueAsNewWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON ContinueAsNewWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON Decision
- Network.AWS.SWF.Types: instance ToJSON DecisionTaskCompletedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON DecisionTaskScheduledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON DecisionTaskStartedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON DecisionTaskTimedOutEventAttributes
- Network.AWS.SWF.Types: instance ToJSON DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance ToJSON DecisionType
- Network.AWS.SWF.Types: instance ToJSON DomainConfiguration
- Network.AWS.SWF.Types: instance ToJSON DomainInfo
- Network.AWS.SWF.Types: instance ToJSON EventType
- Network.AWS.SWF.Types: instance ToJSON ExecutionStatus
- Network.AWS.SWF.Types: instance ToJSON ExecutionTimeFilter
- Network.AWS.SWF.Types: instance ToJSON ExternalWorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ExternalWorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON FailWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON FailWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON HistoryEvent
- Network.AWS.SWF.Types: instance ToJSON MarkerRecordedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON PendingTaskCount
- Network.AWS.SWF.Types: instance ToJSON RecordMarkerDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance ToJSON RecordMarkerFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON RegistrationStatus
- Network.AWS.SWF.Types: instance ToJSON RequestCancelActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToJSON RequestCancelActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON RequestCancelExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON RequestCancelExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON ScheduleActivityTaskDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToJSON ScheduleActivityTaskFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON SignalExternalWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON SignalExternalWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON SignalExternalWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON StartChildWorkflowExecutionDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToJSON StartChildWorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON StartChildWorkflowExecutionInitiatedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON StartTimerDecisionAttributes
- Network.AWS.SWF.Types: instance ToJSON StartTimerFailedCause
- Network.AWS.SWF.Types: instance ToJSON StartTimerFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON TagFilter
- Network.AWS.SWF.Types: instance ToJSON TaskList
- Network.AWS.SWF.Types: instance ToJSON TimerCanceledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON TimerFiredEventAttributes
- Network.AWS.SWF.Types: instance ToJSON TimerStartedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecution
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionCancelRequestedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionCanceledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionCompletedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionConfiguration
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionContinuedAsNewEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionCount
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionFailedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionFilter
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionInfo
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionInfos
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionOpenCounts
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionSignaledEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionStartedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionTerminatedEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionTimedOutEventAttributes
- Network.AWS.SWF.Types: instance ToJSON WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance ToJSON WorkflowType
- Network.AWS.SWF.Types: instance ToJSON WorkflowTypeConfiguration
- Network.AWS.SWF.Types: instance ToJSON WorkflowTypeFilter
- Network.AWS.SWF.Types: instance ToJSON WorkflowTypeInfo
- Network.AWS.SWF.Types: instance ToQuery ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance ToQuery CancelTimerFailedCause
- Network.AWS.SWF.Types: instance ToQuery CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery ChildPolicy
- Network.AWS.SWF.Types: instance ToQuery CloseStatus
- Network.AWS.SWF.Types: instance ToQuery CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance ToQuery DecisionType
- Network.AWS.SWF.Types: instance ToQuery EventType
- Network.AWS.SWF.Types: instance ToQuery ExecutionStatus
- Network.AWS.SWF.Types: instance ToQuery FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance ToQuery RegistrationStatus
- Network.AWS.SWF.Types: instance ToQuery RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToQuery RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToQuery SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToQuery StartTimerFailedCause
- Network.AWS.SWF.Types: instance ToQuery WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance ToQuery WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance ToQuery WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: instance ToText ActivityTaskTimeoutType
- Network.AWS.SWF.Types: instance ToText CancelTimerFailedCause
- Network.AWS.SWF.Types: instance ToText CancelWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText ChildPolicy
- Network.AWS.SWF.Types: instance ToText CloseStatus
- Network.AWS.SWF.Types: instance ToText CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText ContinueAsNewWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText DecisionTaskTimeoutType
- Network.AWS.SWF.Types: instance ToText DecisionType
- Network.AWS.SWF.Types: instance ToText EventType
- Network.AWS.SWF.Types: instance ToText ExecutionStatus
- Network.AWS.SWF.Types: instance ToText FailWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText RecordMarkerFailedCause
- Network.AWS.SWF.Types: instance ToText RegistrationStatus
- Network.AWS.SWF.Types: instance ToText RequestCancelActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToText RequestCancelExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText ScheduleActivityTaskFailedCause
- Network.AWS.SWF.Types: instance ToText SignalExternalWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText StartChildWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: instance ToText StartTimerFailedCause
- Network.AWS.SWF.Types: instance ToText WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: instance ToText WorkflowExecutionTerminatedCause
- Network.AWS.SWF.Types: instance ToText WorkflowExecutionTimeoutType
- Network.AWS.SWF.Types: wecea1DecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer
- Network.AWS.SWF.Types: wecea1Details :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)
- Network.AWS.SWF.Types: wesea1ExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)
- Network.AWS.SWF.Types: wesea1ExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)
- Network.AWS.SWF.Types: wesea1Input :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)
- Network.AWS.SWF.Types: wesea1SignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text
+ Network.AWS.SWF: ATTTHeartbeat :: ActivityTaskTimeoutType
+ Network.AWS.SWF: ATTTScheduleToClose :: ActivityTaskTimeoutType
+ Network.AWS.SWF: ATTTScheduleToStart :: ActivityTaskTimeoutType
+ Network.AWS.SWF: ATTTStartToClose :: ActivityTaskTimeoutType
+ Network.AWS.SWF: Abandon :: ChildPolicy
+ Network.AWS.SWF: ActivityTaskCancelRequested :: EventType
+ Network.AWS.SWF: ActivityTaskCanceled :: EventType
+ Network.AWS.SWF: ActivityTaskCompleted :: EventType
+ Network.AWS.SWF: ActivityTaskFailed :: EventType
+ Network.AWS.SWF: ActivityTaskScheduled :: EventType
+ Network.AWS.SWF: ActivityTaskStarted :: EventType
+ Network.AWS.SWF: ActivityTaskTimedOut :: EventType
+ Network.AWS.SWF: AssumeRoleFailed :: StartLambdaFunctionFailedCause
+ Network.AWS.SWF: CANWEFCContinueAsNewWorkflowExecutionRateExceeded :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCDefaultChildPolicyUndefined :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCDefaultExecutionStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCDefaultTaskListUndefined :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCDefaultTaskStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCOperationNotPermitted :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCUnhandledDecision :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCWorkflowTypeDeprecated :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: CANWEFCWorkflowTypeDoesNotExist :: ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: COperationNotPermitted :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF: CTFCOperationNotPermitted :: CancelTimerFailedCause
+ Network.AWS.SWF: CTFCTimerIdUnknown :: CancelTimerFailedCause
+ Network.AWS.SWF: CUnhandledDecision :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF: CWEFCOperationNotPermitted :: CompleteWorkflowExecutionFailedCause
+ Network.AWS.SWF: CWEFCUnhandledDecision :: CompleteWorkflowExecutionFailedCause
+ Network.AWS.SWF: CancelTimer :: DecisionType
+ Network.AWS.SWF: CancelTimerFailed :: EventType
+ Network.AWS.SWF: CancelWorkflowExecution :: DecisionType
+ Network.AWS.SWF: CancelWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: Canceled :: CloseStatus
+ Network.AWS.SWF: ChildPolicyApplied :: WorkflowExecutionCancelRequestedCause
+ Network.AWS.SWF: ChildWorkflowExecutionCanceled :: EventType
+ Network.AWS.SWF: ChildWorkflowExecutionCompleted :: EventType
+ Network.AWS.SWF: ChildWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: ChildWorkflowExecutionStarted :: EventType
+ Network.AWS.SWF: ChildWorkflowExecutionTerminated :: EventType
+ Network.AWS.SWF: ChildWorkflowExecutionTimedOut :: EventType
+ Network.AWS.SWF: Closed :: ExecutionStatus
+ Network.AWS.SWF: CompleteWorkflowExecution :: DecisionType
+ Network.AWS.SWF: CompleteWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: Completed :: CloseStatus
+ Network.AWS.SWF: ContinueAsNewWorkflowExecution :: DecisionType
+ Network.AWS.SWF: ContinueAsNewWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: ContinuedAsNew :: CloseStatus
+ Network.AWS.SWF: DecisionTaskCompleted :: EventType
+ Network.AWS.SWF: DecisionTaskScheduled :: EventType
+ Network.AWS.SWF: DecisionTaskStarted :: EventType
+ Network.AWS.SWF: DecisionTaskTimedOut :: EventType
+ Network.AWS.SWF: Deprecated :: RegistrationStatus
+ Network.AWS.SWF: ExternalWorkflowExecutionCancelRequested :: EventType
+ Network.AWS.SWF: ExternalWorkflowExecutionSignaled :: EventType
+ Network.AWS.SWF: FWEFCOperationNotPermitted :: FailWorkflowExecutionFailedCause
+ Network.AWS.SWF: FWEFCUnhandledDecision :: FailWorkflowExecutionFailedCause
+ Network.AWS.SWF: FailWorkflowExecution :: DecisionType
+ Network.AWS.SWF: FailWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: Failed :: CloseStatus
+ Network.AWS.SWF: IdAlreadyInUse :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: LFTTStartToClose :: LambdaFunctionTimeoutType
+ Network.AWS.SWF: LambdaFunctionCompleted :: EventType
+ Network.AWS.SWF: LambdaFunctionCreationRateExceeded :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: LambdaFunctionFailed :: EventType
+ Network.AWS.SWF: LambdaFunctionScheduled :: EventType
+ Network.AWS.SWF: LambdaFunctionStarted :: EventType
+ Network.AWS.SWF: LambdaFunctionTimedOut :: EventType
+ Network.AWS.SWF: LambdaServiceNotAvailableInRegion :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: MarkerRecorded :: EventType
+ Network.AWS.SWF: Open :: ExecutionStatus
+ Network.AWS.SWF: OpenLambdaFunctionsLimitExceeded :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: OpenTimersLimitExceeded :: StartTimerFailedCause
+ Network.AWS.SWF: OperationNotPermitted :: StartTimerFailedCause
+ Network.AWS.SWF: RCATFCActivityIdUnknown :: RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF: RCATFCOperationNotPermitted :: RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF: RCEWEFCOperationNotPermitted :: RequestCancelExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded :: RequestCancelExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: RCEWEFCUnknownExternalWorkflowExecution :: RequestCancelExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: RMFCOperationNotPermitted :: RecordMarkerFailedCause
+ Network.AWS.SWF: RecordMarker :: DecisionType
+ Network.AWS.SWF: RecordMarkerFailed :: EventType
+ Network.AWS.SWF: Registered :: RegistrationStatus
+ Network.AWS.SWF: RequestCancel :: ChildPolicy
+ Network.AWS.SWF: RequestCancelActivityTask :: DecisionType
+ Network.AWS.SWF: RequestCancelActivityTaskFailed :: EventType
+ Network.AWS.SWF: RequestCancelExternalWorkflowExecution :: DecisionType
+ Network.AWS.SWF: RequestCancelExternalWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: RequestCancelExternalWorkflowExecutionInitiated :: EventType
+ Network.AWS.SWF: SATFCActivityCreationRateExceeded :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCActivityIdAlreadyInUse :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCActivityTypeDeprecated :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCActivityTypeDoesNotExist :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCDefaultHeartbeatTimeoutUndefined :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCDefaultScheduleToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCDefaultScheduleToStartTimeoutUndefined :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCDefaultStartToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCDefaultTaskListUndefined :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCOpenActivitiesLimitExceeded :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SATFCOperationNotPermitted :: ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: SCWEFCChildCreationRateExceeded :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCDefaultChildPolicyUndefined :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCDefaultExecutionStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCDefaultTaskListUndefined :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCDefaultTaskStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCOpenChildrenLimitExceeded :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCOpenWorkflowsLimitExceeded :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCOperationNotPermitted :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCWorkflowAlreadyRunning :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCWorkflowTypeDeprecated :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SCWEFCWorkflowTypeDoesNotExist :: StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: SEWEFCOperationNotPermitted :: SignalExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: SEWEFCSignalExternalWorkflowExecutionRateExceeded :: SignalExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: SEWEFCUnknownExternalWorkflowExecution :: SignalExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: ScheduleActivityTask :: DecisionType
+ Network.AWS.SWF: ScheduleActivityTaskFailed :: EventType
+ Network.AWS.SWF: ScheduleLambdaFunction :: DecisionType
+ Network.AWS.SWF: ScheduleLambdaFunctionFailed :: EventType
+ Network.AWS.SWF: SignalExternalWorkflowExecution :: DecisionType
+ Network.AWS.SWF: SignalExternalWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: SignalExternalWorkflowExecutionInitiated :: EventType
+ Network.AWS.SWF: StartChildWorkflowExecution :: DecisionType
+ Network.AWS.SWF: StartChildWorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: StartChildWorkflowExecutionInitiated :: EventType
+ Network.AWS.SWF: StartLambdaFunctionFailed :: EventType
+ Network.AWS.SWF: StartTimer :: DecisionType
+ Network.AWS.SWF: StartTimerFailed :: EventType
+ Network.AWS.SWF: StartToClose :: DecisionTaskTimeoutType
+ Network.AWS.SWF: Terminate :: ChildPolicy
+ Network.AWS.SWF: Terminated :: CloseStatus
+ Network.AWS.SWF: TimedOut :: CloseStatus
+ Network.AWS.SWF: TimerCanceled :: EventType
+ Network.AWS.SWF: TimerCreationRateExceeded :: StartTimerFailedCause
+ Network.AWS.SWF: TimerFired :: EventType
+ Network.AWS.SWF: TimerIdAlreadyInUse :: StartTimerFailedCause
+ Network.AWS.SWF: TimerStarted :: EventType
+ Network.AWS.SWF: WETCChildPolicyApplied :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF: WETCEventLimitExceeded :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF: WETCOperatorInitiated :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF: WETTStartToClose :: WorkflowExecutionTimeoutType
+ Network.AWS.SWF: WorkflowExecutionCancelRequested :: EventType
+ Network.AWS.SWF: WorkflowExecutionCanceled :: EventType
+ Network.AWS.SWF: WorkflowExecutionCompleted :: EventType
+ Network.AWS.SWF: WorkflowExecutionContinuedAsNew :: EventType
+ Network.AWS.SWF: WorkflowExecutionFailed :: EventType
+ Network.AWS.SWF: WorkflowExecutionSignaled :: EventType
+ Network.AWS.SWF: WorkflowExecutionStarted :: EventType
+ Network.AWS.SWF: WorkflowExecutionTerminated :: EventType
+ Network.AWS.SWF: WorkflowExecutionTimedOut :: EventType
+ Network.AWS.SWF: _DefaultUndefinedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _TypeAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _UnknownResourceFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: _WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF: aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF: aLatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)
+ Network.AWS.SWF: aScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
+ Network.AWS.SWF: aStartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
+ Network.AWS.SWF: activityTaskCancelRequestedEventAttributes :: Integer -> Text -> ActivityTaskCancelRequestedEventAttributes
+ Network.AWS.SWF: activityTaskCanceledEventAttributes :: Integer -> Integer -> ActivityTaskCanceledEventAttributes
+ Network.AWS.SWF: activityTaskCompletedEventAttributes :: Integer -> Integer -> ActivityTaskCompletedEventAttributes
+ Network.AWS.SWF: activityTaskFailedEventAttributes :: Integer -> Integer -> ActivityTaskFailedEventAttributes
+ Network.AWS.SWF: activityTaskScheduledEventAttributes :: ActivityType -> Text -> TaskList -> Integer -> ActivityTaskScheduledEventAttributes
+ Network.AWS.SWF: activityTaskStartedEventAttributes :: Integer -> ActivityTaskStartedEventAttributes
+ Network.AWS.SWF: activityTaskTimedOutEventAttributes :: ActivityTaskTimeoutType -> Integer -> Integer -> ActivityTaskTimedOutEventAttributes
+ Network.AWS.SWF: activityType :: Text -> Text -> ActivityType
+ Network.AWS.SWF: activityTypeConfiguration :: ActivityTypeConfiguration
+ Network.AWS.SWF: activityTypeInfo :: ActivityType -> RegistrationStatus -> UTCTime -> ActivityTypeInfo
+ Network.AWS.SWF: atName :: Lens' ActivityType Text
+ Network.AWS.SWF: atVersion :: Lens' ActivityType Text
+ Network.AWS.SWF: atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)
+ Network.AWS.SWF: atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF: atceaScheduledEventId :: Lens' ActivityTaskCompletedEventAttributes Integer
+ Network.AWS.SWF: atceaStartedEventId :: Lens' ActivityTaskCompletedEventAttributes Integer
+ Network.AWS.SWF: atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text
+ Network.AWS.SWF: atcreaDecisionTaskCompletedEventId :: Lens' ActivityTaskCancelRequestedEventAttributes Integer
+ Network.AWS.SWF: atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: atfeaScheduledEventId :: Lens' ActivityTaskFailedEventAttributes Integer
+ Network.AWS.SWF: atfeaStartedEventId :: Lens' ActivityTaskFailedEventAttributes Integer
+ Network.AWS.SWF: atiActivityType :: Lens' ActivityTypeInfo ActivityType
+ Network.AWS.SWF: atiCreationDate :: Lens' ActivityTypeInfo UTCTime
+ Network.AWS.SWF: atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)
+ Network.AWS.SWF: atiDescription :: Lens' ActivityTypeInfo (Maybe Text)
+ Network.AWS.SWF: atiStatus :: Lens' ActivityTypeInfo RegistrationStatus
+ Network.AWS.SWF: atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text
+ Network.AWS.SWF: atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType
+ Network.AWS.SWF: atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaDecisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer
+ Network.AWS.SWF: atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaScheduledEventId :: Lens' ActivityTaskStartedEventAttributes Integer
+ Network.AWS.SWF: atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList
+ Network.AWS.SWF: atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)
+ Network.AWS.SWF: attoeaScheduledEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer
+ Network.AWS.SWF: attoeaStartedEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer
+ Network.AWS.SWF: attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType
+ Network.AWS.SWF: cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF: cDecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF: cInitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF: cStartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF: cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution
+ Network.AWS.SWF: cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType
+ Network.AWS.SWF: cancelTimerDecisionAttributes :: Text -> CancelTimerDecisionAttributes
+ Network.AWS.SWF: cancelTimerFailedEventAttributes :: Text -> CancelTimerFailedCause -> Integer -> CancelTimerFailedEventAttributes
+ Network.AWS.SWF: cancelWorkflowExecutionDecisionAttributes :: CancelWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: cancelWorkflowExecutionFailedEventAttributes :: CancelWorkflowExecutionFailedCause -> Integer -> CancelWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)
+ Network.AWS.SWF: canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]
+ Network.AWS.SWF: canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)
+ Network.AWS.SWF: canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: canwefeaDecisionTaskCompletedEventId :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: childWorkflowExecutionCanceledEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCanceledEventAttributes
+ Network.AWS.SWF: childWorkflowExecutionCompletedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCompletedEventAttributes
+ Network.AWS.SWF: childWorkflowExecutionFailedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: childWorkflowExecutionStartedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> ChildWorkflowExecutionStartedEventAttributes
+ Network.AWS.SWF: childWorkflowExecutionTerminatedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionTerminatedEventAttributes
+ Network.AWS.SWF: childWorkflowExecutionTimedOutEventAttributes :: WorkflowExecution -> WorkflowType -> WorkflowExecutionTimeoutType -> Integer -> Integer -> ChildWorkflowExecutionTimedOutEventAttributes
+ Network.AWS.SWF: closeStatusFilter :: CloseStatus -> CloseStatusFilter
+ Network.AWS.SWF: completeWorkflowExecutionDecisionAttributes :: CompleteWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: completeWorkflowExecutionFailedEventAttributes :: CompleteWorkflowExecutionFailedCause -> Integer -> CompleteWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: continueAsNewWorkflowExecutionDecisionAttributes :: ContinueAsNewWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: continueAsNewWorkflowExecutionFailedEventAttributes :: ContinueAsNewWorkflowExecutionFailedCause -> Integer -> ContinueAsNewWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: csfStatus :: Lens' CloseStatusFilter CloseStatus
+ Network.AWS.SWF: ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text
+ Network.AWS.SWF: ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause
+ Network.AWS.SWF: ctfeaDecisionTaskCompletedEventId :: Lens' CancelTimerFailedEventAttributes Integer
+ Network.AWS.SWF: ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text
+ Network.AWS.SWF: cweceaInitiatedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer
+ Network.AWS.SWF: cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF: cweceaStartedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer
+ Network.AWS.SWF: cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution
+ Network.AWS.SWF: cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType
+ Network.AWS.SWF: cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause
+ Network.AWS.SWF: cwefeaDecisionTaskCompletedEventId :: Lens' CompleteWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: cwefeaInitiatedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: cwefeaStartedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution
+ Network.AWS.SWF: cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType
+ Network.AWS.SWF: cweseaInitiatedEventId :: Lens' ChildWorkflowExecutionStartedEventAttributes Integer
+ Network.AWS.SWF: cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution
+ Network.AWS.SWF: cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType
+ Network.AWS.SWF: cweteaInitiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer
+ Network.AWS.SWF: cweteaStartedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer
+ Network.AWS.SWF: cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution
+ Network.AWS.SWF: cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType
+ Network.AWS.SWF: cwetoeaInitiatedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer
+ Network.AWS.SWF: cwetoeaStartedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer
+ Network.AWS.SWF: cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType
+ Network.AWS.SWF: cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution
+ Network.AWS.SWF: cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType
+ Network.AWS.SWF: dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)
+ Network.AWS.SWF: dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dDecisionType :: Lens' Decision DecisionType
+ Network.AWS.SWF: dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)
+ Network.AWS.SWF: dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)
+ Network.AWS.SWF: dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)
+ Network.AWS.SWF: dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)
+ Network.AWS.SWF: dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)
+ Network.AWS.SWF: dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)
+ Network.AWS.SWF: data ActivityTaskCancelRequestedEventAttributes
+ Network.AWS.SWF: data ActivityTaskCanceledEventAttributes
+ Network.AWS.SWF: data ActivityTaskCompletedEventAttributes
+ Network.AWS.SWF: data ActivityTaskFailedEventAttributes
+ Network.AWS.SWF: data ActivityTaskScheduledEventAttributes
+ Network.AWS.SWF: data ActivityTaskStartedEventAttributes
+ Network.AWS.SWF: data ActivityTaskTimedOutEventAttributes
+ Network.AWS.SWF: data ActivityTaskTimeoutType
+ Network.AWS.SWF: data ActivityType
+ Network.AWS.SWF: data ActivityTypeConfiguration
+ Network.AWS.SWF: data ActivityTypeInfo
+ Network.AWS.SWF: data CancelTimerDecisionAttributes
+ Network.AWS.SWF: data CancelTimerFailedCause
+ Network.AWS.SWF: data CancelTimerFailedEventAttributes
+ Network.AWS.SWF: data CancelWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF: data CancelWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data ChildPolicy
+ Network.AWS.SWF: data ChildWorkflowExecutionCanceledEventAttributes
+ Network.AWS.SWF: data ChildWorkflowExecutionCompletedEventAttributes
+ Network.AWS.SWF: data ChildWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data ChildWorkflowExecutionStartedEventAttributes
+ Network.AWS.SWF: data ChildWorkflowExecutionTerminatedEventAttributes
+ Network.AWS.SWF: data ChildWorkflowExecutionTimedOutEventAttributes
+ Network.AWS.SWF: data CloseStatus
+ Network.AWS.SWF: data CloseStatusFilter
+ Network.AWS.SWF: data CompleteWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data CompleteWorkflowExecutionFailedCause
+ Network.AWS.SWF: data CompleteWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data ContinueAsNewWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data ContinueAsNewWorkflowExecutionFailedCause
+ Network.AWS.SWF: data ContinueAsNewWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data Decision
+ Network.AWS.SWF: data DecisionTaskCompletedEventAttributes
+ Network.AWS.SWF: data DecisionTaskScheduledEventAttributes
+ Network.AWS.SWF: data DecisionTaskStartedEventAttributes
+ Network.AWS.SWF: data DecisionTaskTimedOutEventAttributes
+ Network.AWS.SWF: data DecisionTaskTimeoutType
+ Network.AWS.SWF: data DecisionType
+ Network.AWS.SWF: data DomainConfiguration
+ Network.AWS.SWF: data DomainInfo
+ Network.AWS.SWF: data EventType
+ Network.AWS.SWF: data ExecutionStatus
+ Network.AWS.SWF: data ExecutionTimeFilter
+ Network.AWS.SWF: data ExternalWorkflowExecutionCancelRequestedEventAttributes
+ Network.AWS.SWF: data ExternalWorkflowExecutionSignaledEventAttributes
+ Network.AWS.SWF: data FailWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data FailWorkflowExecutionFailedCause
+ Network.AWS.SWF: data FailWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data HistoryEvent
+ Network.AWS.SWF: data LambdaFunctionCompletedEventAttributes
+ Network.AWS.SWF: data LambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: data LambdaFunctionScheduledEventAttributes
+ Network.AWS.SWF: data LambdaFunctionStartedEventAttributes
+ Network.AWS.SWF: data LambdaFunctionTimedOutEventAttributes
+ Network.AWS.SWF: data LambdaFunctionTimeoutType
+ Network.AWS.SWF: data MarkerRecordedEventAttributes
+ Network.AWS.SWF: data PendingTaskCount
+ Network.AWS.SWF: data RecordMarkerDecisionAttributes
+ Network.AWS.SWF: data RecordMarkerFailedCause
+ Network.AWS.SWF: data RecordMarkerFailedEventAttributes
+ Network.AWS.SWF: data RegistrationStatus
+ Network.AWS.SWF: data RequestCancelActivityTaskDecisionAttributes
+ Network.AWS.SWF: data RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF: data RequestCancelActivityTaskFailedEventAttributes
+ Network.AWS.SWF: data RequestCancelExternalWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data RequestCancelExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: data RequestCancelExternalWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: data SWF
+ Network.AWS.SWF: data ScheduleActivityTaskDecisionAttributes
+ Network.AWS.SWF: data ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: data ScheduleActivityTaskFailedEventAttributes
+ Network.AWS.SWF: data ScheduleLambdaFunctionDecisionAttributes
+ Network.AWS.SWF: data ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: data ScheduleLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: data SignalExternalWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data SignalExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: data SignalExternalWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data SignalExternalWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: data StartChildWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: data StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: data StartChildWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data StartChildWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: data StartLambdaFunctionFailedCause
+ Network.AWS.SWF: data StartLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: data StartTimerDecisionAttributes
+ Network.AWS.SWF: data StartTimerFailedCause
+ Network.AWS.SWF: data StartTimerFailedEventAttributes
+ Network.AWS.SWF: data TagFilter
+ Network.AWS.SWF: data TaskList
+ Network.AWS.SWF: data TimerCanceledEventAttributes
+ Network.AWS.SWF: data TimerFiredEventAttributes
+ Network.AWS.SWF: data TimerStartedEventAttributes
+ Network.AWS.SWF: data WorkflowExecution
+ Network.AWS.SWF: data WorkflowExecutionCancelRequestedCause
+ Network.AWS.SWF: data WorkflowExecutionCancelRequestedEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionCanceledEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionCompletedEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionConfiguration
+ Network.AWS.SWF: data WorkflowExecutionContinuedAsNewEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionCount
+ Network.AWS.SWF: data WorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionFilter
+ Network.AWS.SWF: data WorkflowExecutionInfo
+ Network.AWS.SWF: data WorkflowExecutionInfos
+ Network.AWS.SWF: data WorkflowExecutionOpenCounts
+ Network.AWS.SWF: data WorkflowExecutionSignaledEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionStartedEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionTerminatedCause
+ Network.AWS.SWF: data WorkflowExecutionTerminatedEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionTimedOutEventAttributes
+ Network.AWS.SWF: data WorkflowExecutionTimeoutType
+ Network.AWS.SWF: data WorkflowType
+ Network.AWS.SWF: data WorkflowTypeConfiguration
+ Network.AWS.SWF: data WorkflowTypeFilter
+ Network.AWS.SWF: data WorkflowTypeInfo
+ Network.AWS.SWF: dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text
+ Network.AWS.SWF: decision :: DecisionType -> Decision
+ Network.AWS.SWF: decisionTaskCompletedEventAttributes :: Integer -> Integer -> DecisionTaskCompletedEventAttributes
+ Network.AWS.SWF: decisionTaskScheduledEventAttributes :: TaskList -> DecisionTaskScheduledEventAttributes
+ Network.AWS.SWF: decisionTaskStartedEventAttributes :: Integer -> DecisionTaskStartedEventAttributes
+ Network.AWS.SWF: decisionTaskTimedOutEventAttributes :: DecisionTaskTimeoutType -> Integer -> Integer -> DecisionTaskTimedOutEventAttributes
+ Network.AWS.SWF: diDescription :: Lens' DomainInfo (Maybe Text)
+ Network.AWS.SWF: diName :: Lens' DomainInfo Text
+ Network.AWS.SWF: diStatus :: Lens' DomainInfo RegistrationStatus
+ Network.AWS.SWF: domainConfiguration :: Text -> DomainConfiguration
+ Network.AWS.SWF: domainInfo :: Text -> RegistrationStatus -> DomainInfo
+ Network.AWS.SWF: dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF: dtceaScheduledEventId :: Lens' DecisionTaskCompletedEventAttributes Integer
+ Network.AWS.SWF: dtceaStartedEventId :: Lens' DecisionTaskCompletedEventAttributes Integer
+ Network.AWS.SWF: dtseaIdentity :: Lens' DecisionTaskStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: dtseaScheduledEventId :: Lens' DecisionTaskStartedEventAttributes Integer
+ Network.AWS.SWF: dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList
+ Network.AWS.SWF: dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: dttoeaScheduledEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer
+ Network.AWS.SWF: dttoeaStartedEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer
+ Network.AWS.SWF: dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType
+ Network.AWS.SWF: etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)
+ Network.AWS.SWF: etfOldestDate :: Lens' ExecutionTimeFilter UTCTime
+ Network.AWS.SWF: ewecreaInitiatedEventId :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes Integer
+ Network.AWS.SWF: ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution
+ Network.AWS.SWF: eweseaInitiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer
+ Network.AWS.SWF: eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution
+ Network.AWS.SWF: executionTimeFilter :: UTCTime -> ExecutionTimeFilter
+ Network.AWS.SWF: externalWorkflowExecutionCancelRequestedEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionCancelRequestedEventAttributes
+ Network.AWS.SWF: externalWorkflowExecutionSignaledEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionSignaledEventAttributes
+ Network.AWS.SWF: failWorkflowExecutionDecisionAttributes :: FailWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: failWorkflowExecutionFailedEventAttributes :: FailWorkflowExecutionFailedCause -> Integer -> FailWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause
+ Network.AWS.SWF: fwefeaDecisionTaskCompletedEventId :: Lens' FailWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)
+ Network.AWS.SWF: heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)
+ Network.AWS.SWF: heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)
+ Network.AWS.SWF: heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)
+ Network.AWS.SWF: heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)
+ Network.AWS.SWF: heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)
+ Network.AWS.SWF: heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)
+ Network.AWS.SWF: heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)
+ Network.AWS.SWF: heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)
+ Network.AWS.SWF: heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)
+ Network.AWS.SWF: heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)
+ Network.AWS.SWF: heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)
+ Network.AWS.SWF: heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)
+ Network.AWS.SWF: heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)
+ Network.AWS.SWF: heEventId :: Lens' HistoryEvent Integer
+ Network.AWS.SWF: heEventTimestamp :: Lens' HistoryEvent UTCTime
+ Network.AWS.SWF: heEventType :: Lens' HistoryEvent EventType
+ Network.AWS.SWF: heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)
+ Network.AWS.SWF: heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)
+ Network.AWS.SWF: heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)
+ Network.AWS.SWF: heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF: heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)
+ Network.AWS.SWF: heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)
+ Network.AWS.SWF: heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)
+ Network.AWS.SWF: heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)
+ Network.AWS.SWF: heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)
+ Network.AWS.SWF: heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)
+ Network.AWS.SWF: heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
+ Network.AWS.SWF: heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)
+ Network.AWS.SWF: heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF: heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)
+ Network.AWS.SWF: heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)
+ Network.AWS.SWF: heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF: heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)
+ Network.AWS.SWF: heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)
+ Network.AWS.SWF: heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)
+ Network.AWS.SWF: heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)
+ Network.AWS.SWF: heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)
+ Network.AWS.SWF: historyEvent :: UTCTime -> EventType -> Integer -> HistoryEvent
+ Network.AWS.SWF: lambdaFunctionCompletedEventAttributes :: Integer -> Integer -> LambdaFunctionCompletedEventAttributes
+ Network.AWS.SWF: lambdaFunctionFailedEventAttributes :: Integer -> Integer -> LambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: lambdaFunctionScheduledEventAttributes :: Text -> Text -> Integer -> LambdaFunctionScheduledEventAttributes
+ Network.AWS.SWF: lambdaFunctionStartedEventAttributes :: Integer -> LambdaFunctionStartedEventAttributes
+ Network.AWS.SWF: lambdaFunctionTimedOutEventAttributes :: Integer -> Integer -> LambdaFunctionTimedOutEventAttributes
+ Network.AWS.SWF: lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF: lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer
+ Network.AWS.SWF: lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer
+ Network.AWS.SWF: lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF: lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF: lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer
+ Network.AWS.SWF: lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text
+ Network.AWS.SWF: lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text
+ Network.AWS.SWF: lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer
+ Network.AWS.SWF: lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF: lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer
+ Network.AWS.SWF: lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer
+ Network.AWS.SWF: lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)
+ Network.AWS.SWF: markerRecordedEventAttributes :: Text -> Integer -> MarkerRecordedEventAttributes
+ Network.AWS.SWF: mreaDecisionTaskCompletedEventId :: Lens' MarkerRecordedEventAttributes Integer
+ Network.AWS.SWF: mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)
+ Network.AWS.SWF: mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text
+ Network.AWS.SWF: pendingTaskCount :: Natural -> PendingTaskCount
+ Network.AWS.SWF: ptcCount :: Lens' PendingTaskCount Natural
+ Network.AWS.SWF: ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)
+ Network.AWS.SWF: rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text
+ Network.AWS.SWF: rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text
+ Network.AWS.SWF: rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF: rcatfeaDecisionTaskCompletedEventId :: Lens' RequestCancelActivityTaskFailedEventAttributes Integer
+ Network.AWS.SWF: rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text
+ Network.AWS.SWF: rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: rcewefeaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: rcewefeaInitiatedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text
+ Network.AWS.SWF: rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: rceweieaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Integer
+ Network.AWS.SWF: rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text
+ Network.AWS.SWF: recordMarkerDecisionAttributes :: Text -> RecordMarkerDecisionAttributes
+ Network.AWS.SWF: recordMarkerFailedEventAttributes :: Text -> RecordMarkerFailedCause -> Integer -> RecordMarkerFailedEventAttributes
+ Network.AWS.SWF: requestCancelActivityTaskDecisionAttributes :: Text -> RequestCancelActivityTaskDecisionAttributes
+ Network.AWS.SWF: requestCancelActivityTaskFailedEventAttributes :: Text -> RequestCancelActivityTaskFailedCause -> Integer -> RequestCancelActivityTaskFailedEventAttributes
+ Network.AWS.SWF: requestCancelExternalWorkflowExecutionDecisionAttributes :: Text -> RequestCancelExternalWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: requestCancelExternalWorkflowExecutionFailedEventAttributes :: Text -> RequestCancelExternalWorkflowExecutionFailedCause -> Integer -> Integer -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Integer -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text
+ Network.AWS.SWF: rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause
+ Network.AWS.SWF: rmfeaDecisionTaskCompletedEventId :: Lens' RecordMarkerFailedEventAttributes Integer
+ Network.AWS.SWF: rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text
+ Network.AWS.SWF: sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)
+ Network.AWS.SWF: sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)
+ Network.AWS.SWF: satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text
+ Network.AWS.SWF: satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType
+ Network.AWS.SWF: satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)
+ Network.AWS.SWF: satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text
+ Network.AWS.SWF: satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType
+ Network.AWS.SWF: satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause
+ Network.AWS.SWF: satfeaDecisionTaskCompletedEventId :: Lens' ScheduleActivityTaskFailedEventAttributes Integer
+ Network.AWS.SWF: scheduleActivityTaskDecisionAttributes :: ActivityType -> Text -> ScheduleActivityTaskDecisionAttributes
+ Network.AWS.SWF: scheduleActivityTaskFailedEventAttributes :: ActivityType -> Text -> ScheduleActivityTaskFailedCause -> Integer -> ScheduleActivityTaskFailedEventAttributes
+ Network.AWS.SWF: scheduleLambdaFunctionDecisionAttributes :: Text -> Text -> ScheduleLambdaFunctionDecisionAttributes
+ Network.AWS.SWF: scheduleLambdaFunctionFailedEventAttributes :: Text -> Text -> ScheduleLambdaFunctionFailedCause -> Integer -> ScheduleLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)
+ Network.AWS.SWF: scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]
+ Network.AWS.SWF: scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)
+ Network.AWS.SWF: scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text
+ Network.AWS.SWF: scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType
+ Network.AWS.SWF: scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause
+ Network.AWS.SWF: scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text
+ Network.AWS.SWF: scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType
+ Network.AWS.SWF: scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy
+ Network.AWS.SWF: scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Integer
+ Network.AWS.SWF: scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]
+ Network.AWS.SWF: scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList
+ Network.AWS.SWF: scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text
+ Network.AWS.SWF: scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType
+ Network.AWS.SWF: sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text
+ Network.AWS.SWF: sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text
+ Network.AWS.SWF: sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause
+ Network.AWS.SWF: sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: sewefeaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: sewefeaInitiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text
+ Network.AWS.SWF: seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: seweieaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Integer
+ Network.AWS.SWF: seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text
+ Network.AWS.SWF: seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text
+ Network.AWS.SWF: signalExternalWorkflowExecutionDecisionAttributes :: Text -> Text -> SignalExternalWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: signalExternalWorkflowExecutionFailedEventAttributes :: Text -> SignalExternalWorkflowExecutionFailedCause -> Integer -> Integer -> SignalExternalWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: signalExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Text -> Integer -> SignalExternalWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text
+ Network.AWS.SWF: slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text
+ Network.AWS.SWF: slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF: slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF: slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text
+ Network.AWS.SWF: slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text
+ Network.AWS.SWF: startChildWorkflowExecutionDecisionAttributes :: WorkflowType -> Text -> StartChildWorkflowExecutionDecisionAttributes
+ Network.AWS.SWF: startChildWorkflowExecutionFailedEventAttributes :: WorkflowType -> StartChildWorkflowExecutionFailedCause -> Text -> Integer -> Integer -> StartChildWorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: startChildWorkflowExecutionInitiatedEventAttributes :: Text -> WorkflowType -> TaskList -> Integer -> ChildPolicy -> StartChildWorkflowExecutionInitiatedEventAttributes
+ Network.AWS.SWF: startLambdaFunctionFailedEventAttributes :: StartLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF: startTimerDecisionAttributes :: Text -> Text -> StartTimerDecisionAttributes
+ Network.AWS.SWF: startTimerFailedEventAttributes :: Text -> StartTimerFailedCause -> Integer -> StartTimerFailedEventAttributes
+ Network.AWS.SWF: stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)
+ Network.AWS.SWF: stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text
+ Network.AWS.SWF: stdaTimerId :: Lens' StartTimerDecisionAttributes Text
+ Network.AWS.SWF: stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause
+ Network.AWS.SWF: stfeaDecisionTaskCompletedEventId :: Lens' StartTimerFailedEventAttributes Integer
+ Network.AWS.SWF: stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text
+ Network.AWS.SWF: tagFilter :: Text -> TagFilter
+ Network.AWS.SWF: taskList :: Text -> TaskList
+ Network.AWS.SWF: tceaDecisionTaskCompletedEventId :: Lens' TimerCanceledEventAttributes Integer
+ Network.AWS.SWF: tceaStartedEventId :: Lens' TimerCanceledEventAttributes Integer
+ Network.AWS.SWF: tceaTimerId :: Lens' TimerCanceledEventAttributes Text
+ Network.AWS.SWF: tfTag :: Lens' TagFilter Text
+ Network.AWS.SWF: tfeaStartedEventId :: Lens' TimerFiredEventAttributes Integer
+ Network.AWS.SWF: tfeaTimerId :: Lens' TimerFiredEventAttributes Text
+ Network.AWS.SWF: timerCanceledEventAttributes :: Text -> Integer -> Integer -> TimerCanceledEventAttributes
+ Network.AWS.SWF: timerFiredEventAttributes :: Text -> Integer -> TimerFiredEventAttributes
+ Network.AWS.SWF: timerStartedEventAttributes :: Text -> Text -> Integer -> TimerStartedEventAttributes
+ Network.AWS.SWF: tlName :: Lens' TaskList Text
+ Network.AWS.SWF: tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: tseaDecisionTaskCompletedEventId :: Lens' TimerStartedEventAttributes Integer
+ Network.AWS.SWF: tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text
+ Network.AWS.SWF: tseaTimerId :: Lens' TimerStartedEventAttributes Text
+ Network.AWS.SWF: wDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF: wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF: wExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)
+ Network.AWS.SWF: wExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)
+ Network.AWS.SWF: wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)
+ Network.AWS.SWF: wSignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text
+ Network.AWS.SWF: weRunId :: Lens' WorkflowExecution Text
+ Network.AWS.SWF: weWorkflowId :: Lens' WorkflowExecution Text
+ Network.AWS.SWF: wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy
+ Network.AWS.SWF: wecCount :: Lens' WorkflowExecutionCount Natural
+ Network.AWS.SWF: wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text
+ Network.AWS.SWF: wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)
+ Network.AWS.SWF: wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList
+ Network.AWS.SWF: wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)
+ Network.AWS.SWF: wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text
+ Network.AWS.SWF: wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)
+ Network.AWS.SWF: wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy
+ Network.AWS.SWF: wecaneaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Integer
+ Network.AWS.SWF: wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text
+ Network.AWS.SWF: wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]
+ Network.AWS.SWF: wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList
+ Network.AWS.SWF: wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType
+ Network.AWS.SWF: weceaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCompletedEventAttributes Integer
+ Network.AWS.SWF: weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF: wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)
+ Network.AWS.SWF: wecreaExternalInitiatedEventId :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe Integer)
+ Network.AWS.SWF: wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)
+ Network.AWS.SWF: wefWorkflowId :: Lens' WorkflowExecutionFilter Text
+ Network.AWS.SWF: wefeaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF: wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)
+ Network.AWS.SWF: weiCloseStatus :: Lens' WorkflowExecutionInfo (Maybe CloseStatus)
+ Network.AWS.SWF: weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)
+ Network.AWS.SWF: weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution
+ Network.AWS.SWF: weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
+ Network.AWS.SWF: weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus
+ Network.AWS.SWF: weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)
+ Network.AWS.SWF: weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)
+ Network.AWS.SWF: weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime
+ Network.AWS.SWF: weiTagList :: Lens' WorkflowExecutionInfo [Text]
+ Network.AWS.SWF: weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType
+ Network.AWS.SWF: weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural
+ Network.AWS.SWF: weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural
+ Network.AWS.SWF: weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural
+ Network.AWS.SWF: weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)
+ Network.AWS.SWF: weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural
+ Network.AWS.SWF: weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy
+ Network.AWS.SWF: weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaParentInitiatedEventId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Integer)
+ Network.AWS.SWF: weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)
+ Network.AWS.SWF: weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]
+ Network.AWS.SWF: weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList
+ Network.AWS.SWF: weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType
+ Network.AWS.SWF: weteaCause :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe WorkflowExecutionTerminatedCause)
+ Network.AWS.SWF: weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy
+ Network.AWS.SWF: weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)
+ Network.AWS.SWF: wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy
+ Network.AWS.SWF: wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType
+ Network.AWS.SWF: workflowExecution :: Text -> Text -> WorkflowExecution
+ Network.AWS.SWF: workflowExecutionCancelRequestedEventAttributes :: WorkflowExecutionCancelRequestedEventAttributes
+ Network.AWS.SWF: workflowExecutionCanceledEventAttributes :: Integer -> WorkflowExecutionCanceledEventAttributes
+ Network.AWS.SWF: workflowExecutionCompletedEventAttributes :: Integer -> WorkflowExecutionCompletedEventAttributes
+ Network.AWS.SWF: workflowExecutionConfiguration :: Text -> Text -> TaskList -> ChildPolicy -> WorkflowExecutionConfiguration
+ Network.AWS.SWF: workflowExecutionContinuedAsNewEventAttributes :: Integer -> Text -> TaskList -> ChildPolicy -> WorkflowType -> WorkflowExecutionContinuedAsNewEventAttributes
+ Network.AWS.SWF: workflowExecutionCount :: Natural -> WorkflowExecutionCount
+ Network.AWS.SWF: workflowExecutionFailedEventAttributes :: Integer -> WorkflowExecutionFailedEventAttributes
+ Network.AWS.SWF: workflowExecutionFilter :: Text -> WorkflowExecutionFilter
+ Network.AWS.SWF: workflowExecutionInfo :: WorkflowExecution -> WorkflowType -> UTCTime -> ExecutionStatus -> WorkflowExecutionInfo
+ Network.AWS.SWF: workflowExecutionInfos :: WorkflowExecutionInfos
+ Network.AWS.SWF: workflowExecutionOpenCounts :: Natural -> Natural -> Natural -> Natural -> WorkflowExecutionOpenCounts
+ Network.AWS.SWF: workflowExecutionSignaledEventAttributes :: Text -> WorkflowExecutionSignaledEventAttributes
+ Network.AWS.SWF: workflowExecutionStartedEventAttributes :: ChildPolicy -> TaskList -> WorkflowType -> WorkflowExecutionStartedEventAttributes
+ Network.AWS.SWF: workflowExecutionTerminatedEventAttributes :: ChildPolicy -> WorkflowExecutionTerminatedEventAttributes
+ Network.AWS.SWF: workflowExecutionTimedOutEventAttributes :: WorkflowExecutionTimeoutType -> ChildPolicy -> WorkflowExecutionTimedOutEventAttributes
+ Network.AWS.SWF: workflowType :: Text -> Text -> WorkflowType
+ Network.AWS.SWF: workflowTypeConfiguration :: WorkflowTypeConfiguration
+ Network.AWS.SWF: workflowTypeFilter :: Text -> WorkflowTypeFilter
+ Network.AWS.SWF: workflowTypeInfo :: WorkflowType -> RegistrationStatus -> UTCTime -> WorkflowTypeInfo
+ Network.AWS.SWF: wtName :: Lens' WorkflowType Text
+ Network.AWS.SWF: wtVersion :: Lens' WorkflowType Text
+ Network.AWS.SWF: wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)
+ Network.AWS.SWF: wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)
+ Network.AWS.SWF: wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)
+ Network.AWS.SWF: wtfName :: Lens' WorkflowTypeFilter Text
+ Network.AWS.SWF: wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)
+ Network.AWS.SWF: wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime
+ Network.AWS.SWF: wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)
+ Network.AWS.SWF: wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text)
+ Network.AWS.SWF: wtiStatus :: Lens' WorkflowTypeInfo RegistrationStatus
+ Network.AWS.SWF: wtiWorkflowType :: Lens' WorkflowTypeInfo WorkflowType
+ Network.AWS.SWF.CountClosedWorkflowExecutions: data WorkflowExecutionCount
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Constructor C1_0CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Data CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Datatype D1CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Generic CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_0CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_1CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_2CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_3CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_4CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_5CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Selector S1_0_6CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Typeable CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountClosedWorkflowExecutions: wecCount :: Lens' WorkflowExecutionCount Natural
+ Network.AWS.SWF.CountClosedWorkflowExecutions: wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)
+ Network.AWS.SWF.CountClosedWorkflowExecutions: workflowExecutionCount :: Natural -> WorkflowExecutionCount
+ Network.AWS.SWF.CountOpenWorkflowExecutions: data WorkflowExecutionCount
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Constructor C1_0CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Data CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Datatype D1CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Generic CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Selector S1_0_0CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Selector S1_0_1CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Selector S1_0_2CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Selector S1_0_3CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Selector S1_0_4CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Typeable CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: wecCount :: Lens' WorkflowExecutionCount Natural
+ Network.AWS.SWF.CountOpenWorkflowExecutions: wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)
+ Network.AWS.SWF.CountOpenWorkflowExecutions: workflowExecutionCount :: Natural -> WorkflowExecutionCount
+ Network.AWS.SWF.CountPendingActivityTasks: data PendingTaskCount
+ Network.AWS.SWF.CountPendingActivityTasks: instance Constructor C1_0CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Data CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Datatype D1CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Generic CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Selector S1_0_0CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Selector S1_0_1CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: instance Typeable CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingActivityTasks: pendingTaskCount :: Natural -> PendingTaskCount
+ Network.AWS.SWF.CountPendingActivityTasks: ptcCount :: Lens' PendingTaskCount Natural
+ Network.AWS.SWF.CountPendingActivityTasks: ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)
+ Network.AWS.SWF.CountPendingDecisionTasks: data PendingTaskCount
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Constructor C1_0CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Data CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Datatype D1CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Generic CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Selector S1_0_0CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Selector S1_0_1CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Typeable CountPendingDecisionTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: pendingTaskCount :: Natural -> PendingTaskCount
+ Network.AWS.SWF.CountPendingDecisionTasks: ptcCount :: Lens' PendingTaskCount Natural
+ Network.AWS.SWF.CountPendingDecisionTasks: ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)
+ Network.AWS.SWF.DeprecateActivityType: depActivityType :: Lens' DeprecateActivityType ActivityType
+ Network.AWS.SWF.DeprecateActivityType: depDomain :: Lens' DeprecateActivityType Text
+ Network.AWS.SWF.DeprecateActivityType: instance Constructor C1_0DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Data DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Data DeprecateActivityTypeResponse
+ Network.AWS.SWF.DeprecateActivityType: instance Datatype D1DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Generic DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Selector S1_0_0DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Selector S1_0_1DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Typeable DeprecateActivityType
+ Network.AWS.SWF.DeprecateActivityType: instance Typeable DeprecateActivityTypeResponse
+ Network.AWS.SWF.DeprecateDomain: dName :: Lens' DeprecateDomain Text
+ Network.AWS.SWF.DeprecateDomain: instance Constructor C1_0DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Data DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Data DeprecateDomainResponse
+ Network.AWS.SWF.DeprecateDomain: instance Datatype D1DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Generic DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Selector S1_0_0DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Typeable DeprecateDomain
+ Network.AWS.SWF.DeprecateDomain: instance Typeable DeprecateDomainResponse
+ Network.AWS.SWF.DeprecateWorkflowType: dDomain :: Lens' DeprecateWorkflowType Text
+ Network.AWS.SWF.DeprecateWorkflowType: dWorkflowType :: Lens' DeprecateWorkflowType WorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Constructor C1_0DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Data DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Data DeprecateWorkflowTypeResponse
+ Network.AWS.SWF.DeprecateWorkflowType: instance Datatype D1DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Generic DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Selector S1_0_0DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Selector S1_0_1DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Typeable DeprecateWorkflowType
+ Network.AWS.SWF.DeprecateWorkflowType: instance Typeable DeprecateWorkflowTypeResponse
+ Network.AWS.SWF.DescribeActivityType: datrsConfiguration :: Lens' DescribeActivityTypeResponse ActivityTypeConfiguration
+ Network.AWS.SWF.DescribeActivityType: datrsStatus :: Lens' DescribeActivityTypeResponse Int
+ Network.AWS.SWF.DescribeActivityType: datrsTypeInfo :: Lens' DescribeActivityTypeResponse ActivityTypeInfo
+ Network.AWS.SWF.DescribeActivityType: instance Constructor C1_0DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Constructor C1_0DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Data DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Data DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Datatype D1DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Datatype D1DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Generic DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Generic DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Selector S1_0_0DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Selector S1_0_0DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Selector S1_0_1DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Selector S1_0_1DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Selector S1_0_2DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: instance Typeable DescribeActivityType
+ Network.AWS.SWF.DescribeActivityType: instance Typeable DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeDomain: ddrsConfiguration :: Lens' DescribeDomainResponse DomainConfiguration
+ Network.AWS.SWF.DescribeDomain: ddrsDomainInfo :: Lens' DescribeDomainResponse DomainInfo
+ Network.AWS.SWF.DescribeDomain: ddrsStatus :: Lens' DescribeDomainResponse Int
+ Network.AWS.SWF.DescribeDomain: instance Constructor C1_0DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Constructor C1_0DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Data DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Data DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Datatype D1DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Datatype D1DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Generic DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Generic DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Selector S1_0_0DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Selector S1_0_0DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Selector S1_0_1DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Selector S1_0_2DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: instance Typeable DescribeDomain
+ Network.AWS.SWF.DescribeDomain: instance Typeable DescribeDomainResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersExecutionConfiguration :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersExecutionInfo :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime)
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text)
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersOpenCounts :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts
+ Network.AWS.SWF.DescribeWorkflowExecution: dwersStatus :: Lens' DescribeWorkflowExecutionResponse Int
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Constructor C1_0DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Constructor C1_0DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Data DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Data DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Datatype D1DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Datatype D1DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Generic DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Generic DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_0DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_0DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_1DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_1DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_2DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_3DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_4DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Selector S1_0_5DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Typeable DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Typeable DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowType: dwtrsConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration
+ Network.AWS.SWF.DescribeWorkflowType: dwtrsStatus :: Lens' DescribeWorkflowTypeResponse Int
+ Network.AWS.SWF.DescribeWorkflowType: dwtrsTypeInfo :: Lens' DescribeWorkflowTypeResponse WorkflowTypeInfo
+ Network.AWS.SWF.DescribeWorkflowType: instance Constructor C1_0DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Constructor C1_0DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Data DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Data DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Datatype D1DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Datatype D1DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Generic DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Generic DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Selector S1_0_0DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Selector S1_0_0DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Selector S1_0_1DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Selector S1_0_1DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Selector S1_0_2DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: instance Typeable DescribeWorkflowType
+ Network.AWS.SWF.DescribeWorkflowType: instance Typeable DescribeWorkflowTypeResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: gwehrsEvents :: Lens' GetWorkflowExecutionHistoryResponse [HistoryEvent]
+ Network.AWS.SWF.GetWorkflowExecutionHistory: gwehrsNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text)
+ Network.AWS.SWF.GetWorkflowExecutionHistory: gwehrsStatus :: Lens' GetWorkflowExecutionHistoryResponse Int
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Constructor C1_0GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Constructor C1_0GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Data GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Data GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Datatype D1GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Datatype D1GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Generic GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Generic GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_0GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_0GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_1GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_1GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_2GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_2GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_3GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Selector S1_0_4GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Typeable GetWorkflowExecutionHistory
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Typeable GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.ListActivityTypes: instance Constructor C1_0ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Constructor C1_0ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Data ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Data ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Datatype D1ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Datatype D1ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Generic ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Generic ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_0ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_0ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_1ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_1ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_2ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_2ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_3ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_4ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Selector S1_0_5ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Typeable ListActivityTypes
+ Network.AWS.SWF.ListActivityTypes: instance Typeable ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: latrsNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text)
+ Network.AWS.SWF.ListActivityTypes: latrsStatus :: Lens' ListActivityTypesResponse Int
+ Network.AWS.SWF.ListActivityTypes: latrsTypeInfos :: Lens' ListActivityTypesResponse [ActivityTypeInfo]
+ Network.AWS.SWF.ListClosedWorkflowExecutions: data WorkflowExecutionInfos
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Constructor C1_0ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Data ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Datatype D1ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Generic ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_0ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_1ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_2ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_3ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_4ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_5ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_6ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_7ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_8ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Selector S1_0_9ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Typeable ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListClosedWorkflowExecutions: weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
+ Network.AWS.SWF.ListClosedWorkflowExecutions: weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)
+ Network.AWS.SWF.ListClosedWorkflowExecutions: workflowExecutionInfos :: WorkflowExecutionInfos
+ Network.AWS.SWF.ListDomains: instance Constructor C1_0ListDomains
+ Network.AWS.SWF.ListDomains: instance Constructor C1_0ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Data ListDomains
+ Network.AWS.SWF.ListDomains: instance Data ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Datatype D1ListDomains
+ Network.AWS.SWF.ListDomains: instance Datatype D1ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Generic ListDomains
+ Network.AWS.SWF.ListDomains: instance Generic ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_0ListDomains
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_0ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_1ListDomains
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_1ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_2ListDomains
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_2ListDomainsResponse
+ Network.AWS.SWF.ListDomains: instance Selector S1_0_3ListDomains
+ Network.AWS.SWF.ListDomains: instance Typeable ListDomains
+ Network.AWS.SWF.ListDomains: instance Typeable ListDomainsResponse
+ Network.AWS.SWF.ListDomains: ldrsDomainInfos :: Lens' ListDomainsResponse [DomainInfo]
+ Network.AWS.SWF.ListDomains: ldrsNextPageToken :: Lens' ListDomainsResponse (Maybe Text)
+ Network.AWS.SWF.ListDomains: ldrsStatus :: Lens' ListDomainsResponse Int
+ Network.AWS.SWF.ListOpenWorkflowExecutions: data WorkflowExecutionInfos
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Constructor C1_0ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Data ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Datatype D1ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Generic ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_0ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_1ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_2ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_3ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_4ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_5ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_6ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Selector S1_0_7ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Typeable ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListOpenWorkflowExecutions: weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
+ Network.AWS.SWF.ListOpenWorkflowExecutions: weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)
+ Network.AWS.SWF.ListOpenWorkflowExecutions: workflowExecutionInfos :: WorkflowExecutionInfos
+ Network.AWS.SWF.ListWorkflowTypes: instance Constructor C1_0ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Constructor C1_0ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Data ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Data ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Datatype D1ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Datatype D1ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Generic ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Generic ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_0ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_0ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_1ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_1ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_2ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_2ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_3ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_4ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Selector S1_0_5ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Typeable ListWorkflowTypes
+ Network.AWS.SWF.ListWorkflowTypes: instance Typeable ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: lwtrsNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text)
+ Network.AWS.SWF.ListWorkflowTypes: lwtrsStatus :: Lens' ListWorkflowTypesResponse Int
+ Network.AWS.SWF.ListWorkflowTypes: lwtrsTypeInfos :: Lens' ListWorkflowTypesResponse [WorkflowTypeInfo]
+ Network.AWS.SWF.PollForActivityTask: instance Constructor C1_0PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Constructor C1_0PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Data PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Data PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Datatype D1PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Datatype D1PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Generic PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Generic PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_0PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_0PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_1PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_1PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_2PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_2PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_3PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_4PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_5PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Selector S1_0_6PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: instance Typeable PollForActivityTask
+ Network.AWS.SWF.PollForActivityTask: instance Typeable PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: pfatrsActivityId :: Lens' PollForActivityTaskResponse Text
+ Network.AWS.SWF.PollForActivityTask: pfatrsActivityType :: Lens' PollForActivityTaskResponse ActivityType
+ Network.AWS.SWF.PollForActivityTask: pfatrsInput :: Lens' PollForActivityTaskResponse (Maybe Text)
+ Network.AWS.SWF.PollForActivityTask: pfatrsStartedEventId :: Lens' PollForActivityTaskResponse Integer
+ Network.AWS.SWF.PollForActivityTask: pfatrsStatus :: Lens' PollForActivityTaskResponse Int
+ Network.AWS.SWF.PollForActivityTask: pfatrsTaskToken :: Lens' PollForActivityTaskResponse Text
+ Network.AWS.SWF.PollForActivityTask: pfatrsWorkflowExecution :: Lens' PollForActivityTaskResponse WorkflowExecution
+ Network.AWS.SWF.PollForDecisionTask: instance Constructor C1_0PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Constructor C1_0PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Data PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Data PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Datatype D1PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Datatype D1PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Generic PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Generic PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_0PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_0PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_1PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_1PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_2PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_2PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_3PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_3PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_4PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_4PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_5PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_5PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_6PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Selector S1_0_7PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: instance Typeable PollForDecisionTask
+ Network.AWS.SWF.PollForDecisionTask: instance Typeable PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsEvents :: Lens' PollForDecisionTaskResponse [HistoryEvent]
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text)
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsPreviousStartedEventId :: Lens' PollForDecisionTaskResponse (Maybe Integer)
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsStartedEventId :: Lens' PollForDecisionTaskResponse Integer
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsStatus :: Lens' PollForDecisionTaskResponse Int
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsTaskToken :: Lens' PollForDecisionTaskResponse Text
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsWorkflowExecution :: Lens' PollForDecisionTaskResponse WorkflowExecution
+ Network.AWS.SWF.PollForDecisionTask: pfdtrsWorkflowType :: Lens' PollForDecisionTaskResponse WorkflowType
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Constructor C1_0RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Constructor C1_0RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Data RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Data RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Datatype D1RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Datatype D1RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Generic RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Generic RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Selector S1_0_0RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Selector S1_0_0RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Selector S1_0_1RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Selector S1_0_1RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Typeable RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Typeable RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: rathrsCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: rathrsStatus :: Lens' RecordActivityTaskHeartbeatResponse Int
+ Network.AWS.SWF.RegisterActivityType: instance Constructor C1_0RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Data RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Data RegisterActivityTypeResponse
+ Network.AWS.SWF.RegisterActivityType: instance Datatype D1RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Generic RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_0RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_1RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_2RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_3RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_4RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_5RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_6RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_7RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_8RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Selector S1_0_9RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Typeable RegisterActivityType
+ Network.AWS.SWF.RegisterActivityType: instance Typeable RegisterActivityTypeResponse
+ Network.AWS.SWF.RegisterDomain: instance Constructor C1_0RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Data RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Data RegisterDomainResponse
+ Network.AWS.SWF.RegisterDomain: instance Datatype D1RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Generic RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Selector S1_0_0RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Selector S1_0_1RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Selector S1_0_2RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Typeable RegisterDomain
+ Network.AWS.SWF.RegisterDomain: instance Typeable RegisterDomainResponse
+ Network.AWS.SWF.RegisterWorkflowType: instance Constructor C1_0RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Data RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Data RegisterWorkflowTypeResponse
+ Network.AWS.SWF.RegisterWorkflowType: instance Datatype D1RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Generic RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_0RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_1RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_2RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_3RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_4RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_5RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_6RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_7RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_8RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Selector S1_0_9RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Typeable RegisterWorkflowType
+ Network.AWS.SWF.RegisterWorkflowType: instance Typeable RegisterWorkflowTypeResponse
+ Network.AWS.SWF.RegisterWorkflowType: rwtDefaultLambdaRole :: Lens' RegisterWorkflowType (Maybe Text)
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Constructor C1_0RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Data RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Data RequestCancelWorkflowExecutionResponse
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Datatype D1RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Generic RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Selector S1_0_0RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Selector S1_0_1RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Selector S1_0_2RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Typeable RequestCancelWorkflowExecution
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Typeable RequestCancelWorkflowExecutionResponse
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Constructor C1_0RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Data RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Data RespondActivityTaskCanceledResponse
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Datatype D1RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Generic RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Selector S1_0_0RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Selector S1_0_1RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Typeable RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Typeable RespondActivityTaskCanceledResponse
+ Network.AWS.SWF.RespondActivityTaskCanceled: rDetails :: Lens' RespondActivityTaskCanceled (Maybe Text)
+ Network.AWS.SWF.RespondActivityTaskCanceled: rTaskToken :: Lens' RespondActivityTaskCanceled Text
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Constructor C1_0RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Data RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Data RespondActivityTaskCompletedResponse
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Datatype D1RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Generic RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Selector S1_0_0RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Selector S1_0_1RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Typeable RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Typeable RespondActivityTaskCompletedResponse
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Constructor C1_0RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Data RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Data RespondActivityTaskFailedResponse
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Datatype D1RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Generic RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Selector S1_0_0RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Selector S1_0_1RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Selector S1_0_2RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Typeable RespondActivityTaskFailed
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Typeable RespondActivityTaskFailedResponse
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Constructor C1_0RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Data RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Data RespondDecisionTaskCompletedResponse
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Datatype D1RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Generic RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Selector S1_0_0RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Selector S1_0_1RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Selector S1_0_2RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Typeable RespondDecisionTaskCompleted
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Typeable RespondDecisionTaskCompletedResponse
+ Network.AWS.SWF.SignalWorkflowExecution: instance Constructor C1_0SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Data SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Data SignalWorkflowExecutionResponse
+ Network.AWS.SWF.SignalWorkflowExecution: instance Datatype D1SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Generic SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Selector S1_0_0SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Selector S1_0_1SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Selector S1_0_2SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Selector S1_0_3SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Selector S1_0_4SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Typeable SignalWorkflowExecution
+ Network.AWS.SWF.SignalWorkflowExecution: instance Typeable SignalWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Constructor C1_0StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Constructor C1_0StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Data StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Data StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Datatype D1StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Datatype D1StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Generic StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Generic StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_0StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_0StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_10StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_1StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_1StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_2StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_3StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_4StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_5StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_6StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_7StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_8StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Selector S1_0_9StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Typeable StartWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Typeable StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: sChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy)
+ Network.AWS.SWF.StartWorkflowExecution: sDomain :: Lens' StartWorkflowExecution Text
+ Network.AWS.SWF.StartWorkflowExecution: sExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: sInput :: Lens' StartWorkflowExecution (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: sLambdaRole :: Lens' StartWorkflowExecution (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: sTagList :: Lens' StartWorkflowExecution [Text]
+ Network.AWS.SWF.StartWorkflowExecution: sTaskList :: Lens' StartWorkflowExecution (Maybe TaskList)
+ Network.AWS.SWF.StartWorkflowExecution: sTaskPriority :: Lens' StartWorkflowExecution (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: sTaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: sWorkflowId :: Lens' StartWorkflowExecution Text
+ Network.AWS.SWF.StartWorkflowExecution: sWorkflowType :: Lens' StartWorkflowExecution WorkflowType
+ Network.AWS.SWF.StartWorkflowExecution: swersRunId :: Lens' StartWorkflowExecutionResponse (Maybe Text)
+ Network.AWS.SWF.StartWorkflowExecution: swersStatus :: Lens' StartWorkflowExecutionResponse Int
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Constructor C1_0TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Data TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Data TerminateWorkflowExecutionResponse
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Datatype D1TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Generic TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_0TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_1TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_2TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_3TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_4TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Selector S1_0_5TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Typeable TerminateWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Typeable TerminateWorkflowExecutionResponse
+ Network.AWS.SWF.Types: AssumeRoleFailed :: StartLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: COperationNotPermitted :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF.Types: CUnhandledDecision :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF.Types: Canceled :: CloseStatus
+ Network.AWS.SWF.Types: Completed :: CloseStatus
+ Network.AWS.SWF.Types: ContinuedAsNew :: CloseStatus
+ Network.AWS.SWF.Types: Failed :: CloseStatus
+ Network.AWS.SWF.Types: IdAlreadyInUse :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: LFTTStartToClose :: LambdaFunctionTimeoutType
+ Network.AWS.SWF.Types: LambdaFunctionCompleted :: EventType
+ Network.AWS.SWF.Types: LambdaFunctionCreationRateExceeded :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: LambdaFunctionFailed :: EventType
+ Network.AWS.SWF.Types: LambdaFunctionScheduled :: EventType
+ Network.AWS.SWF.Types: LambdaFunctionStarted :: EventType
+ Network.AWS.SWF.Types: LambdaFunctionTimedOut :: EventType
+ Network.AWS.SWF.Types: LambdaServiceNotAvailableInRegion :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: OpenLambdaFunctionsLimitExceeded :: ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: OpenTimersLimitExceeded :: StartTimerFailedCause
+ Network.AWS.SWF.Types: RCATFCActivityIdUnknown :: RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF.Types: RCATFCOperationNotPermitted :: RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF.Types: ScheduleLambdaFunction :: DecisionType
+ Network.AWS.SWF.Types: ScheduleLambdaFunctionFailed :: EventType
+ Network.AWS.SWF.Types: StartLambdaFunctionFailed :: EventType
+ Network.AWS.SWF.Types: Terminated :: CloseStatus
+ Network.AWS.SWF.Types: TimedOut :: CloseStatus
+ Network.AWS.SWF.Types: TimerCreationRateExceeded :: StartTimerFailedCause
+ Network.AWS.SWF.Types: TimerIdAlreadyInUse :: StartTimerFailedCause
+ Network.AWS.SWF.Types: WETCChildPolicyApplied :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF.Types: WETCEventLimitExceeded :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF.Types: WETCOperatorInitiated :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF.Types: WETTStartToClose :: WorkflowExecutionTimeoutType
+ Network.AWS.SWF.Types: _DefaultUndefinedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _TypeAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _UnknownResourceFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: _WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.SWF.Types: aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: aLatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)
+ Network.AWS.SWF.Types: aScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
+ Network.AWS.SWF.Types: aStartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer
+ Network.AWS.SWF.Types: cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF.Types: cDecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer
+ Network.AWS.SWF.Types: cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: cInitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF.Types: cStartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF.Types: cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution
+ Network.AWS.SWF.Types: cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType
+ Network.AWS.SWF.Types: canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF.Types: dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)
+ Network.AWS.SWF.Types: data LambdaFunctionCompletedEventAttributes
+ Network.AWS.SWF.Types: data LambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: data LambdaFunctionScheduledEventAttributes
+ Network.AWS.SWF.Types: data LambdaFunctionStartedEventAttributes
+ Network.AWS.SWF.Types: data LambdaFunctionTimedOutEventAttributes
+ Network.AWS.SWF.Types: data LambdaFunctionTimeoutType
+ Network.AWS.SWF.Types: data ScheduleLambdaFunctionDecisionAttributes
+ Network.AWS.SWF.Types: data ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: data ScheduleLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: data StartLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: data StartLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)
+ Network.AWS.SWF.Types: heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF.Types: heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)
+ Network.AWS.SWF.Types: heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)
+ Network.AWS.SWF.Types: heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)
+ Network.AWS.SWF.Types: heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF.Types: heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)
+ Network.AWS.SWF.Types: lambdaFunctionCompletedEventAttributes :: Integer -> Integer -> LambdaFunctionCompletedEventAttributes
+ Network.AWS.SWF.Types: lambdaFunctionFailedEventAttributes :: Integer -> Integer -> LambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: lambdaFunctionScheduledEventAttributes :: Text -> Text -> Integer -> LambdaFunctionScheduledEventAttributes
+ Network.AWS.SWF.Types: lambdaFunctionStartedEventAttributes :: Integer -> LambdaFunctionStartedEventAttributes
+ Network.AWS.SWF.Types: lambdaFunctionTimedOutEventAttributes :: Integer -> Integer -> LambdaFunctionTimedOutEventAttributes
+ Network.AWS.SWF.Types: lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer
+ Network.AWS.SWF.Types: lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer
+ Network.AWS.SWF.Types: lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF.Types: lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF.Types: lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer
+ Network.AWS.SWF.Types: lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text
+ Network.AWS.SWF.Types: lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text
+ Network.AWS.SWF.Types: lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer
+ Network.AWS.SWF.Types: lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer
+ Network.AWS.SWF.Types: lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer
+ Network.AWS.SWF.Types: lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)
+ Network.AWS.SWF.Types: sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)
+ Network.AWS.SWF.Types: sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)
+ Network.AWS.SWF.Types: scheduleLambdaFunctionDecisionAttributes :: Text -> Text -> ScheduleLambdaFunctionDecisionAttributes
+ Network.AWS.SWF.Types: scheduleLambdaFunctionFailedEventAttributes :: Text -> Text -> ScheduleLambdaFunctionFailedCause -> Integer -> ScheduleLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF.Types: scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text
+ Network.AWS.SWF.Types: slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF.Types: slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text
+ Network.AWS.SWF.Types: slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)
+ Network.AWS.SWF.Types: slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause
+ Network.AWS.SWF.Types: slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer
+ Network.AWS.SWF.Types: slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text
+ Network.AWS.SWF.Types: slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text
+ Network.AWS.SWF.Types: startLambdaFunctionFailedEventAttributes :: StartLambdaFunctionFailedEventAttributes
+ Network.AWS.SWF.Types: wDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer
+ Network.AWS.SWF.Types: wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: wExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)
+ Network.AWS.SWF.Types: wExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)
+ Network.AWS.SWF.Types: wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: wSignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text
+ Network.AWS.SWF.Types: wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)
+ Network.AWS.SWF.Types: wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)
+ Network.AWS.SWF.Types: weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)
+ Network.AWS.SWF.Types: wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)
- Network.AWS.SWF.DescribeActivityType: describeActivityTypeResponse :: ActivityTypeInfo -> ActivityTypeConfiguration -> DescribeActivityTypeResponse
+ Network.AWS.SWF.DescribeActivityType: describeActivityTypeResponse :: Int -> ActivityTypeInfo -> ActivityTypeConfiguration -> DescribeActivityTypeResponse
- Network.AWS.SWF.DescribeDomain: describeDomainResponse :: DomainInfo -> DomainConfiguration -> DescribeDomainResponse
+ Network.AWS.SWF.DescribeDomain: describeDomainResponse :: Int -> DomainInfo -> DomainConfiguration -> DescribeDomainResponse
- Network.AWS.SWF.DescribeWorkflowExecution: describeWorkflowExecutionResponse :: WorkflowExecutionInfo -> WorkflowExecutionConfiguration -> WorkflowExecutionOpenCounts -> DescribeWorkflowExecutionResponse
+ Network.AWS.SWF.DescribeWorkflowExecution: describeWorkflowExecutionResponse :: Int -> WorkflowExecutionInfo -> WorkflowExecutionConfiguration -> WorkflowExecutionOpenCounts -> DescribeWorkflowExecutionResponse
- Network.AWS.SWF.DescribeWorkflowType: describeWorkflowTypeResponse :: WorkflowTypeInfo -> WorkflowTypeConfiguration -> DescribeWorkflowTypeResponse
+ Network.AWS.SWF.DescribeWorkflowType: describeWorkflowTypeResponse :: Int -> WorkflowTypeInfo -> WorkflowTypeConfiguration -> DescribeWorkflowTypeResponse
- Network.AWS.SWF.GetWorkflowExecutionHistory: getWorkflowExecutionHistoryResponse :: GetWorkflowExecutionHistoryResponse
+ Network.AWS.SWF.GetWorkflowExecutionHistory: getWorkflowExecutionHistoryResponse :: Int -> GetWorkflowExecutionHistoryResponse
- Network.AWS.SWF.ListActivityTypes: listActivityTypesResponse :: ListActivityTypesResponse
+ Network.AWS.SWF.ListActivityTypes: listActivityTypesResponse :: Int -> ListActivityTypesResponse
- Network.AWS.SWF.ListDomains: listDomainsResponse :: ListDomainsResponse
+ Network.AWS.SWF.ListDomains: listDomainsResponse :: Int -> ListDomainsResponse
- Network.AWS.SWF.ListWorkflowTypes: listWorkflowTypesResponse :: ListWorkflowTypesResponse
+ Network.AWS.SWF.ListWorkflowTypes: listWorkflowTypesResponse :: Int -> ListWorkflowTypesResponse
- Network.AWS.SWF.PollForActivityTask: pollForActivityTaskResponse :: Text -> Text -> Integer -> WorkflowExecution -> ActivityType -> PollForActivityTaskResponse
+ Network.AWS.SWF.PollForActivityTask: pollForActivityTaskResponse :: Int -> Text -> Text -> Integer -> WorkflowExecution -> ActivityType -> PollForActivityTaskResponse
- Network.AWS.SWF.PollForDecisionTask: pollForDecisionTaskResponse :: Text -> Integer -> WorkflowExecution -> WorkflowType -> PollForDecisionTaskResponse
+ Network.AWS.SWF.PollForDecisionTask: pollForDecisionTaskResponse :: Int -> Text -> Integer -> WorkflowExecution -> WorkflowType -> PollForDecisionTaskResponse
- Network.AWS.SWF.RecordActivityTaskHeartbeat: recordActivityTaskHeartbeatResponse :: Bool -> RecordActivityTaskHeartbeatResponse
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: recordActivityTaskHeartbeatResponse :: Int -> Bool -> RecordActivityTaskHeartbeatResponse
- Network.AWS.SWF.StartWorkflowExecution: startWorkflowExecutionResponse :: StartWorkflowExecutionResponse
+ Network.AWS.SWF.StartWorkflowExecution: startWorkflowExecutionResponse :: Int -> StartWorkflowExecutionResponse
- Network.AWS.SWF.Types: CWEFCOperationNotPermitted :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF.Types: CWEFCOperationNotPermitted :: CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: CWEFCUnhandledDecision :: CancelWorkflowExecutionFailedCause
+ Network.AWS.SWF.Types: CWEFCUnhandledDecision :: CompleteWorkflowExecutionFailedCause
- Network.AWS.SWF.Types: ChildPolicyApplied :: WorkflowExecutionTerminatedCause
+ Network.AWS.SWF.Types: ChildPolicyApplied :: WorkflowExecutionCancelRequestedCause
- Network.AWS.SWF.Types: OperationNotPermitted :: RequestCancelActivityTaskFailedCause
+ Network.AWS.SWF.Types: OperationNotPermitted :: StartTimerFailedCause
- Network.AWS.SWF.Types: StartToClose :: WorkflowExecutionTimeoutType
+ Network.AWS.SWF.Types: StartToClose :: DecisionTaskTimeoutType

Files

README.md view
@@ -1,26 +1,47 @@ # Amazon Simple Workflow Service SDK -> _Warning:_ This is an experimental preview release which is still under heavy development and not intended for public consumption, _caveat emptor_!-+* [Version](#version) * [Description](#description) * [Contribute](#contribute) * [Licence](#licence) ++## Version++`1.0.0`++ ## Description -Amazon Simple Workflow Service (Amazon SWF) makes it easy to build-applications that coordinate work across distributed components. In Amazon-SWF, a task represents a logical unit of work that is performed by a-component of your application. Coordinating tasks across the application-involves managing intertask dependencies, scheduling, and concurrency in-accordance with the logical flow of the application. Amazon SWF gives you-full control over implementing tasks and coordinating them without worrying-about underlying complexities such as tracking their progress and maintaining-their state.+Amazon Simple Workflow Service +The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build+applications that use Amazon\'s cloud to coordinate work across+distributed components. In Amazon SWF, a /task/ represents a logical+unit of work that is performed by a component of your workflow.+Coordinating tasks in a workflow involves managing intertask+dependencies, scheduling, and concurrency in accordance with the logical+flow of the application.++Amazon SWF gives you full control over implementing tasks and+coordinating them without worrying about underlying complexities such as+tracking their progress and maintaining their state.++This documentation serves as reference only. For a broader overview of+the Amazon SWF programming model, see the+<http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.+ Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-swf) and the [AWS API Reference](http://docs.aws.amazon.com/amazonswf/latest/apireference/Welcome.html). +The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information and sending requests.++Use of lenses is required for constructing and manipulating types.+This is due to the amount of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).  ## Contribute 
amazonka-swf.cabal view
@@ -1,33 +1,49 @@ name:                  amazonka-swf-version:               0.3.6+version:               1.0.0 synopsis:              Amazon Simple Workflow Service SDK. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense license-file:          LICENSE author:                Brendan Hay maintainer:            Brendan Hay <brendan.g.hay@gmail.com>-copyright:             Copyright (c) 2013-2014 Brendan Hay+copyright:             Copyright (c) 2013-2015 Brendan Hay category:              Network, AWS, Cloud, Distributed Computing build-type:            Simple extra-source-files:    README.md cabal-version:         >= 1.10  description:-    Amazon Simple Workflow Service (Amazon SWF) makes it easy to build-    applications that coordinate work across distributed components. In Amazon-    SWF, a task represents a logical unit of work that is performed by a-    component of your application. Coordinating tasks across the application-    involves managing intertask dependencies, scheduling, and concurrency in-    accordance with the logical flow of the application. Amazon SWF gives you-    full control over implementing tasks and coordinating them without worrying-    about underlying complexities such as tracking their progress and maintaining-    their state.+    Amazon Simple Workflow Service +    The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build+    applications that use Amazon\'s cloud to coordinate work across+    distributed components. In Amazon SWF, a /task/ represents a logical+    unit of work that is performed by a component of your workflow.+    Coordinating tasks in a workflow involves managing intertask+    dependencies, scheduling, and concurrency in accordance with the logical+    flow of the application.++    Amazon SWF gives you full control over implementing tasks and+    coordinating them without worrying about underlying complexities such as+    tracking their progress and maintaining their state.++    This documentation serves as reference only. For a broader overview of+    the Amazon SWF programming model, see the+    <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.     .-    /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/Welcome.html AWS API Reference>+    The types from this library are intended to be used with+    <http://hackage.haskell.org/package/amazonka amazonka>, which provides+    mechanisms for specifying AuthN/AuthZ information and sending requests.     .-    /Warning:/ This is an experimental preview release which is still under-    heavy development and not intended for public consumption, caveat emptor!+    Use of lenses is required for constructing and manipulating types.+    This is due to the amount of nesting of AWS types and transparency regarding+    de/serialisation into more palatable Haskell values.+    The provided lenses should be compatible with any of the major lens libraries+    such as <http://hackage.haskell.org/package/lens lens> or+    <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+    .+    See "Network.AWS.SWF" and the <http://docs.aws.amazon.com/amazonswf/latest/apireference/Welcome.html AWS API Reference>+    to get started.  source-repository head     type:     git@@ -73,9 +89,40 @@         , Network.AWS.SWF.StartWorkflowExecution         , Network.AWS.SWF.TerminateWorkflowExecution         , Network.AWS.SWF.Types+        , Network.AWS.SWF.Waiters      other-modules:+          Network.AWS.SWF.Types.Product+        , Network.AWS.SWF.Types.Sum      build-depends:-          amazonka-core == 0.3.6.*+          amazonka-core == 1.0.0.*         , base          >= 4.7     && < 5++test-suite amazonka-swf-test+    type:              exitcode-stdio-1.0+    default-language:  Haskell2010+    hs-source-dirs:    test+    main-is:           Main.hs++    ghc-options:       -Wall -threaded++    -- This is not comprehensive if modules have manually been added.+    -- It exists to ensure cabal 'somewhat' detects test module changes.+    other-modules:+          Test.AWS.SWF+        , Test.AWS.Gen.SWF+        , Test.AWS.SWF.Internal++    build-depends:+          amazonka-core == 1.0.0+        , amazonka-test == 1.0.0+        , amazonka-swf == 1.0.0+        , base+        , bytestring+        , lens+        , tasty+        , tasty-hunit+        , text+        , time+        , unordered-containers
gen/Network/AWS/SWF.hs view
@@ -1,88 +1,1075 @@--- Module      : Network.AWS.SWF--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental--- Portability : non-portable (GHC extensions)------ Derived from AWS service descriptions, licensed under Apache 2.0.---- | Amazon Simple Workflow Service (Amazon SWF) makes it easy to build--- applications that coordinate work across distributed components. In Amazon--- SWF, a task represents a logical unit of work that is performed by a--- component of your application. Coordinating tasks across the application--- involves managing intertask dependencies, scheduling, and concurrency in--- accordance with the logical flow of the application. Amazon SWF gives you--- full control over implementing tasks and coordinating them without worrying--- about underlying complexities such as tracking their progress and maintaining--- their state.-module Network.AWS.SWF-    ( module Network.AWS.SWF.CountClosedWorkflowExecutions-    , module Network.AWS.SWF.CountOpenWorkflowExecutions-    , module Network.AWS.SWF.CountPendingActivityTasks-    , module Network.AWS.SWF.CountPendingDecisionTasks-    , module Network.AWS.SWF.DeprecateActivityType-    , module Network.AWS.SWF.DeprecateDomain-    , module Network.AWS.SWF.DeprecateWorkflowType-    , module Network.AWS.SWF.DescribeActivityType-    , module Network.AWS.SWF.DescribeDomain-    , module Network.AWS.SWF.DescribeWorkflowExecution-    , module Network.AWS.SWF.DescribeWorkflowType-    , module Network.AWS.SWF.GetWorkflowExecutionHistory-    , module Network.AWS.SWF.ListActivityTypes-    , module Network.AWS.SWF.ListClosedWorkflowExecutions-    , module Network.AWS.SWF.ListDomains-    , module Network.AWS.SWF.ListOpenWorkflowExecutions-    , module Network.AWS.SWF.ListWorkflowTypes-    , module Network.AWS.SWF.PollForActivityTask-    , module Network.AWS.SWF.PollForDecisionTask-    , module Network.AWS.SWF.RecordActivityTaskHeartbeat-    , module Network.AWS.SWF.RegisterActivityType-    , module Network.AWS.SWF.RegisterDomain-    , module Network.AWS.SWF.RegisterWorkflowType-    , module Network.AWS.SWF.RequestCancelWorkflowExecution-    , module Network.AWS.SWF.RespondActivityTaskCanceled-    , module Network.AWS.SWF.RespondActivityTaskCompleted-    , module Network.AWS.SWF.RespondActivityTaskFailed-    , module Network.AWS.SWF.RespondDecisionTaskCompleted-    , module Network.AWS.SWF.SignalWorkflowExecution-    , module Network.AWS.SWF.StartWorkflowExecution-    , module Network.AWS.SWF.TerminateWorkflowExecution-    , module Network.AWS.SWF.Types-    ) where--import Network.AWS.SWF.CountClosedWorkflowExecutions-import Network.AWS.SWF.CountOpenWorkflowExecutions-import Network.AWS.SWF.CountPendingActivityTasks-import Network.AWS.SWF.CountPendingDecisionTasks-import Network.AWS.SWF.DeprecateActivityType-import Network.AWS.SWF.DeprecateDomain-import Network.AWS.SWF.DeprecateWorkflowType-import Network.AWS.SWF.DescribeActivityType-import Network.AWS.SWF.DescribeDomain-import Network.AWS.SWF.DescribeWorkflowExecution-import Network.AWS.SWF.DescribeWorkflowType-import Network.AWS.SWF.GetWorkflowExecutionHistory-import Network.AWS.SWF.ListActivityTypes-import Network.AWS.SWF.ListClosedWorkflowExecutions-import Network.AWS.SWF.ListDomains-import Network.AWS.SWF.ListOpenWorkflowExecutions-import Network.AWS.SWF.ListWorkflowTypes-import Network.AWS.SWF.PollForActivityTask-import Network.AWS.SWF.PollForDecisionTask-import Network.AWS.SWF.RecordActivityTaskHeartbeat-import Network.AWS.SWF.RegisterActivityType-import Network.AWS.SWF.RegisterDomain-import Network.AWS.SWF.RegisterWorkflowType-import Network.AWS.SWF.RequestCancelWorkflowExecution-import Network.AWS.SWF.RespondActivityTaskCanceled-import Network.AWS.SWF.RespondActivityTaskCompleted-import Network.AWS.SWF.RespondActivityTaskFailed-import Network.AWS.SWF.RespondDecisionTaskCompleted-import Network.AWS.SWF.SignalWorkflowExecution-import Network.AWS.SWF.StartWorkflowExecution-import Network.AWS.SWF.TerminateWorkflowExecution-import Network.AWS.SWF.Types+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.SWF+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Amazon Simple Workflow Service+--+-- The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build+-- applications that use Amazon\'s cloud to coordinate work across+-- distributed components. In Amazon SWF, a /task/ represents a logical+-- unit of work that is performed by a component of your workflow.+-- Coordinating tasks in a workflow involves managing intertask+-- dependencies, scheduling, and concurrency in accordance with the logical+-- flow of the application.+--+-- Amazon SWF gives you full control over implementing tasks and+-- coordinating them without worrying about underlying complexities such as+-- tracking their progress and maintaining their state.+--+-- This documentation serves as reference only. For a broader overview of+-- the Amazon SWF programming model, see the+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/Welcome.html AWS API Reference>+module Network.AWS.SWF+    (+    -- * Service+      SWF++    -- * Errors+    -- $errors++    -- ** LimitExceededFault+    , _LimitExceededFault++    -- ** WorkflowExecutionAlreadyStartedFault+    , _WorkflowExecutionAlreadyStartedFault++    -- ** DomainAlreadyExistsFault+    , _DomainAlreadyExistsFault++    -- ** UnknownResourceFault+    , _UnknownResourceFault++    -- ** OperationNotPermittedFault+    , _OperationNotPermittedFault++    -- ** DefaultUndefinedFault+    , _DefaultUndefinedFault++    -- ** TypeDeprecatedFault+    , _TypeDeprecatedFault++    -- ** TypeAlreadyExistsFault+    , _TypeAlreadyExistsFault++    -- ** DomainDeprecatedFault+    , _DomainDeprecatedFault++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** ListActivityTypes (Paginated)+    , module Network.AWS.SWF.ListActivityTypes++    -- ** ListOpenWorkflowExecutions (Paginated)+    , module Network.AWS.SWF.ListOpenWorkflowExecutions++    -- ** RegisterActivityType+    , module Network.AWS.SWF.RegisterActivityType++    -- ** CountPendingActivityTasks+    , module Network.AWS.SWF.CountPendingActivityTasks++    -- ** RegisterWorkflowType+    , module Network.AWS.SWF.RegisterWorkflowType++    -- ** RespondActivityTaskFailed+    , module Network.AWS.SWF.RespondActivityTaskFailed++    -- ** ListWorkflowTypes (Paginated)+    , module Network.AWS.SWF.ListWorkflowTypes++    -- ** CountOpenWorkflowExecutions+    , module Network.AWS.SWF.CountOpenWorkflowExecutions++    -- ** DescribeWorkflowType+    , module Network.AWS.SWF.DescribeWorkflowType++    -- ** RequestCancelWorkflowExecution+    , module Network.AWS.SWF.RequestCancelWorkflowExecution++    -- ** DeprecateWorkflowType+    , module Network.AWS.SWF.DeprecateWorkflowType++    -- ** RespondDecisionTaskCompleted+    , module Network.AWS.SWF.RespondDecisionTaskCompleted++    -- ** RegisterDomain+    , module Network.AWS.SWF.RegisterDomain++    -- ** DescribeWorkflowExecution+    , module Network.AWS.SWF.DescribeWorkflowExecution++    -- ** PollForActivityTask+    , module Network.AWS.SWF.PollForActivityTask++    -- ** RespondActivityTaskCompleted+    , module Network.AWS.SWF.RespondActivityTaskCompleted++    -- ** SignalWorkflowExecution+    , module Network.AWS.SWF.SignalWorkflowExecution++    -- ** CountPendingDecisionTasks+    , module Network.AWS.SWF.CountPendingDecisionTasks++    -- ** ListClosedWorkflowExecutions (Paginated)+    , module Network.AWS.SWF.ListClosedWorkflowExecutions++    -- ** RecordActivityTaskHeartbeat+    , module Network.AWS.SWF.RecordActivityTaskHeartbeat++    -- ** DescribeDomain+    , module Network.AWS.SWF.DescribeDomain++    -- ** DeprecateDomain+    , module Network.AWS.SWF.DeprecateDomain++    -- ** GetWorkflowExecutionHistory (Paginated)+    , module Network.AWS.SWF.GetWorkflowExecutionHistory++    -- ** DescribeActivityType+    , module Network.AWS.SWF.DescribeActivityType++    -- ** DeprecateActivityType+    , module Network.AWS.SWF.DeprecateActivityType++    -- ** TerminateWorkflowExecution+    , module Network.AWS.SWF.TerminateWorkflowExecution++    -- ** CountClosedWorkflowExecutions+    , module Network.AWS.SWF.CountClosedWorkflowExecutions++    -- ** RespondActivityTaskCanceled+    , module Network.AWS.SWF.RespondActivityTaskCanceled++    -- ** ListDomains (Paginated)+    , module Network.AWS.SWF.ListDomains++    -- ** StartWorkflowExecution+    , module Network.AWS.SWF.StartWorkflowExecution++    -- ** PollForDecisionTask (Paginated)+    , module Network.AWS.SWF.PollForDecisionTask++    -- * Types++    -- ** ActivityTaskTimeoutType+    , ActivityTaskTimeoutType (..)++    -- ** CancelTimerFailedCause+    , CancelTimerFailedCause (..)++    -- ** CancelWorkflowExecutionFailedCause+    , CancelWorkflowExecutionFailedCause (..)++    -- ** ChildPolicy+    , ChildPolicy (..)++    -- ** CloseStatus+    , CloseStatus (..)++    -- ** CompleteWorkflowExecutionFailedCause+    , CompleteWorkflowExecutionFailedCause (..)++    -- ** ContinueAsNewWorkflowExecutionFailedCause+    , ContinueAsNewWorkflowExecutionFailedCause (..)++    -- ** DecisionTaskTimeoutType+    , DecisionTaskTimeoutType (..)++    -- ** DecisionType+    , DecisionType (..)++    -- ** EventType+    , EventType (..)++    -- ** ExecutionStatus+    , ExecutionStatus (..)++    -- ** FailWorkflowExecutionFailedCause+    , FailWorkflowExecutionFailedCause (..)++    -- ** LambdaFunctionTimeoutType+    , LambdaFunctionTimeoutType (..)++    -- ** RecordMarkerFailedCause+    , RecordMarkerFailedCause (..)++    -- ** RegistrationStatus+    , RegistrationStatus (..)++    -- ** RequestCancelActivityTaskFailedCause+    , RequestCancelActivityTaskFailedCause (..)++    -- ** RequestCancelExternalWorkflowExecutionFailedCause+    , RequestCancelExternalWorkflowExecutionFailedCause (..)++    -- ** ScheduleActivityTaskFailedCause+    , ScheduleActivityTaskFailedCause (..)++    -- ** ScheduleLambdaFunctionFailedCause+    , ScheduleLambdaFunctionFailedCause (..)++    -- ** SignalExternalWorkflowExecutionFailedCause+    , SignalExternalWorkflowExecutionFailedCause (..)++    -- ** StartChildWorkflowExecutionFailedCause+    , StartChildWorkflowExecutionFailedCause (..)++    -- ** StartLambdaFunctionFailedCause+    , StartLambdaFunctionFailedCause (..)++    -- ** StartTimerFailedCause+    , StartTimerFailedCause (..)++    -- ** WorkflowExecutionCancelRequestedCause+    , WorkflowExecutionCancelRequestedCause (..)++    -- ** WorkflowExecutionTerminatedCause+    , WorkflowExecutionTerminatedCause (..)++    -- ** WorkflowExecutionTimeoutType+    , WorkflowExecutionTimeoutType (..)++    -- ** ActivityTaskCancelRequestedEventAttributes+    , ActivityTaskCancelRequestedEventAttributes+    , activityTaskCancelRequestedEventAttributes+    , atcreaDecisionTaskCompletedEventId+    , atcreaActivityId++    -- ** ActivityTaskCanceledEventAttributes+    , ActivityTaskCanceledEventAttributes+    , activityTaskCanceledEventAttributes+    , aLatestCancelRequestedEventId+    , aDetails+    , aScheduledEventId+    , aStartedEventId++    -- ** ActivityTaskCompletedEventAttributes+    , ActivityTaskCompletedEventAttributes+    , activityTaskCompletedEventAttributes+    , atceaResult+    , atceaScheduledEventId+    , atceaStartedEventId++    -- ** ActivityTaskFailedEventAttributes+    , ActivityTaskFailedEventAttributes+    , activityTaskFailedEventAttributes+    , atfeaReason+    , atfeaDetails+    , atfeaScheduledEventId+    , atfeaStartedEventId++    -- ** ActivityTaskScheduledEventAttributes+    , ActivityTaskScheduledEventAttributes+    , activityTaskScheduledEventAttributes+    , atseaControl+    , atseaScheduleToCloseTimeout+    , atseaHeartbeatTimeout+    , atseaInput+    , atseaTaskPriority+    , atseaScheduleToStartTimeout+    , atseaStartToCloseTimeout+    , atseaActivityType+    , atseaActivityId+    , atseaTaskList+    , atseaDecisionTaskCompletedEventId++    -- ** ActivityTaskStartedEventAttributes+    , ActivityTaskStartedEventAttributes+    , activityTaskStartedEventAttributes+    , atseaIdentity+    , atseaScheduledEventId++    -- ** ActivityTaskTimedOutEventAttributes+    , ActivityTaskTimedOutEventAttributes+    , activityTaskTimedOutEventAttributes+    , attoeaDetails+    , attoeaTimeoutType+    , attoeaScheduledEventId+    , attoeaStartedEventId++    -- ** ActivityType+    , ActivityType+    , activityType+    , atName+    , atVersion++    -- ** ActivityTypeConfiguration+    , ActivityTypeConfiguration+    , activityTypeConfiguration+    , atcDefaultTaskScheduleToStartTimeout+    , atcDefaultTaskList+    , atcDefaultTaskPriority+    , atcDefaultTaskHeartbeatTimeout+    , atcDefaultTaskScheduleToCloseTimeout+    , atcDefaultTaskStartToCloseTimeout++    -- ** ActivityTypeInfo+    , ActivityTypeInfo+    , activityTypeInfo+    , atiDeprecationDate+    , atiDescription+    , atiActivityType+    , atiStatus+    , atiCreationDate++    -- ** CancelTimerDecisionAttributes+    , CancelTimerDecisionAttributes+    , cancelTimerDecisionAttributes+    , ctdaTimerId++    -- ** CancelTimerFailedEventAttributes+    , CancelTimerFailedEventAttributes+    , cancelTimerFailedEventAttributes+    , ctfeaTimerId+    , ctfeaCause+    , ctfeaDecisionTaskCompletedEventId++    -- ** CancelWorkflowExecutionDecisionAttributes+    , CancelWorkflowExecutionDecisionAttributes+    , cancelWorkflowExecutionDecisionAttributes+    , cwedaDetails++    -- ** CancelWorkflowExecutionFailedEventAttributes+    , CancelWorkflowExecutionFailedEventAttributes+    , cancelWorkflowExecutionFailedEventAttributes+    , cCause+    , cDecisionTaskCompletedEventId++    -- ** ChildWorkflowExecutionCanceledEventAttributes+    , ChildWorkflowExecutionCanceledEventAttributes+    , childWorkflowExecutionCanceledEventAttributes+    , cDetails+    , cWorkflowExecution+    , cWorkflowType+    , cInitiatedEventId+    , cStartedEventId++    -- ** ChildWorkflowExecutionCompletedEventAttributes+    , ChildWorkflowExecutionCompletedEventAttributes+    , childWorkflowExecutionCompletedEventAttributes+    , cweceaResult+    , cweceaWorkflowExecution+    , cweceaWorkflowType+    , cweceaInitiatedEventId+    , cweceaStartedEventId++    -- ** ChildWorkflowExecutionFailedEventAttributes+    , ChildWorkflowExecutionFailedEventAttributes+    , childWorkflowExecutionFailedEventAttributes+    , cwefeaReason+    , cwefeaDetails+    , cwefeaWorkflowExecution+    , cwefeaWorkflowType+    , cwefeaInitiatedEventId+    , cwefeaStartedEventId++    -- ** ChildWorkflowExecutionStartedEventAttributes+    , ChildWorkflowExecutionStartedEventAttributes+    , childWorkflowExecutionStartedEventAttributes+    , cweseaWorkflowExecution+    , cweseaWorkflowType+    , cweseaInitiatedEventId++    -- ** ChildWorkflowExecutionTerminatedEventAttributes+    , ChildWorkflowExecutionTerminatedEventAttributes+    , childWorkflowExecutionTerminatedEventAttributes+    , cweteaWorkflowExecution+    , cweteaWorkflowType+    , cweteaInitiatedEventId+    , cweteaStartedEventId++    -- ** ChildWorkflowExecutionTimedOutEventAttributes+    , ChildWorkflowExecutionTimedOutEventAttributes+    , childWorkflowExecutionTimedOutEventAttributes+    , cwetoeaWorkflowExecution+    , cwetoeaWorkflowType+    , cwetoeaTimeoutType+    , cwetoeaInitiatedEventId+    , cwetoeaStartedEventId++    -- ** CloseStatusFilter+    , CloseStatusFilter+    , closeStatusFilter+    , csfStatus++    -- ** CompleteWorkflowExecutionDecisionAttributes+    , CompleteWorkflowExecutionDecisionAttributes+    , completeWorkflowExecutionDecisionAttributes+    , cwedaResult++    -- ** CompleteWorkflowExecutionFailedEventAttributes+    , CompleteWorkflowExecutionFailedEventAttributes+    , completeWorkflowExecutionFailedEventAttributes+    , cwefeaCause+    , cwefeaDecisionTaskCompletedEventId++    -- ** ContinueAsNewWorkflowExecutionDecisionAttributes+    , ContinueAsNewWorkflowExecutionDecisionAttributes+    , continueAsNewWorkflowExecutionDecisionAttributes+    , canwedaTagList+    , canwedaTaskStartToCloseTimeout+    , canwedaLambdaRole+    , canwedaInput+    , canwedaWorkflowTypeVersion+    , canwedaExecutionStartToCloseTimeout+    , canwedaTaskList+    , canwedaTaskPriority+    , canwedaChildPolicy++    -- ** ContinueAsNewWorkflowExecutionFailedEventAttributes+    , ContinueAsNewWorkflowExecutionFailedEventAttributes+    , continueAsNewWorkflowExecutionFailedEventAttributes+    , canwefeaCause+    , canwefeaDecisionTaskCompletedEventId++    -- ** Decision+    , Decision+    , decision+    , dRequestCancelExternalWorkflowExecutionDecisionAttributes+    , dScheduleActivityTaskDecisionAttributes+    , dSignalExternalWorkflowExecutionDecisionAttributes+    , dStartTimerDecisionAttributes+    , dRecordMarkerDecisionAttributes+    , dFailWorkflowExecutionDecisionAttributes+    , dStartChildWorkflowExecutionDecisionAttributes+    , dScheduleLambdaFunctionDecisionAttributes+    , dCompleteWorkflowExecutionDecisionAttributes+    , dRequestCancelActivityTaskDecisionAttributes+    , dCancelWorkflowExecutionDecisionAttributes+    , dCancelTimerDecisionAttributes+    , dContinueAsNewWorkflowExecutionDecisionAttributes+    , dDecisionType++    -- ** DecisionTaskCompletedEventAttributes+    , DecisionTaskCompletedEventAttributes+    , decisionTaskCompletedEventAttributes+    , dtceaExecutionContext+    , dtceaScheduledEventId+    , dtceaStartedEventId++    -- ** DecisionTaskScheduledEventAttributes+    , DecisionTaskScheduledEventAttributes+    , decisionTaskScheduledEventAttributes+    , dtseaTaskPriority+    , dtseaStartToCloseTimeout+    , dtseaTaskList++    -- ** DecisionTaskStartedEventAttributes+    , DecisionTaskStartedEventAttributes+    , decisionTaskStartedEventAttributes+    , dtseaIdentity+    , dtseaScheduledEventId++    -- ** DecisionTaskTimedOutEventAttributes+    , DecisionTaskTimedOutEventAttributes+    , decisionTaskTimedOutEventAttributes+    , dttoeaTimeoutType+    , dttoeaScheduledEventId+    , dttoeaStartedEventId++    -- ** DomainConfiguration+    , DomainConfiguration+    , domainConfiguration+    , dcWorkflowExecutionRetentionPeriodInDays++    -- ** DomainInfo+    , DomainInfo+    , domainInfo+    , diDescription+    , diName+    , diStatus++    -- ** ExecutionTimeFilter+    , ExecutionTimeFilter+    , executionTimeFilter+    , etfLatestDate+    , etfOldestDate++    -- ** ExternalWorkflowExecutionCancelRequestedEventAttributes+    , ExternalWorkflowExecutionCancelRequestedEventAttributes+    , externalWorkflowExecutionCancelRequestedEventAttributes+    , ewecreaWorkflowExecution+    , ewecreaInitiatedEventId++    -- ** ExternalWorkflowExecutionSignaledEventAttributes+    , ExternalWorkflowExecutionSignaledEventAttributes+    , externalWorkflowExecutionSignaledEventAttributes+    , eweseaWorkflowExecution+    , eweseaInitiatedEventId++    -- ** FailWorkflowExecutionDecisionAttributes+    , FailWorkflowExecutionDecisionAttributes+    , failWorkflowExecutionDecisionAttributes+    , fwedaReason+    , fwedaDetails++    -- ** FailWorkflowExecutionFailedEventAttributes+    , FailWorkflowExecutionFailedEventAttributes+    , failWorkflowExecutionFailedEventAttributes+    , fwefeaCause+    , fwefeaDecisionTaskCompletedEventId++    -- ** HistoryEvent+    , HistoryEvent+    , historyEvent+    , heWorkflowExecutionCancelRequestedEventAttributes+    , heDecisionTaskScheduledEventAttributes+    , heStartTimerFailedEventAttributes+    , heLambdaFunctionStartedEventAttributes+    , heRecordMarkerFailedEventAttributes+    , heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , heWorkflowExecutionCompletedEventAttributes+    , heActivityTaskScheduledEventAttributes+    , heChildWorkflowExecutionCompletedEventAttributes+    , heScheduleActivityTaskFailedEventAttributes+    , heMarkerRecordedEventAttributes+    , heScheduleLambdaFunctionFailedEventAttributes+    , heCompleteWorkflowExecutionFailedEventAttributes+    , heRequestCancelExternalWorkflowExecutionFailedEventAttributes+    , heLambdaFunctionCompletedEventAttributes+    , heTimerCanceledEventAttributes+    , heWorkflowExecutionStartedEventAttributes+    , heActivityTaskCompletedEventAttributes+    , heChildWorkflowExecutionStartedEventAttributes+    , heDecisionTaskTimedOutEventAttributes+    , heCancelTimerFailedEventAttributes+    , heActivityTaskTimedOutEventAttributes+    , heActivityTaskCanceledEventAttributes+    , heChildWorkflowExecutionCanceledEventAttributes+    , heDecisionTaskStartedEventAttributes+    , heCancelWorkflowExecutionFailedEventAttributes+    , heLambdaFunctionScheduledEventAttributes+    , heChildWorkflowExecutionTimedOutEventAttributes+    , heRequestCancelActivityTaskFailedEventAttributes+    , heWorkflowExecutionTerminatedEventAttributes+    , heStartChildWorkflowExecutionInitiatedEventAttributes+    , heActivityTaskStartedEventAttributes+    , heSignalExternalWorkflowExecutionFailedEventAttributes+    , heTimerStartedEventAttributes+    , heWorkflowExecutionTimedOutEventAttributes+    , heActivityTaskCancelRequestedEventAttributes+    , heStartLambdaFunctionFailedEventAttributes+    , heChildWorkflowExecutionTerminatedEventAttributes+    , heLambdaFunctionFailedEventAttributes+    , heWorkflowExecutionCanceledEventAttributes+    , heWorkflowExecutionSignaledEventAttributes+    , heActivityTaskFailedEventAttributes+    , heExternalWorkflowExecutionSignaledEventAttributes+    , heTimerFiredEventAttributes+    , heFailWorkflowExecutionFailedEventAttributes+    , heChildWorkflowExecutionFailedEventAttributes+    , heDecisionTaskCompletedEventAttributes+    , heStartChildWorkflowExecutionFailedEventAttributes+    , heSignalExternalWorkflowExecutionInitiatedEventAttributes+    , heContinueAsNewWorkflowExecutionFailedEventAttributes+    , heWorkflowExecutionFailedEventAttributes+    , heWorkflowExecutionContinuedAsNewEventAttributes+    , heExternalWorkflowExecutionCancelRequestedEventAttributes+    , heLambdaFunctionTimedOutEventAttributes+    , heEventTimestamp+    , heEventType+    , heEventId++    -- ** LambdaFunctionCompletedEventAttributes+    , LambdaFunctionCompletedEventAttributes+    , lambdaFunctionCompletedEventAttributes+    , lfceaResult+    , lfceaScheduledEventId+    , lfceaStartedEventId++    -- ** LambdaFunctionFailedEventAttributes+    , LambdaFunctionFailedEventAttributes+    , lambdaFunctionFailedEventAttributes+    , lffeaReason+    , lffeaDetails+    , lffeaScheduledEventId+    , lffeaStartedEventId++    -- ** LambdaFunctionScheduledEventAttributes+    , LambdaFunctionScheduledEventAttributes+    , lambdaFunctionScheduledEventAttributes+    , lfseaInput+    , lfseaStartToCloseTimeout+    , lfseaId+    , lfseaName+    , lfseaDecisionTaskCompletedEventId++    -- ** LambdaFunctionStartedEventAttributes+    , LambdaFunctionStartedEventAttributes+    , lambdaFunctionStartedEventAttributes+    , lfseaScheduledEventId++    -- ** LambdaFunctionTimedOutEventAttributes+    , LambdaFunctionTimedOutEventAttributes+    , lambdaFunctionTimedOutEventAttributes+    , lftoeaTimeoutType+    , lftoeaScheduledEventId+    , lftoeaStartedEventId++    -- ** MarkerRecordedEventAttributes+    , MarkerRecordedEventAttributes+    , markerRecordedEventAttributes+    , mreaDetails+    , mreaMarkerName+    , mreaDecisionTaskCompletedEventId++    -- ** PendingTaskCount+    , PendingTaskCount+    , pendingTaskCount+    , ptcTruncated+    , ptcCount++    -- ** RecordMarkerDecisionAttributes+    , RecordMarkerDecisionAttributes+    , recordMarkerDecisionAttributes+    , rmdaDetails+    , rmdaMarkerName++    -- ** RecordMarkerFailedEventAttributes+    , RecordMarkerFailedEventAttributes+    , recordMarkerFailedEventAttributes+    , rmfeaMarkerName+    , rmfeaCause+    , rmfeaDecisionTaskCompletedEventId++    -- ** RequestCancelActivityTaskDecisionAttributes+    , RequestCancelActivityTaskDecisionAttributes+    , requestCancelActivityTaskDecisionAttributes+    , rcatdaActivityId++    -- ** RequestCancelActivityTaskFailedEventAttributes+    , RequestCancelActivityTaskFailedEventAttributes+    , requestCancelActivityTaskFailedEventAttributes+    , rcatfeaActivityId+    , rcatfeaCause+    , rcatfeaDecisionTaskCompletedEventId++    -- ** RequestCancelExternalWorkflowExecutionDecisionAttributes+    , RequestCancelExternalWorkflowExecutionDecisionAttributes+    , requestCancelExternalWorkflowExecutionDecisionAttributes+    , rcewedaControl+    , rcewedaRunId+    , rcewedaWorkflowId++    -- ** RequestCancelExternalWorkflowExecutionFailedEventAttributes+    , RequestCancelExternalWorkflowExecutionFailedEventAttributes+    , requestCancelExternalWorkflowExecutionFailedEventAttributes+    , rcewefeaControl+    , rcewefeaRunId+    , rcewefeaWorkflowId+    , rcewefeaCause+    , rcewefeaInitiatedEventId+    , rcewefeaDecisionTaskCompletedEventId++    -- ** RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , requestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , rceweieaControl+    , rceweieaRunId+    , rceweieaWorkflowId+    , rceweieaDecisionTaskCompletedEventId++    -- ** ScheduleActivityTaskDecisionAttributes+    , ScheduleActivityTaskDecisionAttributes+    , scheduleActivityTaskDecisionAttributes+    , satdaControl+    , satdaScheduleToCloseTimeout+    , satdaHeartbeatTimeout+    , satdaInput+    , satdaTaskList+    , satdaTaskPriority+    , satdaScheduleToStartTimeout+    , satdaStartToCloseTimeout+    , satdaActivityType+    , satdaActivityId++    -- ** ScheduleActivityTaskFailedEventAttributes+    , ScheduleActivityTaskFailedEventAttributes+    , scheduleActivityTaskFailedEventAttributes+    , satfeaActivityType+    , satfeaActivityId+    , satfeaCause+    , satfeaDecisionTaskCompletedEventId++    -- ** ScheduleLambdaFunctionDecisionAttributes+    , ScheduleLambdaFunctionDecisionAttributes+    , scheduleLambdaFunctionDecisionAttributes+    , slfdaInput+    , slfdaStartToCloseTimeout+    , slfdaId+    , slfdaName++    -- ** ScheduleLambdaFunctionFailedEventAttributes+    , ScheduleLambdaFunctionFailedEventAttributes+    , scheduleLambdaFunctionFailedEventAttributes+    , slffeaId+    , slffeaName+    , slffeaCause+    , slffeaDecisionTaskCompletedEventId++    -- ** SignalExternalWorkflowExecutionDecisionAttributes+    , SignalExternalWorkflowExecutionDecisionAttributes+    , signalExternalWorkflowExecutionDecisionAttributes+    , sewedaControl+    , sewedaInput+    , sewedaRunId+    , sewedaWorkflowId+    , sewedaSignalName++    -- ** SignalExternalWorkflowExecutionFailedEventAttributes+    , SignalExternalWorkflowExecutionFailedEventAttributes+    , signalExternalWorkflowExecutionFailedEventAttributes+    , sewefeaControl+    , sewefeaRunId+    , sewefeaWorkflowId+    , sewefeaCause+    , sewefeaInitiatedEventId+    , sewefeaDecisionTaskCompletedEventId++    -- ** SignalExternalWorkflowExecutionInitiatedEventAttributes+    , SignalExternalWorkflowExecutionInitiatedEventAttributes+    , signalExternalWorkflowExecutionInitiatedEventAttributes+    , seweieaControl+    , seweieaInput+    , seweieaRunId+    , seweieaWorkflowId+    , seweieaSignalName+    , seweieaDecisionTaskCompletedEventId++    -- ** StartChildWorkflowExecutionDecisionAttributes+    , StartChildWorkflowExecutionDecisionAttributes+    , startChildWorkflowExecutionDecisionAttributes+    , scwedaControl+    , scwedaTagList+    , scwedaTaskStartToCloseTimeout+    , scwedaLambdaRole+    , scwedaInput+    , scwedaExecutionStartToCloseTimeout+    , scwedaTaskList+    , scwedaTaskPriority+    , scwedaChildPolicy+    , scwedaWorkflowType+    , scwedaWorkflowId++    -- ** StartChildWorkflowExecutionFailedEventAttributes+    , StartChildWorkflowExecutionFailedEventAttributes+    , startChildWorkflowExecutionFailedEventAttributes+    , scwefeaControl+    , scwefeaWorkflowType+    , scwefeaCause+    , scwefeaWorkflowId+    , scwefeaInitiatedEventId+    , scwefeaDecisionTaskCompletedEventId++    -- ** StartChildWorkflowExecutionInitiatedEventAttributes+    , StartChildWorkflowExecutionInitiatedEventAttributes+    , startChildWorkflowExecutionInitiatedEventAttributes+    , scweieaControl+    , scweieaTagList+    , scweieaTaskStartToCloseTimeout+    , scweieaLambdaRole+    , scweieaInput+    , scweieaExecutionStartToCloseTimeout+    , scweieaTaskPriority+    , scweieaWorkflowId+    , scweieaWorkflowType+    , scweieaTaskList+    , scweieaDecisionTaskCompletedEventId+    , scweieaChildPolicy++    -- ** StartLambdaFunctionFailedEventAttributes+    , StartLambdaFunctionFailedEventAttributes+    , startLambdaFunctionFailedEventAttributes+    , sScheduledEventId+    , sCause+    , sMessage++    -- ** StartTimerDecisionAttributes+    , StartTimerDecisionAttributes+    , startTimerDecisionAttributes+    , stdaControl+    , stdaTimerId+    , stdaStartToFireTimeout++    -- ** StartTimerFailedEventAttributes+    , StartTimerFailedEventAttributes+    , startTimerFailedEventAttributes+    , stfeaTimerId+    , stfeaCause+    , stfeaDecisionTaskCompletedEventId++    -- ** TagFilter+    , TagFilter+    , tagFilter+    , tfTag++    -- ** TaskList+    , TaskList+    , taskList+    , tlName++    -- ** TimerCanceledEventAttributes+    , TimerCanceledEventAttributes+    , timerCanceledEventAttributes+    , tceaTimerId+    , tceaStartedEventId+    , tceaDecisionTaskCompletedEventId++    -- ** TimerFiredEventAttributes+    , TimerFiredEventAttributes+    , timerFiredEventAttributes+    , tfeaTimerId+    , tfeaStartedEventId++    -- ** TimerStartedEventAttributes+    , TimerStartedEventAttributes+    , timerStartedEventAttributes+    , tseaControl+    , tseaTimerId+    , tseaStartToFireTimeout+    , tseaDecisionTaskCompletedEventId++    -- ** WorkflowExecution+    , WorkflowExecution+    , workflowExecution+    , weWorkflowId+    , weRunId++    -- ** WorkflowExecutionCancelRequestedEventAttributes+    , WorkflowExecutionCancelRequestedEventAttributes+    , workflowExecutionCancelRequestedEventAttributes+    , wecreaExternalWorkflowExecution+    , wecreaExternalInitiatedEventId+    , wecreaCause++    -- ** WorkflowExecutionCanceledEventAttributes+    , WorkflowExecutionCanceledEventAttributes+    , workflowExecutionCanceledEventAttributes+    , wDetails+    , wDecisionTaskCompletedEventId++    -- ** WorkflowExecutionCompletedEventAttributes+    , WorkflowExecutionCompletedEventAttributes+    , workflowExecutionCompletedEventAttributes+    , weceaResult+    , weceaDecisionTaskCompletedEventId++    -- ** WorkflowExecutionConfiguration+    , WorkflowExecutionConfiguration+    , workflowExecutionConfiguration+    , wecLambdaRole+    , wecTaskPriority+    , wecTaskStartToCloseTimeout+    , wecExecutionStartToCloseTimeout+    , wecTaskList+    , wecChildPolicy++    -- ** WorkflowExecutionContinuedAsNewEventAttributes+    , WorkflowExecutionContinuedAsNewEventAttributes+    , workflowExecutionContinuedAsNewEventAttributes+    , wecaneaTagList+    , wecaneaTaskStartToCloseTimeout+    , wecaneaLambdaRole+    , wecaneaInput+    , wecaneaExecutionStartToCloseTimeout+    , wecaneaTaskPriority+    , wecaneaDecisionTaskCompletedEventId+    , wecaneaNewExecutionRunId+    , wecaneaTaskList+    , wecaneaChildPolicy+    , wecaneaWorkflowType++    -- ** WorkflowExecutionCount+    , WorkflowExecutionCount+    , workflowExecutionCount+    , wecTruncated+    , wecCount++    -- ** WorkflowExecutionFailedEventAttributes+    , WorkflowExecutionFailedEventAttributes+    , workflowExecutionFailedEventAttributes+    , wefeaReason+    , wefeaDetails+    , wefeaDecisionTaskCompletedEventId++    -- ** WorkflowExecutionFilter+    , WorkflowExecutionFilter+    , workflowExecutionFilter+    , wefWorkflowId++    -- ** WorkflowExecutionInfo+    , WorkflowExecutionInfo+    , workflowExecutionInfo+    , weiParent+    , weiTagList+    , weiCloseStatus+    , weiCloseTimestamp+    , weiCancelRequested+    , weiExecution+    , weiWorkflowType+    , weiStartTimestamp+    , weiExecutionStatus++    -- ** WorkflowExecutionInfos+    , WorkflowExecutionInfos+    , workflowExecutionInfos+    , weiNextPageToken+    , weiExecutionInfos++    -- ** WorkflowExecutionOpenCounts+    , WorkflowExecutionOpenCounts+    , workflowExecutionOpenCounts+    , weocOpenLambdaFunctions+    , weocOpenActivityTasks+    , weocOpenDecisionTasks+    , weocOpenTimers+    , weocOpenChildWorkflowExecutions++    -- ** WorkflowExecutionSignaledEventAttributes+    , WorkflowExecutionSignaledEventAttributes+    , workflowExecutionSignaledEventAttributes+    , wExternalWorkflowExecution+    , wExternalInitiatedEventId+    , wInput+    , wSignalName++    -- ** WorkflowExecutionStartedEventAttributes+    , WorkflowExecutionStartedEventAttributes+    , workflowExecutionStartedEventAttributes+    , weseaParentInitiatedEventId+    , weseaTagList+    , weseaTaskStartToCloseTimeout+    , weseaLambdaRole+    , weseaInput+    , weseaExecutionStartToCloseTimeout+    , weseaTaskPriority+    , weseaParentWorkflowExecution+    , weseaContinuedExecutionRunId+    , weseaChildPolicy+    , weseaTaskList+    , weseaWorkflowType++    -- ** WorkflowExecutionTerminatedEventAttributes+    , WorkflowExecutionTerminatedEventAttributes+    , workflowExecutionTerminatedEventAttributes+    , weteaCause+    , weteaReason+    , weteaDetails+    , weteaChildPolicy++    -- ** WorkflowExecutionTimedOutEventAttributes+    , WorkflowExecutionTimedOutEventAttributes+    , workflowExecutionTimedOutEventAttributes+    , wetoeaTimeoutType+    , wetoeaChildPolicy++    -- ** WorkflowType+    , WorkflowType+    , workflowType+    , wtName+    , wtVersion++    -- ** WorkflowTypeConfiguration+    , WorkflowTypeConfiguration+    , workflowTypeConfiguration+    , wtcDefaultLambdaRole+    , wtcDefaultChildPolicy+    , wtcDefaultTaskList+    , wtcDefaultTaskPriority+    , wtcDefaultExecutionStartToCloseTimeout+    , wtcDefaultTaskStartToCloseTimeout++    -- ** WorkflowTypeFilter+    , WorkflowTypeFilter+    , workflowTypeFilter+    , wtfVersion+    , wtfName++    -- ** WorkflowTypeInfo+    , WorkflowTypeInfo+    , workflowTypeInfo+    , wtiDeprecationDate+    , wtiDescription+    , wtiWorkflowType+    , wtiStatus+    , wtiCreationDate+    ) where++import           Network.AWS.SWF.CountClosedWorkflowExecutions+import           Network.AWS.SWF.CountOpenWorkflowExecutions+import           Network.AWS.SWF.CountPendingActivityTasks+import           Network.AWS.SWF.CountPendingDecisionTasks+import           Network.AWS.SWF.DeprecateActivityType+import           Network.AWS.SWF.DeprecateDomain+import           Network.AWS.SWF.DeprecateWorkflowType+import           Network.AWS.SWF.DescribeActivityType+import           Network.AWS.SWF.DescribeDomain+import           Network.AWS.SWF.DescribeWorkflowExecution+import           Network.AWS.SWF.DescribeWorkflowType+import           Network.AWS.SWF.GetWorkflowExecutionHistory+import           Network.AWS.SWF.ListActivityTypes+import           Network.AWS.SWF.ListClosedWorkflowExecutions+import           Network.AWS.SWF.ListDomains+import           Network.AWS.SWF.ListOpenWorkflowExecutions+import           Network.AWS.SWF.ListWorkflowTypes+import           Network.AWS.SWF.PollForActivityTask+import           Network.AWS.SWF.PollForDecisionTask+import           Network.AWS.SWF.RecordActivityTaskHeartbeat+import           Network.AWS.SWF.RegisterActivityType+import           Network.AWS.SWF.RegisterDomain+import           Network.AWS.SWF.RegisterWorkflowType+import           Network.AWS.SWF.RequestCancelWorkflowExecution+import           Network.AWS.SWF.RespondActivityTaskCanceled+import           Network.AWS.SWF.RespondActivityTaskCompleted+import           Network.AWS.SWF.RespondActivityTaskFailed+import           Network.AWS.SWF.RespondDecisionTaskCompleted+import           Network.AWS.SWF.SignalWorkflowExecution+import           Network.AWS.SWF.StartWorkflowExecution+import           Network.AWS.SWF.TerminateWorkflowExecution+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Waiters++{- $errors+Error matchers are designed for use with the functions provided by+<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+This allows catching (and rethrowing) service specific errors returned+by 'SWF'.+-}++{- $operations+Some AWS operations return results that are incomplete and require subsequent+requests in order to obtain the entire result set. The process of sending+subsequent requests to continue where a previous request left off is called+pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+1000 objects at a time, and you must send subsequent requests with the+appropriate Marker in order to retrieve the next page of results.++Operations that have an 'AWSPager' instance can transparently perform subsequent+requests, correctly setting Markers and other request facets to iterate through+the entire result set of a truncated API operation. Operations which support+this have an additional note in the documentation.++Many operations have the ability to filter results on the server side. See the+individual operation parameters for details.+-}++{- $waiters+Waiters poll by repeatedly sending a request until some remote success condition+configured by the 'Wait' specification is fulfilled. The 'Wait' specification+determines how many attempts should be made, in addition to delay and retry strategies.+-}
gen/Network/AWS/SWF/CountClosedWorkflowExecutions.hs view
@@ -1,227 +1,210 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.CountClosedWorkflowExecutions--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the number of closed workflow executions within the given domain that--- meet the specified filtering criteria.+-- Returns the number of closed workflow executions within the given domain+-- that meet the specified filtering criteria. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'. 'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'. 'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.    If the caller does--- not have sufficient permissions to invoke the action, or the parameter values--- fall outside the specified constraints, the action fails. The associated--- event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagFilter.tag': String constraint. The key is+--         'swf:tagFilter.tag'.+--     -   'typeFilter.name': String constraint. The key is+--         'swf:typeFilter.name'.+--     -   'typeFilter.version': String constraint. The key is+--         'swf:typeFilter.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountClosedWorkflowExecutions.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountClosedWorkflowExecutions.html AWS API Reference> for CountClosedWorkflowExecutions. module Network.AWS.SWF.CountClosedWorkflowExecutions     (-    -- * Request-      CountClosedWorkflowExecutions-    -- ** Request constructor-    , countClosedWorkflowExecutions-    -- ** Request lenses+    -- * Creating a Request+      countClosedWorkflowExecutions+    , CountClosedWorkflowExecutions+    -- * Request Lenses     , ccweCloseStatusFilter-    , ccweCloseTimeFilter-    , ccweDomain     , ccweExecutionFilter-    , ccweStartTimeFilter-    , ccweTagFilter     , ccweTypeFilter+    , ccweCloseTimeFilter+    , ccweTagFilter+    , ccweStartTimeFilter+    , ccweDomain -    -- * Response-    , CountClosedWorkflowExecutionsResponse-    -- ** Response constructor-    , countClosedWorkflowExecutionsResponse-    -- ** Response lenses-    , ccwerCount-    , ccwerTruncated+    -- * Destructuring the Response+    , workflowExecutionCount+    , WorkflowExecutionCount+    -- * Response Lenses+    , wecTruncated+    , wecCount     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data CountClosedWorkflowExecutions = CountClosedWorkflowExecutions-    { _ccweCloseStatusFilter :: Maybe CloseStatusFilter-    , _ccweCloseTimeFilter   :: Maybe ExecutionTimeFilter-    , _ccweDomain            :: Text-    , _ccweExecutionFilter   :: Maybe WorkflowExecutionFilter-    , _ccweStartTimeFilter   :: Maybe ExecutionTimeFilter-    , _ccweTagFilter         :: Maybe TagFilter-    , _ccweTypeFilter        :: Maybe WorkflowTypeFilter-    } deriving (Eq, Read, Show)+-- | /See:/ 'countClosedWorkflowExecutions' smart constructor.+data CountClosedWorkflowExecutions = CountClosedWorkflowExecutions'+    { _ccweCloseStatusFilter :: !(Maybe CloseStatusFilter)+    , _ccweExecutionFilter   :: !(Maybe WorkflowExecutionFilter)+    , _ccweTypeFilter        :: !(Maybe WorkflowTypeFilter)+    , _ccweCloseTimeFilter   :: !(Maybe ExecutionTimeFilter)+    , _ccweTagFilter         :: !(Maybe TagFilter)+    , _ccweStartTimeFilter   :: !(Maybe ExecutionTimeFilter)+    , _ccweDomain            :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'CountClosedWorkflowExecutions' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'CountClosedWorkflowExecutions' with the minimum fields required to make a request. ----- * 'ccweCloseStatusFilter' @::@ 'Maybe' 'CloseStatusFilter'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ccweCloseTimeFilter' @::@ 'Maybe' 'ExecutionTimeFilter'+-- * 'ccweCloseStatusFilter' ----- * 'ccweDomain' @::@ 'Text'+-- * 'ccweExecutionFilter' ----- * 'ccweExecutionFilter' @::@ 'Maybe' 'WorkflowExecutionFilter'+-- * 'ccweTypeFilter' ----- * 'ccweStartTimeFilter' @::@ 'Maybe' 'ExecutionTimeFilter'+-- * 'ccweCloseTimeFilter' ----- * 'ccweTagFilter' @::@ 'Maybe' 'TagFilter'+-- * 'ccweTagFilter' ----- * 'ccweTypeFilter' @::@ 'Maybe' 'WorkflowTypeFilter'+-- * 'ccweStartTimeFilter' ---countClosedWorkflowExecutions :: Text -- ^ 'ccweDomain'-                              -> CountClosedWorkflowExecutions-countClosedWorkflowExecutions p1 = CountClosedWorkflowExecutions-    { _ccweDomain            = p1-    , _ccweStartTimeFilter   = Nothing-    , _ccweCloseTimeFilter   = Nothing-    , _ccweExecutionFilter   = Nothing-    , _ccweTypeFilter        = Nothing-    , _ccweTagFilter         = Nothing-    , _ccweCloseStatusFilter = Nothing+-- * 'ccweDomain'+countClosedWorkflowExecutions+    :: Text -- ^ 'ccweDomain'+    -> CountClosedWorkflowExecutions+countClosedWorkflowExecutions pDomain_ =+    CountClosedWorkflowExecutions'+    { _ccweCloseStatusFilter = Nothing+    , _ccweExecutionFilter = Nothing+    , _ccweTypeFilter = Nothing+    , _ccweCloseTimeFilter = Nothing+    , _ccweTagFilter = Nothing+    , _ccweStartTimeFilter = Nothing+    , _ccweDomain = pDomain_     }  -- | If specified, only workflow executions that match this close status are--- counted. This filter has an affect only if 'executionStatus' is specified as 'CLOSED'.+-- counted. This filter has an affect only if 'executionStatus' is+-- specified as 'CLOSED'. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request. ccweCloseStatusFilter :: Lens' CountClosedWorkflowExecutions (Maybe CloseStatusFilter)-ccweCloseStatusFilter =-    lens _ccweCloseStatusFilter (\s a -> s { _ccweCloseStatusFilter = a })---- | If specified, only workflow executions that meet the close time criteria of--- the filter are counted.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify--- one of these in a request but not both.-ccweCloseTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)-ccweCloseTimeFilter =-    lens _ccweCloseTimeFilter (\s a -> s { _ccweCloseTimeFilter = a })---- | The name of the domain containing the workflow executions to count.-ccweDomain :: Lens' CountClosedWorkflowExecutions Text-ccweDomain = lens _ccweDomain (\s a -> s { _ccweDomain = a })+ccweCloseStatusFilter = lens _ccweCloseStatusFilter (\ s a -> s{_ccweCloseStatusFilter = a}); --- | If specified, only workflow executions matching the 'WorkflowId' in the filter--- are counted.+-- | If specified, only workflow executions matching the 'WorkflowId' in the+-- filter are counted. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request. ccweExecutionFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowExecutionFilter)-ccweExecutionFilter =-    lens _ccweExecutionFilter (\s a -> s { _ccweExecutionFilter = a })---- | If specified, only workflow executions that meet the start time criteria of--- the filter are counted.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify--- one of these in a request but not both.-ccweStartTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)-ccweStartTimeFilter =-    lens _ccweStartTimeFilter (\s a -> s { _ccweStartTimeFilter = a })+ccweExecutionFilter = lens _ccweExecutionFilter (\ s a -> s{_ccweExecutionFilter = a}); --- | If specified, only executions that have a tag that matches the filter are+-- | If specified, indicates the type of the workflow executions to be -- counted. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.-ccweTagFilter :: Lens' CountClosedWorkflowExecutions (Maybe TagFilter)-ccweTagFilter = lens _ccweTagFilter (\s a -> s { _ccweTagFilter = a })---- | If specified, indicates the type of the workflow executions to be counted.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request. ccweTypeFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowTypeFilter)-ccweTypeFilter = lens _ccweTypeFilter (\s a -> s { _ccweTypeFilter = a })--data CountClosedWorkflowExecutionsResponse = CountClosedWorkflowExecutionsResponse-    { _ccwerCount     :: Nat-    , _ccwerTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)+ccweTypeFilter = lens _ccweTypeFilter (\ s a -> s{_ccweTypeFilter = a}); --- | 'CountClosedWorkflowExecutionsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'ccwerCount' @::@ 'Natural'------ * 'ccwerTruncated' @::@ 'Maybe' 'Bool'+-- | If specified, only workflow executions that meet the close time criteria+-- of the filter are counted. ---countClosedWorkflowExecutionsResponse :: Natural -- ^ 'ccwerCount'-                                      -> CountClosedWorkflowExecutionsResponse-countClosedWorkflowExecutionsResponse p1 = CountClosedWorkflowExecutionsResponse-    { _ccwerCount     = withIso _Nat (const id) p1-    , _ccwerTruncated = Nothing-    }+-- 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must+-- specify one of these in a request but not both.+ccweCloseTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)+ccweCloseTimeFilter = lens _ccweCloseTimeFilter (\ s a -> s{_ccweCloseTimeFilter = a}); --- | The number of workflow executions.-ccwerCount :: Lens' CountClosedWorkflowExecutionsResponse Natural-ccwerCount = lens _ccwerCount (\s a -> s { _ccwerCount = a }) . _Nat+-- | If specified, only executions that have a tag that matches the filter+-- are counted.+--+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request.+ccweTagFilter :: Lens' CountClosedWorkflowExecutions (Maybe TagFilter)+ccweTagFilter = lens _ccweTagFilter (\ s a -> s{_ccweTagFilter = a}); --- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-ccwerTruncated :: Lens' CountClosedWorkflowExecutionsResponse (Maybe Bool)-ccwerTruncated = lens _ccwerTruncated (\s a -> s { _ccwerTruncated = a })+-- | If specified, only workflow executions that meet the start time criteria+-- of the filter are counted.+--+-- 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must+-- specify one of these in a request but not both.+ccweStartTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)+ccweStartTimeFilter = lens _ccweStartTimeFilter (\ s a -> s{_ccweStartTimeFilter = a}); -instance ToPath CountClosedWorkflowExecutions where-    toPath = const "/"+-- | The name of the domain containing the workflow executions to count.+ccweDomain :: Lens' CountClosedWorkflowExecutions Text+ccweDomain = lens _ccweDomain (\ s a -> s{_ccweDomain = a}); -instance ToQuery CountClosedWorkflowExecutions where-    toQuery = const mempty+instance AWSRequest CountClosedWorkflowExecutions+         where+        type Sv CountClosedWorkflowExecutions = SWF+        type Rs CountClosedWorkflowExecutions =+             WorkflowExecutionCount+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x)  instance ToHeaders CountClosedWorkflowExecutions+         where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.CountClosedWorkflowExecutions"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])  instance ToJSON CountClosedWorkflowExecutions where-    toJSON CountClosedWorkflowExecutions{..} = object-        [ "domain"            .= _ccweDomain-        , "startTimeFilter"   .= _ccweStartTimeFilter-        , "closeTimeFilter"   .= _ccweCloseTimeFilter-        , "executionFilter"   .= _ccweExecutionFilter-        , "typeFilter"        .= _ccweTypeFilter-        , "tagFilter"         .= _ccweTagFilter-        , "closeStatusFilter" .= _ccweCloseStatusFilter-        ]--instance AWSRequest CountClosedWorkflowExecutions where-    type Sv CountClosedWorkflowExecutions = SWF-    type Rs CountClosedWorkflowExecutions = CountClosedWorkflowExecutionsResponse+        toJSON CountClosedWorkflowExecutions'{..}+          = object+              ["closeStatusFilter" .= _ccweCloseStatusFilter,+               "executionFilter" .= _ccweExecutionFilter,+               "typeFilter" .= _ccweTypeFilter,+               "closeTimeFilter" .= _ccweCloseTimeFilter,+               "tagFilter" .= _ccweTagFilter,+               "startTimeFilter" .= _ccweStartTimeFilter,+               "domain" .= _ccweDomain] -    request  = post "CountClosedWorkflowExecutions"-    response = jsonResponse+instance ToPath CountClosedWorkflowExecutions where+        toPath = const "/" -instance FromJSON CountClosedWorkflowExecutionsResponse where-    parseJSON = withObject "CountClosedWorkflowExecutionsResponse" $ \o -> CountClosedWorkflowExecutionsResponse-        <$> o .:  "count"-        <*> o .:? "truncated"+instance ToQuery CountClosedWorkflowExecutions where+        toQuery = const mempty
gen/Network/AWS/SWF/CountOpenWorkflowExecutions.hs view
@@ -1,195 +1,176 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.CountOpenWorkflowExecutions--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the number of open workflow executions within the given domain that--- meet the specified filtering criteria.+-- Returns the number of open workflow executions within the given domain+-- that meet the specified filtering criteria. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'. 'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'. 'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.    If the caller does--- not have sufficient permissions to invoke the action, or the parameter values--- fall outside the specified constraints, the action fails. The associated--- event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagFilter.tag': String constraint. The key is+--         'swf:tagFilter.tag'.+--     -   'typeFilter.name': String constraint. The key is+--         'swf:typeFilter.name'.+--     -   'typeFilter.version': String constraint. The key is+--         'swf:typeFilter.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountOpenWorkflowExecutions.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountOpenWorkflowExecutions.html AWS API Reference> for CountOpenWorkflowExecutions. module Network.AWS.SWF.CountOpenWorkflowExecutions     (-    -- * Request-      CountOpenWorkflowExecutions-    -- ** Request constructor-    , countOpenWorkflowExecutions-    -- ** Request lenses-    , coweDomain+    -- * Creating a Request+      countOpenWorkflowExecutions+    , CountOpenWorkflowExecutions+    -- * Request Lenses     , coweExecutionFilter-    , coweStartTimeFilter-    , coweTagFilter     , coweTypeFilter+    , coweTagFilter+    , coweDomain+    , coweStartTimeFilter -    -- * Response-    , CountOpenWorkflowExecutionsResponse-    -- ** Response constructor-    , countOpenWorkflowExecutionsResponse-    -- ** Response lenses-    , cowerCount-    , cowerTruncated+    -- * Destructuring the Response+    , workflowExecutionCount+    , WorkflowExecutionCount+    -- * Response Lenses+    , wecTruncated+    , wecCount     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data CountOpenWorkflowExecutions = CountOpenWorkflowExecutions-    { _coweDomain          :: Text-    , _coweExecutionFilter :: Maybe WorkflowExecutionFilter-    , _coweStartTimeFilter :: ExecutionTimeFilter-    , _coweTagFilter       :: Maybe TagFilter-    , _coweTypeFilter      :: Maybe WorkflowTypeFilter-    } deriving (Eq, Read, Show)+-- | /See:/ 'countOpenWorkflowExecutions' smart constructor.+data CountOpenWorkflowExecutions = CountOpenWorkflowExecutions'+    { _coweExecutionFilter :: !(Maybe WorkflowExecutionFilter)+    , _coweTypeFilter      :: !(Maybe WorkflowTypeFilter)+    , _coweTagFilter       :: !(Maybe TagFilter)+    , _coweDomain          :: !Text+    , _coweStartTimeFilter :: !ExecutionTimeFilter+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'CountOpenWorkflowExecutions' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'CountOpenWorkflowExecutions' with the minimum fields required to make a request. ----- * 'coweDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'coweExecutionFilter' @::@ 'Maybe' 'WorkflowExecutionFilter'+-- * 'coweExecutionFilter' ----- * 'coweStartTimeFilter' @::@ 'ExecutionTimeFilter'+-- * 'coweTypeFilter' ----- * 'coweTagFilter' @::@ 'Maybe' 'TagFilter'+-- * 'coweTagFilter' ----- * 'coweTypeFilter' @::@ 'Maybe' 'WorkflowTypeFilter'+-- * 'coweDomain' ---countOpenWorkflowExecutions :: Text -- ^ 'coweDomain'-                            -> ExecutionTimeFilter -- ^ 'coweStartTimeFilter'-                            -> CountOpenWorkflowExecutions-countOpenWorkflowExecutions p1 p2 = CountOpenWorkflowExecutions-    { _coweDomain          = p1-    , _coweStartTimeFilter = p2-    , _coweTypeFilter      = Nothing-    , _coweTagFilter       = Nothing-    , _coweExecutionFilter = Nothing+-- * 'coweStartTimeFilter'+countOpenWorkflowExecutions+    :: Text -- ^ 'coweDomain'+    -> ExecutionTimeFilter -- ^ 'coweStartTimeFilter'+    -> CountOpenWorkflowExecutions+countOpenWorkflowExecutions pDomain_ pStartTimeFilter_ =+    CountOpenWorkflowExecutions'+    { _coweExecutionFilter = Nothing+    , _coweTypeFilter = Nothing+    , _coweTagFilter = Nothing+    , _coweDomain = pDomain_+    , _coweStartTimeFilter = pStartTimeFilter_     } --- | The name of the domain containing the workflow executions to count.-coweDomain :: Lens' CountOpenWorkflowExecutions Text-coweDomain = lens _coweDomain (\s a -> s { _coweDomain = a })---- | If specified, only workflow executions matching the 'WorkflowId' in the filter--- are counted.+-- | If specified, only workflow executions matching the 'WorkflowId' in the+-- filter are counted. ----- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request. coweExecutionFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowExecutionFilter)-coweExecutionFilter =-    lens _coweExecutionFilter (\s a -> s { _coweExecutionFilter = a })---- | Specifies the start time criteria that workflow executions must meet in order--- to be counted.-coweStartTimeFilter :: Lens' CountOpenWorkflowExecutions ExecutionTimeFilter-coweStartTimeFilter =-    lens _coweStartTimeFilter (\s a -> s { _coweStartTimeFilter = a })---- | If specified, only executions that have a tag that matches the filter are--- counted.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.-coweTagFilter :: Lens' CountOpenWorkflowExecutions (Maybe TagFilter)-coweTagFilter = lens _coweTagFilter (\s a -> s { _coweTagFilter = a })+coweExecutionFilter = lens _coweExecutionFilter (\ s a -> s{_coweExecutionFilter = a});  -- | Specifies the type of the workflow executions to be counted. ----- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request. coweTypeFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowTypeFilter)-coweTypeFilter = lens _coweTypeFilter (\s a -> s { _coweTypeFilter = a })--data CountOpenWorkflowExecutionsResponse = CountOpenWorkflowExecutionsResponse-    { _cowerCount     :: Nat-    , _cowerTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)+coweTypeFilter = lens _coweTypeFilter (\ s a -> s{_coweTypeFilter = a}); --- | 'CountOpenWorkflowExecutionsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'cowerCount' @::@ 'Natural'------ * 'cowerTruncated' @::@ 'Maybe' 'Bool'+-- | If specified, only executions that have a tag that matches the filter+-- are counted. ---countOpenWorkflowExecutionsResponse :: Natural -- ^ 'cowerCount'-                                    -> CountOpenWorkflowExecutionsResponse-countOpenWorkflowExecutionsResponse p1 = CountOpenWorkflowExecutionsResponse-    { _cowerCount     = withIso _Nat (const id) p1-    , _cowerTruncated = Nothing-    }---- | The number of workflow executions.-cowerCount :: Lens' CountOpenWorkflowExecutionsResponse Natural-cowerCount = lens _cowerCount (\s a -> s { _cowerCount = a }) . _Nat+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request.+coweTagFilter :: Lens' CountOpenWorkflowExecutions (Maybe TagFilter)+coweTagFilter = lens _coweTagFilter (\ s a -> s{_coweTagFilter = a}); --- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-cowerTruncated :: Lens' CountOpenWorkflowExecutionsResponse (Maybe Bool)-cowerTruncated = lens _cowerTruncated (\s a -> s { _cowerTruncated = a })+-- | The name of the domain containing the workflow executions to count.+coweDomain :: Lens' CountOpenWorkflowExecutions Text+coweDomain = lens _coweDomain (\ s a -> s{_coweDomain = a}); -instance ToPath CountOpenWorkflowExecutions where-    toPath = const "/"+-- | Specifies the start time criteria that workflow executions must meet in+-- order to be counted.+coweStartTimeFilter :: Lens' CountOpenWorkflowExecutions ExecutionTimeFilter+coweStartTimeFilter = lens _coweStartTimeFilter (\ s a -> s{_coweStartTimeFilter = a}); -instance ToQuery CountOpenWorkflowExecutions where-    toQuery = const mempty+instance AWSRequest CountOpenWorkflowExecutions where+        type Sv CountOpenWorkflowExecutions = SWF+        type Rs CountOpenWorkflowExecutions =+             WorkflowExecutionCount+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x) -instance ToHeaders CountOpenWorkflowExecutions+instance ToHeaders CountOpenWorkflowExecutions where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.CountOpenWorkflowExecutions"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])  instance ToJSON CountOpenWorkflowExecutions where-    toJSON CountOpenWorkflowExecutions{..} = object-        [ "domain"          .= _coweDomain-        , "startTimeFilter" .= _coweStartTimeFilter-        , "typeFilter"      .= _coweTypeFilter-        , "tagFilter"       .= _coweTagFilter-        , "executionFilter" .= _coweExecutionFilter-        ]--instance AWSRequest CountOpenWorkflowExecutions where-    type Sv CountOpenWorkflowExecutions = SWF-    type Rs CountOpenWorkflowExecutions = CountOpenWorkflowExecutionsResponse+        toJSON CountOpenWorkflowExecutions'{..}+          = object+              ["executionFilter" .= _coweExecutionFilter,+               "typeFilter" .= _coweTypeFilter,+               "tagFilter" .= _coweTagFilter,+               "domain" .= _coweDomain,+               "startTimeFilter" .= _coweStartTimeFilter] -    request  = post "CountOpenWorkflowExecutions"-    response = jsonResponse+instance ToPath CountOpenWorkflowExecutions where+        toPath = const "/" -instance FromJSON CountOpenWorkflowExecutionsResponse where-    parseJSON = withObject "CountOpenWorkflowExecutionsResponse" $ \o -> CountOpenWorkflowExecutionsResponse-        <$> o .:  "count"-        <*> o .:? "truncated"+instance ToQuery CountOpenWorkflowExecutions where+        toQuery = const mempty
gen/Network/AWS/SWF/CountPendingActivityTasks.hs view
@@ -1,153 +1,127 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.CountPendingActivityTasks--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the estimated number of activity tasks in the specified task list.--- The count returned is an approximation and is not guaranteed to be exact. If--- you specify a task list that no activity task was ever scheduled in then 0--- will be returned.+-- Returns the estimated number of activity tasks in the specified task+-- list. The count returned is an approximation and is not guaranteed to be+-- exact. If you specify a task list that no activity task was ever+-- scheduled in then 0 will be returned. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the 'taskList.name' parameter by using a Condition--- element with the 'swf:taskList.name' key to allow the action to access only--- certain task lists.  If the caller does not have sufficient permissions to--- invoke the action, or the parameter values fall outside the specified--- constraints, the action fails. The associated event attribute's cause--- parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM--- policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the 'taskList.name' parameter by using a __Condition__+--     element with the 'swf:taskList.name' key to allow the action to+--     access only certain task lists. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountPendingActivityTasks.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountPendingActivityTasks.html AWS API Reference> for CountPendingActivityTasks. module Network.AWS.SWF.CountPendingActivityTasks     (-    -- * Request-      CountPendingActivityTasks-    -- ** Request constructor-    , countPendingActivityTasks-    -- ** Request lenses+    -- * Creating a Request+      countPendingActivityTasks+    , CountPendingActivityTasks+    -- * Request Lenses     , cpatDomain     , cpatTaskList -    -- * Response-    , CountPendingActivityTasksResponse-    -- ** Response constructor-    , countPendingActivityTasksResponse-    -- ** Response lenses-    , cpatrCount-    , cpatrTruncated+    -- * Destructuring the Response+    , pendingTaskCount+    , PendingTaskCount+    -- * Response Lenses+    , ptcTruncated+    , ptcCount     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data CountPendingActivityTasks = CountPendingActivityTasks-    { _cpatDomain   :: Text-    , _cpatTaskList :: TaskList-    } deriving (Eq, Read, Show)+-- | /See:/ 'countPendingActivityTasks' smart constructor.+data CountPendingActivityTasks = CountPendingActivityTasks'+    { _cpatDomain   :: !Text+    , _cpatTaskList :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'CountPendingActivityTasks' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'CountPendingActivityTasks' with the minimum fields required to make a request. ----- * 'cpatDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'cpatTaskList' @::@ 'TaskList'+-- * 'cpatDomain' ---countPendingActivityTasks :: Text -- ^ 'cpatDomain'-                          -> TaskList -- ^ 'cpatTaskList'-                          -> CountPendingActivityTasks-countPendingActivityTasks p1 p2 = CountPendingActivityTasks-    { _cpatDomain   = p1-    , _cpatTaskList = p2+-- * 'cpatTaskList'+countPendingActivityTasks+    :: Text -- ^ 'cpatDomain'+    -> TaskList -- ^ 'cpatTaskList'+    -> CountPendingActivityTasks+countPendingActivityTasks pDomain_ pTaskList_ =+    CountPendingActivityTasks'+    { _cpatDomain = pDomain_+    , _cpatTaskList = pTaskList_     }  -- | The name of the domain that contains the task list. cpatDomain :: Lens' CountPendingActivityTasks Text-cpatDomain = lens _cpatDomain (\s a -> s { _cpatDomain = a })+cpatDomain = lens _cpatDomain (\ s a -> s{_cpatDomain = a});  -- | The name of the task list. cpatTaskList :: Lens' CountPendingActivityTasks TaskList-cpatTaskList = lens _cpatTaskList (\s a -> s { _cpatTaskList = a })--data CountPendingActivityTasksResponse = CountPendingActivityTasksResponse-    { _cpatrCount     :: Nat-    , _cpatrTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)+cpatTaskList = lens _cpatTaskList (\ s a -> s{_cpatTaskList = a}); --- | 'CountPendingActivityTasksResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'cpatrCount' @::@ 'Natural'------ * 'cpatrTruncated' @::@ 'Maybe' 'Bool'----countPendingActivityTasksResponse :: Natural -- ^ 'cpatrCount'-                                  -> CountPendingActivityTasksResponse-countPendingActivityTasksResponse p1 = CountPendingActivityTasksResponse-    { _cpatrCount     = withIso _Nat (const id) p1-    , _cpatrTruncated = Nothing-    }+instance AWSRequest CountPendingActivityTasks where+        type Sv CountPendingActivityTasks = SWF+        type Rs CountPendingActivityTasks = PendingTaskCount+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x) --- | The number of tasks in the task list.-cpatrCount :: Lens' CountPendingActivityTasksResponse Natural-cpatrCount = lens _cpatrCount (\s a -> s { _cpatrCount = a }) . _Nat+instance ToHeaders CountPendingActivityTasks where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.CountPendingActivityTasks" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-cpatrTruncated :: Lens' CountPendingActivityTasksResponse (Maybe Bool)-cpatrTruncated = lens _cpatrTruncated (\s a -> s { _cpatrTruncated = a })+instance ToJSON CountPendingActivityTasks where+        toJSON CountPendingActivityTasks'{..}+          = object+              ["domain" .= _cpatDomain,+               "taskList" .= _cpatTaskList]  instance ToPath CountPendingActivityTasks where-    toPath = const "/"+        toPath = const "/"  instance ToQuery CountPendingActivityTasks where-    toQuery = const mempty--instance ToHeaders CountPendingActivityTasks--instance ToJSON CountPendingActivityTasks where-    toJSON CountPendingActivityTasks{..} = object-        [ "domain"   .= _cpatDomain-        , "taskList" .= _cpatTaskList-        ]--instance AWSRequest CountPendingActivityTasks where-    type Sv CountPendingActivityTasks = SWF-    type Rs CountPendingActivityTasks = CountPendingActivityTasksResponse--    request  = post "CountPendingActivityTasks"-    response = jsonResponse--instance FromJSON CountPendingActivityTasksResponse where-    parseJSON = withObject "CountPendingActivityTasksResponse" $ \o -> CountPendingActivityTasksResponse-        <$> o .:  "count"-        <*> o .:? "truncated"+        toQuery = const mempty
gen/Network/AWS/SWF/CountPendingDecisionTasks.hs view
@@ -1,153 +1,127 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.CountPendingDecisionTasks--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the estimated number of decision tasks in the specified task list.--- The count returned is an approximation and is not guaranteed to be exact. If--- you specify a task list that no decision task was ever scheduled in then 0--- will be returned.+-- Returns the estimated number of decision tasks in the specified task+-- list. The count returned is an approximation and is not guaranteed to be+-- exact. If you specify a task list that no decision task was ever+-- scheduled in then 0 will be returned. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the 'taskList.name' parameter by using a Condition--- element with the 'swf:taskList.name' key to allow the action to access only--- certain task lists.  If the caller does not have sufficient permissions to--- invoke the action, or the parameter values fall outside the specified--- constraints, the action fails. The associated event attribute's cause--- parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM--- policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the 'taskList.name' parameter by using a __Condition__+--     element with the 'swf:taskList.name' key to allow the action to+--     access only certain task lists. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountPendingDecisionTasks.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_CountPendingDecisionTasks.html AWS API Reference> for CountPendingDecisionTasks. module Network.AWS.SWF.CountPendingDecisionTasks     (-    -- * Request-      CountPendingDecisionTasks-    -- ** Request constructor-    , countPendingDecisionTasks-    -- ** Request lenses+    -- * Creating a Request+      countPendingDecisionTasks+    , CountPendingDecisionTasks+    -- * Request Lenses     , cpdtDomain     , cpdtTaskList -    -- * Response-    , CountPendingDecisionTasksResponse-    -- ** Response constructor-    , countPendingDecisionTasksResponse-    -- ** Response lenses-    , cpdtrCount-    , cpdtrTruncated+    -- * Destructuring the Response+    , pendingTaskCount+    , PendingTaskCount+    -- * Response Lenses+    , ptcTruncated+    , ptcCount     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data CountPendingDecisionTasks = CountPendingDecisionTasks-    { _cpdtDomain   :: Text-    , _cpdtTaskList :: TaskList-    } deriving (Eq, Read, Show)+-- | /See:/ 'countPendingDecisionTasks' smart constructor.+data CountPendingDecisionTasks = CountPendingDecisionTasks'+    { _cpdtDomain   :: !Text+    , _cpdtTaskList :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'CountPendingDecisionTasks' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'CountPendingDecisionTasks' with the minimum fields required to make a request. ----- * 'cpdtDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'cpdtTaskList' @::@ 'TaskList'+-- * 'cpdtDomain' ---countPendingDecisionTasks :: Text -- ^ 'cpdtDomain'-                          -> TaskList -- ^ 'cpdtTaskList'-                          -> CountPendingDecisionTasks-countPendingDecisionTasks p1 p2 = CountPendingDecisionTasks-    { _cpdtDomain   = p1-    , _cpdtTaskList = p2+-- * 'cpdtTaskList'+countPendingDecisionTasks+    :: Text -- ^ 'cpdtDomain'+    -> TaskList -- ^ 'cpdtTaskList'+    -> CountPendingDecisionTasks+countPendingDecisionTasks pDomain_ pTaskList_ =+    CountPendingDecisionTasks'+    { _cpdtDomain = pDomain_+    , _cpdtTaskList = pTaskList_     }  -- | The name of the domain that contains the task list. cpdtDomain :: Lens' CountPendingDecisionTasks Text-cpdtDomain = lens _cpdtDomain (\s a -> s { _cpdtDomain = a })+cpdtDomain = lens _cpdtDomain (\ s a -> s{_cpdtDomain = a});  -- | The name of the task list. cpdtTaskList :: Lens' CountPendingDecisionTasks TaskList-cpdtTaskList = lens _cpdtTaskList (\s a -> s { _cpdtTaskList = a })--data CountPendingDecisionTasksResponse = CountPendingDecisionTasksResponse-    { _cpdtrCount     :: Nat-    , _cpdtrTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)+cpdtTaskList = lens _cpdtTaskList (\ s a -> s{_cpdtTaskList = a}); --- | 'CountPendingDecisionTasksResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'cpdtrCount' @::@ 'Natural'------ * 'cpdtrTruncated' @::@ 'Maybe' 'Bool'----countPendingDecisionTasksResponse :: Natural -- ^ 'cpdtrCount'-                                  -> CountPendingDecisionTasksResponse-countPendingDecisionTasksResponse p1 = CountPendingDecisionTasksResponse-    { _cpdtrCount     = withIso _Nat (const id) p1-    , _cpdtrTruncated = Nothing-    }+instance AWSRequest CountPendingDecisionTasks where+        type Sv CountPendingDecisionTasks = SWF+        type Rs CountPendingDecisionTasks = PendingTaskCount+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x) --- | The number of tasks in the task list.-cpdtrCount :: Lens' CountPendingDecisionTasksResponse Natural-cpdtrCount = lens _cpdtrCount (\s a -> s { _cpdtrCount = a }) . _Nat+instance ToHeaders CountPendingDecisionTasks where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.CountPendingDecisionTasks" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-cpdtrTruncated :: Lens' CountPendingDecisionTasksResponse (Maybe Bool)-cpdtrTruncated = lens _cpdtrTruncated (\s a -> s { _cpdtrTruncated = a })+instance ToJSON CountPendingDecisionTasks where+        toJSON CountPendingDecisionTasks'{..}+          = object+              ["domain" .= _cpdtDomain,+               "taskList" .= _cpdtTaskList]  instance ToPath CountPendingDecisionTasks where-    toPath = const "/"+        toPath = const "/"  instance ToQuery CountPendingDecisionTasks where-    toQuery = const mempty--instance ToHeaders CountPendingDecisionTasks--instance ToJSON CountPendingDecisionTasks where-    toJSON CountPendingDecisionTasks{..} = object-        [ "domain"   .= _cpdtDomain-        , "taskList" .= _cpdtTaskList-        ]--instance AWSRequest CountPendingDecisionTasks where-    type Sv CountPendingDecisionTasks = SWF-    type Rs CountPendingDecisionTasks = CountPendingDecisionTasksResponse--    request  = post "CountPendingDecisionTasks"-    response = jsonResponse--instance FromJSON CountPendingDecisionTasksResponse where-    parseJSON = withObject "CountPendingDecisionTasksResponse" $ \o -> CountPendingDecisionTasksResponse-        <$> o .:  "count"-        <*> o .:? "truncated"+        toQuery = const mempty
gen/Network/AWS/SWF/DeprecateActivityType.hs view
@@ -1,122 +1,142 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DeprecateActivityType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Deprecates the specified /activity type/. After an activity type has been--- deprecated, you cannot create new tasks of that activity type. Tasks of this--- type that were scheduled before the type was deprecated will continue to run.+-- Deprecates the specified /activity type/. After an activity type has+-- been deprecated, you cannot create new tasks of that activity type.+-- Tasks of this type that were scheduled before the type was deprecated+-- will continue to run. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'activityType.name': String constraint. The key is 'swf:activityType.name'. 'activityType.version': String constraint. The key is 'swf:activityType.version'--- .    If the caller does not have sufficient permissions to invoke the action,--- or the parameter values fall outside the specified constraints, the action--- fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'activityType.name': String constraint. The key is+--         'swf:activityType.name'.+--     -   'activityType.version': String constraint. The key is+--         'swf:activityType.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateActivityType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateActivityType.html AWS API Reference> for DeprecateActivityType. module Network.AWS.SWF.DeprecateActivityType     (-    -- * Request-      DeprecateActivityType-    -- ** Request constructor-    , deprecateActivityType-    -- ** Request lenses-    , dat1ActivityType-    , dat1Domain+    -- * Creating a Request+      deprecateActivityType+    , DeprecateActivityType+    -- * Request Lenses+    , depDomain+    , depActivityType -    -- * Response-    , DeprecateActivityTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , deprecateActivityTypeResponse+    , DeprecateActivityTypeResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data DeprecateActivityType = DeprecateActivityType-    { _dat1ActivityType :: ActivityType-    , _dat1Domain       :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'deprecateActivityType' smart constructor.+data DeprecateActivityType = DeprecateActivityType'+    { _depDomain       :: !Text+    , _depActivityType :: !ActivityType+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DeprecateActivityType' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DeprecateActivityType' with the minimum fields required to make a request. ----- * 'dat1ActivityType' @::@ 'ActivityType'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dat1Domain' @::@ 'Text'+-- * 'depDomain' ---deprecateActivityType :: Text -- ^ 'dat1Domain'-                      -> ActivityType -- ^ 'dat1ActivityType'-                      -> DeprecateActivityType-deprecateActivityType p1 p2 = DeprecateActivityType-    { _dat1Domain       = p1-    , _dat1ActivityType = p2+-- * 'depActivityType'+deprecateActivityType+    :: Text -- ^ 'depDomain'+    -> ActivityType -- ^ 'depActivityType'+    -> DeprecateActivityType+deprecateActivityType pDomain_ pActivityType_ =+    DeprecateActivityType'+    { _depDomain = pDomain_+    , _depActivityType = pActivityType_     } +-- | The name of the domain in which the activity type is registered.+depDomain :: Lens' DeprecateActivityType Text+depDomain = lens _depDomain (\ s a -> s{_depDomain = a});+ -- | The activity type to deprecate.-dat1ActivityType :: Lens' DeprecateActivityType ActivityType-dat1ActivityType = lens _dat1ActivityType (\s a -> s { _dat1ActivityType = a })+depActivityType :: Lens' DeprecateActivityType ActivityType+depActivityType = lens _depActivityType (\ s a -> s{_depActivityType = a}); --- | The name of the domain in which the activity type is registered.-dat1Domain :: Lens' DeprecateActivityType Text-dat1Domain = lens _dat1Domain (\s a -> s { _dat1Domain = a })+instance AWSRequest DeprecateActivityType where+        type Sv DeprecateActivityType = SWF+        type Rs DeprecateActivityType =+             DeprecateActivityTypeResponse+        request = postJSON+        response = receiveNull DeprecateActivityTypeResponse' -data DeprecateActivityTypeResponse = DeprecateActivityTypeResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance ToHeaders DeprecateActivityType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DeprecateActivityType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | 'DeprecateActivityTypeResponse' constructor.-deprecateActivityTypeResponse :: DeprecateActivityTypeResponse-deprecateActivityTypeResponse = DeprecateActivityTypeResponse+instance ToJSON DeprecateActivityType where+        toJSON DeprecateActivityType'{..}+          = object+              ["domain" .= _depDomain,+               "activityType" .= _depActivityType]  instance ToPath DeprecateActivityType where-    toPath = const "/"+        toPath = const "/"  instance ToQuery DeprecateActivityType where-    toQuery = const mempty--instance ToHeaders DeprecateActivityType--instance ToJSON DeprecateActivityType where-    toJSON DeprecateActivityType{..} = object-        [ "domain"       .= _dat1Domain-        , "activityType" .= _dat1ActivityType-        ]+        toQuery = const mempty -instance AWSRequest DeprecateActivityType where-    type Sv DeprecateActivityType = SWF-    type Rs DeprecateActivityType = DeprecateActivityTypeResponse+-- | /See:/ 'deprecateActivityTypeResponse' smart constructor.+data DeprecateActivityTypeResponse =+    DeprecateActivityTypeResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "DeprecateActivityType"-    response = nullResponse DeprecateActivityTypeResponse+-- | Creates a value of 'DeprecateActivityTypeResponse' with the minimum fields required to make a request.+--+deprecateActivityTypeResponse+    :: DeprecateActivityTypeResponse+deprecateActivityTypeResponse = DeprecateActivityTypeResponse'
gen/Network/AWS/SWF/DeprecateDomain.hs view
@@ -1,113 +1,126 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DeprecateDomain--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Deprecates the specified domain. After a domain has been deprecated it cannot--- be used to create new workflow executions or register new types. However, you--- can still use visibility actions on this domain. Deprecating a domain also--- deprecates all activity and workflow types registered in the domain.--- Executions that were started before the domain was deprecated will continue--- to run.+-- Deprecates the specified domain. After a domain has been deprecated it+-- cannot be used to create new workflow executions or register new types.+-- However, you can still use visibility actions on this domain.+-- Deprecating a domain also deprecates all activity and workflow types+-- registered in the domain. Executions that were started before the domain+-- was deprecated will continue to run. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateDomain.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateDomain.html AWS API Reference> for DeprecateDomain. module Network.AWS.SWF.DeprecateDomain     (-    -- * Request-      DeprecateDomain-    -- ** Request constructor-    , deprecateDomain-    -- ** Request lenses-    , dd1Name+    -- * Creating a Request+      deprecateDomain+    , DeprecateDomain+    -- * Request Lenses+    , dName -    -- * Response-    , DeprecateDomainResponse-    -- ** Response constructor+    -- * Destructuring the Response     , deprecateDomainResponse+    , DeprecateDomainResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -newtype DeprecateDomain = DeprecateDomain-    { _dd1Name :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)+-- | /See:/ 'deprecateDomain' smart constructor.+newtype DeprecateDomain = DeprecateDomain'+    { _dName :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DeprecateDomain' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DeprecateDomain' with the minimum fields required to make a request. ----- * 'dd1Name' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---deprecateDomain :: Text -- ^ 'dd1Name'-                -> DeprecateDomain-deprecateDomain p1 = DeprecateDomain-    { _dd1Name = p1+-- * 'dName'+deprecateDomain+    :: Text -- ^ 'dName'+    -> DeprecateDomain+deprecateDomain pName_ =+    DeprecateDomain'+    { _dName = pName_     }  -- | The name of the domain to deprecate.-dd1Name :: Lens' DeprecateDomain Text-dd1Name = lens _dd1Name (\s a -> s { _dd1Name = a })+dName :: Lens' DeprecateDomain Text+dName = lens _dName (\ s a -> s{_dName = a}); -data DeprecateDomainResponse = DeprecateDomainResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest DeprecateDomain where+        type Sv DeprecateDomain = SWF+        type Rs DeprecateDomain = DeprecateDomainResponse+        request = postJSON+        response = receiveNull DeprecateDomainResponse' --- | 'DeprecateDomainResponse' constructor.-deprecateDomainResponse :: DeprecateDomainResponse-deprecateDomainResponse = DeprecateDomainResponse+instance ToHeaders DeprecateDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DeprecateDomain" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON DeprecateDomain where+        toJSON DeprecateDomain'{..}+          = object ["name" .= _dName]+ instance ToPath DeprecateDomain where-    toPath = const "/"+        toPath = const "/"  instance ToQuery DeprecateDomain where-    toQuery = const mempty--instance ToHeaders DeprecateDomain--instance ToJSON DeprecateDomain where-    toJSON DeprecateDomain{..} = object-        [ "name" .= _dd1Name-        ]+        toQuery = const mempty -instance AWSRequest DeprecateDomain where-    type Sv DeprecateDomain = SWF-    type Rs DeprecateDomain = DeprecateDomainResponse+-- | /See:/ 'deprecateDomainResponse' smart constructor.+data DeprecateDomainResponse =+    DeprecateDomainResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "DeprecateDomain"-    response = nullResponse DeprecateDomainResponse+-- | Creates a value of 'DeprecateDomainResponse' with the minimum fields required to make a request.+--+deprecateDomainResponse+    :: DeprecateDomainResponse+deprecateDomainResponse = DeprecateDomainResponse'
gen/Network/AWS/SWF/DeprecateWorkflowType.hs view
@@ -1,123 +1,143 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DeprecateWorkflowType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Deprecates the specified /workflow type/. After a workflow type has been--- deprecated, you cannot create new executions of that type. Executions that--- were started before the type was deprecated will continue to run. A--- deprecated workflow type may still be used when calling visibility actions.+-- Deprecates the specified /workflow type/. After a workflow type has been+-- deprecated, you cannot create new executions of that type. Executions+-- that were started before the type was deprecated will continue to run. A+-- deprecated workflow type may still be used when calling visibility+-- actions. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'workflowType.name': String constraint. The key is 'swf:workflowType.name'. 'workflowType.version': String constraint. The key is 'swf:workflowType.version'--- .    If the caller does not have sufficient permissions to invoke the action,--- or the parameter values fall outside the specified constraints, the action--- fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'workflowType.name': String constraint. The key is+--         'swf:workflowType.name'.+--     -   'workflowType.version': String constraint. The key is+--         'swf:workflowType.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateWorkflowType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DeprecateWorkflowType.html AWS API Reference> for DeprecateWorkflowType. module Network.AWS.SWF.DeprecateWorkflowType     (-    -- * Request-      DeprecateWorkflowType-    -- ** Request constructor-    , deprecateWorkflowType-    -- ** Request lenses-    , dwt1Domain-    , dwt1WorkflowType+    -- * Creating a Request+      deprecateWorkflowType+    , DeprecateWorkflowType+    -- * Request Lenses+    , dDomain+    , dWorkflowType -    -- * Response-    , DeprecateWorkflowTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , deprecateWorkflowTypeResponse+    , DeprecateWorkflowTypeResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data DeprecateWorkflowType = DeprecateWorkflowType-    { _dwt1Domain       :: Text-    , _dwt1WorkflowType :: WorkflowType-    } deriving (Eq, Read, Show)+-- | /See:/ 'deprecateWorkflowType' smart constructor.+data DeprecateWorkflowType = DeprecateWorkflowType'+    { _dDomain       :: !Text+    , _dWorkflowType :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DeprecateWorkflowType' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DeprecateWorkflowType' with the minimum fields required to make a request. ----- * 'dwt1Domain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dwt1WorkflowType' @::@ 'WorkflowType'+-- * 'dDomain' ---deprecateWorkflowType :: Text -- ^ 'dwt1Domain'-                      -> WorkflowType -- ^ 'dwt1WorkflowType'-                      -> DeprecateWorkflowType-deprecateWorkflowType p1 p2 = DeprecateWorkflowType-    { _dwt1Domain       = p1-    , _dwt1WorkflowType = p2+-- * 'dWorkflowType'+deprecateWorkflowType+    :: Text -- ^ 'dDomain'+    -> WorkflowType -- ^ 'dWorkflowType'+    -> DeprecateWorkflowType+deprecateWorkflowType pDomain_ pWorkflowType_ =+    DeprecateWorkflowType'+    { _dDomain = pDomain_+    , _dWorkflowType = pWorkflowType_     }  -- | The name of the domain in which the workflow type is registered.-dwt1Domain :: Lens' DeprecateWorkflowType Text-dwt1Domain = lens _dwt1Domain (\s a -> s { _dwt1Domain = a })+dDomain :: Lens' DeprecateWorkflowType Text+dDomain = lens _dDomain (\ s a -> s{_dDomain = a});  -- | The workflow type to deprecate.-dwt1WorkflowType :: Lens' DeprecateWorkflowType WorkflowType-dwt1WorkflowType = lens _dwt1WorkflowType (\s a -> s { _dwt1WorkflowType = a })+dWorkflowType :: Lens' DeprecateWorkflowType WorkflowType+dWorkflowType = lens _dWorkflowType (\ s a -> s{_dWorkflowType = a}); -data DeprecateWorkflowTypeResponse = DeprecateWorkflowTypeResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest DeprecateWorkflowType where+        type Sv DeprecateWorkflowType = SWF+        type Rs DeprecateWorkflowType =+             DeprecateWorkflowTypeResponse+        request = postJSON+        response = receiveNull DeprecateWorkflowTypeResponse' --- | 'DeprecateWorkflowTypeResponse' constructor.-deprecateWorkflowTypeResponse :: DeprecateWorkflowTypeResponse-deprecateWorkflowTypeResponse = DeprecateWorkflowTypeResponse+instance ToHeaders DeprecateWorkflowType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DeprecateWorkflowType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON DeprecateWorkflowType where+        toJSON DeprecateWorkflowType'{..}+          = object+              ["domain" .= _dDomain,+               "workflowType" .= _dWorkflowType]+ instance ToPath DeprecateWorkflowType where-    toPath = const "/"+        toPath = const "/"  instance ToQuery DeprecateWorkflowType where-    toQuery = const mempty--instance ToHeaders DeprecateWorkflowType--instance ToJSON DeprecateWorkflowType where-    toJSON DeprecateWorkflowType{..} = object-        [ "domain"       .= _dwt1Domain-        , "workflowType" .= _dwt1WorkflowType-        ]+        toQuery = const mempty -instance AWSRequest DeprecateWorkflowType where-    type Sv DeprecateWorkflowType = SWF-    type Rs DeprecateWorkflowType = DeprecateWorkflowTypeResponse+-- | /See:/ 'deprecateWorkflowTypeResponse' smart constructor.+data DeprecateWorkflowTypeResponse =+    DeprecateWorkflowTypeResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "DeprecateWorkflowType"-    response = nullResponse DeprecateWorkflowTypeResponse+-- | Creates a value of 'DeprecateWorkflowTypeResponse' with the minimum fields required to make a request.+--+deprecateWorkflowTypeResponse+    :: DeprecateWorkflowTypeResponse+deprecateWorkflowTypeResponse = DeprecateWorkflowTypeResponse'
gen/Network/AWS/SWF/DescribeActivityType.hs view
@@ -1,160 +1,189 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DescribeActivityType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about the specified activity type. This includes+-- Returns information about the specified activity type. This includes -- configuration settings provided when the type was registered and other -- general information about the type. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'activityType.name': String constraint. The key is 'swf:activityType.name'. 'activityType.version': String constraint. The key is 'swf:activityType.version'--- .    If the caller does not have sufficient permissions to invoke the action,--- or the parameter values fall outside the specified constraints, the action--- fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'activityType.name': String constraint. The key is+--         'swf:activityType.name'.+--     -   'activityType.version': String constraint. The key is+--         'swf:activityType.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeActivityType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeActivityType.html AWS API Reference> for DescribeActivityType. module Network.AWS.SWF.DescribeActivityType     (-    -- * Request-      DescribeActivityType-    -- ** Request constructor-    , describeActivityType-    -- ** Request lenses-    , datActivityType+    -- * Creating a Request+      describeActivityType+    , DescribeActivityType+    -- * Request Lenses     , datDomain+    , datActivityType -    -- * Response-    , DescribeActivityTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , describeActivityTypeResponse-    -- ** Response lenses-    , datrConfiguration-    , datrTypeInfo+    , DescribeActivityTypeResponse+    -- * Response Lenses+    , datrsStatus+    , datrsTypeInfo+    , datrsConfiguration     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data DescribeActivityType = DescribeActivityType-    { _datActivityType :: ActivityType-    , _datDomain       :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'describeActivityType' smart constructor.+data DescribeActivityType = DescribeActivityType'+    { _datDomain       :: !Text+    , _datActivityType :: !ActivityType+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DescribeActivityType' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DescribeActivityType' with the minimum fields required to make a request. ----- * 'datActivityType' @::@ 'ActivityType'+-- Use one of the following lenses to modify other fields as desired: ----- * 'datDomain' @::@ 'Text'+-- * 'datDomain' ---describeActivityType :: Text -- ^ 'datDomain'-                     -> ActivityType -- ^ 'datActivityType'-                     -> DescribeActivityType-describeActivityType p1 p2 = DescribeActivityType-    { _datDomain       = p1-    , _datActivityType = p2+-- * 'datActivityType'+describeActivityType+    :: Text -- ^ 'datDomain'+    -> ActivityType -- ^ 'datActivityType'+    -> DescribeActivityType+describeActivityType pDomain_ pActivityType_ =+    DescribeActivityType'+    { _datDomain = pDomain_+    , _datActivityType = pActivityType_     } --- | The activity type to get information about. Activity types are identified by--- the 'name' and 'version' that were supplied when the activity was registered.-datActivityType :: Lens' DescribeActivityType ActivityType-datActivityType = lens _datActivityType (\s a -> s { _datActivityType = a })- -- | The name of the domain in which the activity type is registered. datDomain :: Lens' DescribeActivityType Text-datDomain = lens _datDomain (\s a -> s { _datDomain = a })+datDomain = lens _datDomain (\ s a -> s{_datDomain = a}); -data DescribeActivityTypeResponse = DescribeActivityTypeResponse-    { _datrConfiguration :: ActivityTypeConfiguration-    , _datrTypeInfo      :: ActivityTypeInfo-    } deriving (Eq, Read, Show)+-- | The activity type to get information about. Activity types are+-- identified by the 'name' and 'version' that were supplied when the+-- activity was registered.+datActivityType :: Lens' DescribeActivityType ActivityType+datActivityType = lens _datActivityType (\ s a -> s{_datActivityType = a}); --- | 'DescribeActivityTypeResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'datrConfiguration' @::@ 'ActivityTypeConfiguration'------ * 'datrTypeInfo' @::@ 'ActivityTypeInfo'----describeActivityTypeResponse :: ActivityTypeInfo -- ^ 'datrTypeInfo'-                             -> ActivityTypeConfiguration -- ^ 'datrConfiguration'-                             -> DescribeActivityTypeResponse-describeActivityTypeResponse p1 p2 = DescribeActivityTypeResponse-    { _datrTypeInfo      = p1-    , _datrConfiguration = p2-    }+instance AWSRequest DescribeActivityType where+        type Sv DescribeActivityType = SWF+        type Rs DescribeActivityType =+             DescribeActivityTypeResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 DescribeActivityTypeResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "typeInfo") <*>+                     (x .:> "configuration")) --- | The configuration settings registered with the activity type.-datrConfiguration :: Lens' DescribeActivityTypeResponse ActivityTypeConfiguration-datrConfiguration =-    lens _datrConfiguration (\s a -> s { _datrConfiguration = a })+instance ToHeaders DescribeActivityType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DescribeActivityType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | General information about the activity type.------ The status of activity type (returned in the ActivityTypeInfo structure) can--- be one of the following.------ REGISTERED: The type is registered and available. Workers supporting this--- type should be running.   DEPRECATED: The type was deprecated using 'DeprecateActivityType', but is still in use. You should keep workers supporting this type running.--- You cannot create new tasks of this type.-datrTypeInfo :: Lens' DescribeActivityTypeResponse ActivityTypeInfo-datrTypeInfo = lens _datrTypeInfo (\s a -> s { _datrTypeInfo = a })+instance ToJSON DescribeActivityType where+        toJSON DescribeActivityType'{..}+          = object+              ["domain" .= _datDomain,+               "activityType" .= _datActivityType]  instance ToPath DescribeActivityType where-    toPath = const "/"+        toPath = const "/"  instance ToQuery DescribeActivityType where-    toQuery = const mempty+        toQuery = const mempty -instance ToHeaders DescribeActivityType+-- | Detailed information about an activity type.+--+-- /See:/ 'describeActivityTypeResponse' smart constructor.+data DescribeActivityTypeResponse = DescribeActivityTypeResponse'+    { _datrsStatus        :: !Int+    , _datrsTypeInfo      :: !ActivityTypeInfo+    , _datrsConfiguration :: !ActivityTypeConfiguration+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON DescribeActivityType where-    toJSON DescribeActivityType{..} = object-        [ "domain"       .= _datDomain-        , "activityType" .= _datActivityType-        ]+-- | Creates a value of 'DescribeActivityTypeResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'datrsStatus'+--+-- * 'datrsTypeInfo'+--+-- * 'datrsConfiguration'+describeActivityTypeResponse+    :: Int -- ^ 'datrsStatus'+    -> ActivityTypeInfo -- ^ 'datrsTypeInfo'+    -> ActivityTypeConfiguration -- ^ 'datrsConfiguration'+    -> DescribeActivityTypeResponse+describeActivityTypeResponse pStatus_ pTypeInfo_ pConfiguration_ =+    DescribeActivityTypeResponse'+    { _datrsStatus = pStatus_+    , _datrsTypeInfo = pTypeInfo_+    , _datrsConfiguration = pConfiguration_+    } -instance AWSRequest DescribeActivityType where-    type Sv DescribeActivityType = SWF-    type Rs DescribeActivityType = DescribeActivityTypeResponse+-- | The response status code.+datrsStatus :: Lens' DescribeActivityTypeResponse Int+datrsStatus = lens _datrsStatus (\ s a -> s{_datrsStatus = a}); -    request  = post "DescribeActivityType"-    response = jsonResponse+-- | General information about the activity type.+--+-- The status of activity type (returned in the ActivityTypeInfo structure)+-- can be one of the following.+--+-- -   __REGISTERED__: The type is registered and available. Workers+--     supporting this type should be running.+-- -   __DEPRECATED__: The type was deprecated using DeprecateActivityType,+--     but is still in use. You should keep workers supporting this type+--     running. You cannot create new tasks of this type.+datrsTypeInfo :: Lens' DescribeActivityTypeResponse ActivityTypeInfo+datrsTypeInfo = lens _datrsTypeInfo (\ s a -> s{_datrsTypeInfo = a}); -instance FromJSON DescribeActivityTypeResponse where-    parseJSON = withObject "DescribeActivityTypeResponse" $ \o -> DescribeActivityTypeResponse-        <$> o .:  "configuration"-        <*> o .:  "typeInfo"+-- | The configuration settings registered with the activity type.+datrsConfiguration :: Lens' DescribeActivityTypeResponse ActivityTypeConfiguration+datrsConfiguration = lens _datrsConfiguration (\ s a -> s{_datrsConfiguration = a});
gen/Network/AWS/SWF/DescribeDomain.hs view
@@ -1,136 +1,159 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DescribeDomain--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about the specified domain, including description and--- status.+-- Returns information about the specified domain, including description+-- and status. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeDomain.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeDomain.html AWS API Reference> for DescribeDomain. module Network.AWS.SWF.DescribeDomain     (-    -- * Request-      DescribeDomain-    -- ** Request constructor-    , describeDomain-    -- ** Request lenses+    -- * Creating a Request+      describeDomain+    , DescribeDomain+    -- * Request Lenses     , ddName -    -- * Response-    , DescribeDomainResponse-    -- ** Response constructor+    -- * Destructuring the Response     , describeDomainResponse-    -- ** Response lenses-    , ddrConfiguration-    , ddrDomainInfo+    , DescribeDomainResponse+    -- * Response Lenses+    , ddrsStatus+    , ddrsDomainInfo+    , ddrsConfiguration     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -newtype DescribeDomain = DescribeDomain+-- | /See:/ 'describeDomain' smart constructor.+newtype DescribeDomain = DescribeDomain'     { _ddName :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DescribeDomain' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DescribeDomain' with the minimum fields required to make a request. ----- * 'ddName' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---describeDomain :: Text -- ^ 'ddName'-               -> DescribeDomain-describeDomain p1 = DescribeDomain-    { _ddName = p1+-- * 'ddName'+describeDomain+    :: Text -- ^ 'ddName'+    -> DescribeDomain+describeDomain pName_ =+    DescribeDomain'+    { _ddName = pName_     }  -- | The name of the domain to describe. ddName :: Lens' DescribeDomain Text-ddName = lens _ddName (\s a -> s { _ddName = a })--data DescribeDomainResponse = DescribeDomainResponse-    { _ddrConfiguration :: DomainConfiguration-    , _ddrDomainInfo    :: DomainInfo-    } deriving (Eq, Read, Show)+ddName = lens _ddName (\ s a -> s{_ddName = a}); --- | 'DescribeDomainResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'ddrConfiguration' @::@ 'DomainConfiguration'------ * 'ddrDomainInfo' @::@ 'DomainInfo'----describeDomainResponse :: DomainInfo -- ^ 'ddrDomainInfo'-                       -> DomainConfiguration -- ^ 'ddrConfiguration'-                       -> DescribeDomainResponse-describeDomainResponse p1 p2 = DescribeDomainResponse-    { _ddrDomainInfo    = p1-    , _ddrConfiguration = p2-    }+instance AWSRequest DescribeDomain where+        type Sv DescribeDomain = SWF+        type Rs DescribeDomain = DescribeDomainResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 DescribeDomainResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "domainInfo") <*>+                     (x .:> "configuration")) -ddrConfiguration :: Lens' DescribeDomainResponse DomainConfiguration-ddrConfiguration = lens _ddrConfiguration (\s a -> s { _ddrConfiguration = a })+instance ToHeaders DescribeDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DescribeDomain" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) -ddrDomainInfo :: Lens' DescribeDomainResponse DomainInfo-ddrDomainInfo = lens _ddrDomainInfo (\s a -> s { _ddrDomainInfo = a })+instance ToJSON DescribeDomain where+        toJSON DescribeDomain'{..}+          = object ["name" .= _ddName]  instance ToPath DescribeDomain where-    toPath = const "/"+        toPath = const "/"  instance ToQuery DescribeDomain where-    toQuery = const mempty+        toQuery = const mempty -instance ToHeaders DescribeDomain+-- | Contains details of a domain.+--+-- /See:/ 'describeDomainResponse' smart constructor.+data DescribeDomainResponse = DescribeDomainResponse'+    { _ddrsStatus        :: !Int+    , _ddrsDomainInfo    :: !DomainInfo+    , _ddrsConfiguration :: !DomainConfiguration+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON DescribeDomain where-    toJSON DescribeDomain{..} = object-        [ "name" .= _ddName-        ]+-- | Creates a value of 'DescribeDomainResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ddrsStatus'+--+-- * 'ddrsDomainInfo'+--+-- * 'ddrsConfiguration'+describeDomainResponse+    :: Int -- ^ 'ddrsStatus'+    -> DomainInfo -- ^ 'ddrsDomainInfo'+    -> DomainConfiguration -- ^ 'ddrsConfiguration'+    -> DescribeDomainResponse+describeDomainResponse pStatus_ pDomainInfo_ pConfiguration_ =+    DescribeDomainResponse'+    { _ddrsStatus = pStatus_+    , _ddrsDomainInfo = pDomainInfo_+    , _ddrsConfiguration = pConfiguration_+    } -instance AWSRequest DescribeDomain where-    type Sv DescribeDomain = SWF-    type Rs DescribeDomain = DescribeDomainResponse+-- | The response status code.+ddrsStatus :: Lens' DescribeDomainResponse Int+ddrsStatus = lens _ddrsStatus (\ s a -> s{_ddrsStatus = a}); -    request  = post "DescribeDomain"-    response = jsonResponse+-- | Undocumented member.+ddrsDomainInfo :: Lens' DescribeDomainResponse DomainInfo+ddrsDomainInfo = lens _ddrsDomainInfo (\ s a -> s{_ddrsDomainInfo = a}); -instance FromJSON DescribeDomainResponse where-    parseJSON = withObject "DescribeDomainResponse" $ \o -> DescribeDomainResponse-        <$> o .:  "configuration"-        <*> o .:  "domainInfo"+-- | Undocumented member.+ddrsConfiguration :: Lens' DescribeDomainResponse DomainConfiguration+ddrsConfiguration = lens _ddrsConfiguration (\ s a -> s{_ddrsConfiguration = a});
gen/Network/AWS/SWF/DescribeWorkflowExecution.hs view
@@ -1,196 +1,214 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DescribeWorkflowExecution--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about the specified workflow execution including its type--- and some statistics.+-- Returns information about the specified workflow execution including its+-- type and some statistics. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeWorkflowExecution.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeWorkflowExecution.html AWS API Reference> for DescribeWorkflowExecution. module Network.AWS.SWF.DescribeWorkflowExecution     (-    -- * Request-      DescribeWorkflowExecution-    -- ** Request constructor-    , describeWorkflowExecution-    -- ** Request lenses+    -- * Creating a Request+      describeWorkflowExecution+    , DescribeWorkflowExecution+    -- * Request Lenses     , dweDomain     , dweExecution -    -- * Response-    , DescribeWorkflowExecutionResponse-    -- ** Response constructor+    -- * Destructuring the Response     , describeWorkflowExecutionResponse-    -- ** Response lenses-    , dwerExecutionConfiguration-    , dwerExecutionInfo-    , dwerLatestActivityTaskTimestamp-    , dwerLatestExecutionContext-    , dwerOpenCounts+    , DescribeWorkflowExecutionResponse+    -- * Response Lenses+    , dwersLatestActivityTaskTimestamp+    , dwersLatestExecutionContext+    , dwersStatus+    , dwersExecutionInfo+    , dwersExecutionConfiguration+    , dwersOpenCounts     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data DescribeWorkflowExecution = DescribeWorkflowExecution-    { _dweDomain    :: Text-    , _dweExecution :: WorkflowExecution-    } deriving (Eq, Read, Show)+-- | /See:/ 'describeWorkflowExecution' smart constructor.+data DescribeWorkflowExecution = DescribeWorkflowExecution'+    { _dweDomain    :: !Text+    , _dweExecution :: !WorkflowExecution+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DescribeWorkflowExecution' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DescribeWorkflowExecution' with the minimum fields required to make a request. ----- * 'dweDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dweExecution' @::@ 'WorkflowExecution'+-- * 'dweDomain' ---describeWorkflowExecution :: Text -- ^ 'dweDomain'-                          -> WorkflowExecution -- ^ 'dweExecution'-                          -> DescribeWorkflowExecution-describeWorkflowExecution p1 p2 = DescribeWorkflowExecution-    { _dweDomain    = p1-    , _dweExecution = p2+-- * 'dweExecution'+describeWorkflowExecution+    :: Text -- ^ 'dweDomain'+    -> WorkflowExecution -- ^ 'dweExecution'+    -> DescribeWorkflowExecution+describeWorkflowExecution pDomain_ pExecution_ =+    DescribeWorkflowExecution'+    { _dweDomain = pDomain_+    , _dweExecution = pExecution_     }  -- | The name of the domain containing the workflow execution. dweDomain :: Lens' DescribeWorkflowExecution Text-dweDomain = lens _dweDomain (\s a -> s { _dweDomain = a })+dweDomain = lens _dweDomain (\ s a -> s{_dweDomain = a});  -- | The workflow execution to describe. dweExecution :: Lens' DescribeWorkflowExecution WorkflowExecution-dweExecution = lens _dweExecution (\s a -> s { _dweExecution = a })+dweExecution = lens _dweExecution (\ s a -> s{_dweExecution = a}); -data DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse-    { _dwerExecutionConfiguration      :: WorkflowExecutionConfiguration-    , _dwerExecutionInfo               :: WorkflowExecutionInfo-    , _dwerLatestActivityTaskTimestamp :: Maybe POSIX-    , _dwerLatestExecutionContext      :: Maybe Text-    , _dwerOpenCounts                  :: WorkflowExecutionOpenCounts-    } deriving (Eq, Read, Show)+instance AWSRequest DescribeWorkflowExecution where+        type Sv DescribeWorkflowExecution = SWF+        type Rs DescribeWorkflowExecution =+             DescribeWorkflowExecutionResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 DescribeWorkflowExecutionResponse' <$>+                   (x .?> "latestActivityTaskTimestamp") <*>+                     (x .?> "latestExecutionContext")+                     <*> (pure (fromEnum s))+                     <*> (x .:> "executionInfo")+                     <*> (x .:> "executionConfiguration")+                     <*> (x .:> "openCounts")) --- | 'DescribeWorkflowExecutionResponse' constructor.+instance ToHeaders DescribeWorkflowExecution where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DescribeWorkflowExecution" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])++instance ToJSON DescribeWorkflowExecution where+        toJSON DescribeWorkflowExecution'{..}+          = object+              ["domain" .= _dweDomain,+               "execution" .= _dweExecution]++instance ToPath DescribeWorkflowExecution where+        toPath = const "/"++instance ToQuery DescribeWorkflowExecution where+        toQuery = const mempty++-- | Contains details about a workflow execution. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'describeWorkflowExecutionResponse' smart constructor.+data DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse'+    { _dwersLatestActivityTaskTimestamp :: !(Maybe POSIX)+    , _dwersLatestExecutionContext      :: !(Maybe Text)+    , _dwersStatus                      :: !Int+    , _dwersExecutionInfo               :: !WorkflowExecutionInfo+    , _dwersExecutionConfiguration      :: !WorkflowExecutionConfiguration+    , _dwersOpenCounts                  :: !WorkflowExecutionOpenCounts+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeWorkflowExecutionResponse' with the minimum fields required to make a request. ----- * 'dwerExecutionConfiguration' @::@ 'WorkflowExecutionConfiguration'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dwerExecutionInfo' @::@ 'WorkflowExecutionInfo'+-- * 'dwersLatestActivityTaskTimestamp' ----- * 'dwerLatestActivityTaskTimestamp' @::@ 'Maybe' 'UTCTime'+-- * 'dwersLatestExecutionContext' ----- * 'dwerLatestExecutionContext' @::@ 'Maybe' 'Text'+-- * 'dwersStatus' ----- * 'dwerOpenCounts' @::@ 'WorkflowExecutionOpenCounts'+-- * 'dwersExecutionInfo' ---describeWorkflowExecutionResponse :: WorkflowExecutionInfo -- ^ 'dwerExecutionInfo'-                                  -> WorkflowExecutionConfiguration -- ^ 'dwerExecutionConfiguration'-                                  -> WorkflowExecutionOpenCounts -- ^ 'dwerOpenCounts'-                                  -> DescribeWorkflowExecutionResponse-describeWorkflowExecutionResponse p1 p2 p3 = DescribeWorkflowExecutionResponse-    { _dwerExecutionInfo               = p1-    , _dwerExecutionConfiguration      = p2-    , _dwerOpenCounts                  = p3-    , _dwerLatestActivityTaskTimestamp = Nothing-    , _dwerLatestExecutionContext      = Nothing+-- * 'dwersExecutionConfiguration'+--+-- * 'dwersOpenCounts'+describeWorkflowExecutionResponse+    :: Int -- ^ 'dwersStatus'+    -> WorkflowExecutionInfo -- ^ 'dwersExecutionInfo'+    -> WorkflowExecutionConfiguration -- ^ 'dwersExecutionConfiguration'+    -> WorkflowExecutionOpenCounts -- ^ 'dwersOpenCounts'+    -> DescribeWorkflowExecutionResponse+describeWorkflowExecutionResponse pStatus_ pExecutionInfo_ pExecutionConfiguration_ pOpenCounts_ =+    DescribeWorkflowExecutionResponse'+    { _dwersLatestActivityTaskTimestamp = Nothing+    , _dwersLatestExecutionContext = Nothing+    , _dwersStatus = pStatus_+    , _dwersExecutionInfo = pExecutionInfo_+    , _dwersExecutionConfiguration = pExecutionConfiguration_+    , _dwersOpenCounts = pOpenCounts_     } --- | The configuration settings for this workflow execution including timeout--- values, tasklist etc.-dwerExecutionConfiguration :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration-dwerExecutionConfiguration =-    lens _dwerExecutionConfiguration-        (\s a -> s { _dwerExecutionConfiguration = a })---- | Information about the workflow execution.-dwerExecutionInfo :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo-dwerExecutionInfo =-    lens _dwerExecutionInfo (\s a -> s { _dwerExecutionInfo = a })- -- | The time when the last activity task was scheduled for this workflow--- execution. You can use this information to determine if the workflow has not--- made progress for an unusually long period of time and might require a--- corrective action.-dwerLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime)-dwerLatestActivityTaskTimestamp =-    lens _dwerLatestActivityTaskTimestamp-        (\s a -> s { _dwerLatestActivityTaskTimestamp = a })-            . mapping _Time+-- execution. You can use this information to determine if the workflow has+-- not made progress for an unusually long period of time and might require+-- a corrective action.+dwersLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime)+dwersLatestActivityTaskTimestamp = lens _dwersLatestActivityTaskTimestamp (\ s a -> s{_dwersLatestActivityTaskTimestamp = a}) . mapping _Time;  -- | The latest executionContext provided by the decider for this workflow--- execution. A decider can provide an executionContext (a free-form string)--- when closing a decision task using 'RespondDecisionTaskCompleted'.-dwerLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text)-dwerLatestExecutionContext =-    lens _dwerLatestExecutionContext-        (\s a -> s { _dwerLatestExecutionContext = a })---- | The number of tasks for this workflow execution. This includes open and--- closed tasks of all types.-dwerOpenCounts :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts-dwerOpenCounts = lens _dwerOpenCounts (\s a -> s { _dwerOpenCounts = a })--instance ToPath DescribeWorkflowExecution where-    toPath = const "/"--instance ToQuery DescribeWorkflowExecution where-    toQuery = const mempty--instance ToHeaders DescribeWorkflowExecution+-- execution. A decider can provide an executionContext (a free-form+-- string) when closing a decision task using RespondDecisionTaskCompleted.+dwersLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text)+dwersLatestExecutionContext = lens _dwersLatestExecutionContext (\ s a -> s{_dwersLatestExecutionContext = a}); -instance ToJSON DescribeWorkflowExecution where-    toJSON DescribeWorkflowExecution{..} = object-        [ "domain"    .= _dweDomain-        , "execution" .= _dweExecution-        ]+-- | The response status code.+dwersStatus :: Lens' DescribeWorkflowExecutionResponse Int+dwersStatus = lens _dwersStatus (\ s a -> s{_dwersStatus = a}); -instance AWSRequest DescribeWorkflowExecution where-    type Sv DescribeWorkflowExecution = SWF-    type Rs DescribeWorkflowExecution = DescribeWorkflowExecutionResponse+-- | Information about the workflow execution.+dwersExecutionInfo :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo+dwersExecutionInfo = lens _dwersExecutionInfo (\ s a -> s{_dwersExecutionInfo = a}); -    request  = post "DescribeWorkflowExecution"-    response = jsonResponse+-- | The configuration settings for this workflow execution including timeout+-- values, tasklist etc.+dwersExecutionConfiguration :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration+dwersExecutionConfiguration = lens _dwersExecutionConfiguration (\ s a -> s{_dwersExecutionConfiguration = a}); -instance FromJSON DescribeWorkflowExecutionResponse where-    parseJSON = withObject "DescribeWorkflowExecutionResponse" $ \o -> DescribeWorkflowExecutionResponse-        <$> o .:  "executionConfiguration"-        <*> o .:  "executionInfo"-        <*> o .:? "latestActivityTaskTimestamp"-        <*> o .:? "latestExecutionContext"-        <*> o .:  "openCounts"+-- | The number of tasks for this workflow execution. This includes open and+-- closed tasks of all types.+dwersOpenCounts :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts+dwersOpenCounts = lens _dwersOpenCounts (\ s a -> s{_dwersOpenCounts = a});
gen/Network/AWS/SWF/DescribeWorkflowType.hs view
@@ -1,159 +1,188 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.DescribeWorkflowType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about the specified /workflow type/. This includes+-- Returns information about the specified /workflow type/. This includes -- configuration settings specified when the type was registered and other--- information such as creation date, current status, etc.+-- information such as creation date, current status, and so on. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'workflowType.name': String constraint. The key is 'swf:workflowType.name'. 'workflowType.version': String constraint. The key is 'swf:workflowType.version'--- .    If the caller does not have sufficient permissions to invoke the action,--- or the parameter values fall outside the specified constraints, the action--- fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'workflowType.name': String constraint. The key is+--         'swf:workflowType.name'.+--     -   'workflowType.version': String constraint. The key is+--         'swf:workflowType.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeWorkflowType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DescribeWorkflowType.html AWS API Reference> for DescribeWorkflowType. module Network.AWS.SWF.DescribeWorkflowType     (-    -- * Request-      DescribeWorkflowType-    -- ** Request constructor-    , describeWorkflowType-    -- ** Request lenses+    -- * Creating a Request+      describeWorkflowType+    , DescribeWorkflowType+    -- * Request Lenses     , dwtDomain     , dwtWorkflowType -    -- * Response-    , DescribeWorkflowTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , describeWorkflowTypeResponse-    -- ** Response lenses-    , dwtrConfiguration-    , dwtrTypeInfo+    , DescribeWorkflowTypeResponse+    -- * Response Lenses+    , dwtrsStatus+    , dwtrsTypeInfo+    , dwtrsConfiguration     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data DescribeWorkflowType = DescribeWorkflowType-    { _dwtDomain       :: Text-    , _dwtWorkflowType :: WorkflowType-    } deriving (Eq, Read, Show)+-- | /See:/ 'describeWorkflowType' smart constructor.+data DescribeWorkflowType = DescribeWorkflowType'+    { _dwtDomain       :: !Text+    , _dwtWorkflowType :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DescribeWorkflowType' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DescribeWorkflowType' with the minimum fields required to make a request. ----- * 'dwtDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dwtWorkflowType' @::@ 'WorkflowType'+-- * 'dwtDomain' ---describeWorkflowType :: Text -- ^ 'dwtDomain'-                     -> WorkflowType -- ^ 'dwtWorkflowType'-                     -> DescribeWorkflowType-describeWorkflowType p1 p2 = DescribeWorkflowType-    { _dwtDomain       = p1-    , _dwtWorkflowType = p2+-- * 'dwtWorkflowType'+describeWorkflowType+    :: Text -- ^ 'dwtDomain'+    -> WorkflowType -- ^ 'dwtWorkflowType'+    -> DescribeWorkflowType+describeWorkflowType pDomain_ pWorkflowType_ =+    DescribeWorkflowType'+    { _dwtDomain = pDomain_+    , _dwtWorkflowType = pWorkflowType_     }  -- | The name of the domain in which this workflow type is registered. dwtDomain :: Lens' DescribeWorkflowType Text-dwtDomain = lens _dwtDomain (\s a -> s { _dwtDomain = a })+dwtDomain = lens _dwtDomain (\ s a -> s{_dwtDomain = a});  -- | The workflow type to describe. dwtWorkflowType :: Lens' DescribeWorkflowType WorkflowType-dwtWorkflowType = lens _dwtWorkflowType (\s a -> s { _dwtWorkflowType = a })+dwtWorkflowType = lens _dwtWorkflowType (\ s a -> s{_dwtWorkflowType = a}); -data DescribeWorkflowTypeResponse = DescribeWorkflowTypeResponse-    { _dwtrConfiguration :: WorkflowTypeConfiguration-    , _dwtrTypeInfo      :: WorkflowTypeInfo-    } deriving (Eq, Read, Show)+instance AWSRequest DescribeWorkflowType where+        type Sv DescribeWorkflowType = SWF+        type Rs DescribeWorkflowType =+             DescribeWorkflowTypeResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 DescribeWorkflowTypeResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "typeInfo") <*>+                     (x .:> "configuration")) --- | 'DescribeWorkflowTypeResponse' constructor.+instance ToHeaders DescribeWorkflowType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.DescribeWorkflowType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])++instance ToJSON DescribeWorkflowType where+        toJSON DescribeWorkflowType'{..}+          = object+              ["domain" .= _dwtDomain,+               "workflowType" .= _dwtWorkflowType]++instance ToPath DescribeWorkflowType where+        toPath = const "/"++instance ToQuery DescribeWorkflowType where+        toQuery = const mempty++-- | Contains details about a workflow type. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'describeWorkflowTypeResponse' smart constructor.+data DescribeWorkflowTypeResponse = DescribeWorkflowTypeResponse'+    { _dwtrsStatus        :: !Int+    , _dwtrsTypeInfo      :: !WorkflowTypeInfo+    , _dwtrsConfiguration :: !WorkflowTypeConfiguration+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeWorkflowTypeResponse' with the minimum fields required to make a request. ----- * 'dwtrConfiguration' @::@ 'WorkflowTypeConfiguration'+-- Use one of the following lenses to modify other fields as desired: ----- * 'dwtrTypeInfo' @::@ 'WorkflowTypeInfo'+-- * 'dwtrsStatus' ---describeWorkflowTypeResponse :: WorkflowTypeInfo -- ^ 'dwtrTypeInfo'-                             -> WorkflowTypeConfiguration -- ^ 'dwtrConfiguration'-                             -> DescribeWorkflowTypeResponse-describeWorkflowTypeResponse p1 p2 = DescribeWorkflowTypeResponse-    { _dwtrTypeInfo      = p1-    , _dwtrConfiguration = p2+-- * 'dwtrsTypeInfo'+--+-- * 'dwtrsConfiguration'+describeWorkflowTypeResponse+    :: Int -- ^ 'dwtrsStatus'+    -> WorkflowTypeInfo -- ^ 'dwtrsTypeInfo'+    -> WorkflowTypeConfiguration -- ^ 'dwtrsConfiguration'+    -> DescribeWorkflowTypeResponse+describeWorkflowTypeResponse pStatus_ pTypeInfo_ pConfiguration_ =+    DescribeWorkflowTypeResponse'+    { _dwtrsStatus = pStatus_+    , _dwtrsTypeInfo = pTypeInfo_+    , _dwtrsConfiguration = pConfiguration_     } --- | Configuration settings of the workflow type registered through 'RegisterWorkflowType'-dwtrConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration-dwtrConfiguration =-    lens _dwtrConfiguration (\s a -> s { _dwtrConfiguration = a })+-- | The response status code.+dwtrsStatus :: Lens' DescribeWorkflowTypeResponse Int+dwtrsStatus = lens _dwtrsStatus (\ s a -> s{_dwtrsStatus = a});  -- | General information about the workflow type. ----- The status of the workflow type (returned in the WorkflowTypeInfo structure)--- can be one of the following.+-- The status of the workflow type (returned in the WorkflowTypeInfo+-- structure) can be one of the following. ----- REGISTERED: The type is registered and available. Workers supporting this--- type should be running.  DEPRECATED: The type was deprecated using 'DeprecateWorkflowType', but is still in use. You should keep workers supporting this type running.--- You cannot create new workflow executions of this type.-dwtrTypeInfo :: Lens' DescribeWorkflowTypeResponse WorkflowTypeInfo-dwtrTypeInfo = lens _dwtrTypeInfo (\s a -> s { _dwtrTypeInfo = a })--instance ToPath DescribeWorkflowType where-    toPath = const "/"--instance ToQuery DescribeWorkflowType where-    toQuery = const mempty--instance ToHeaders DescribeWorkflowType--instance ToJSON DescribeWorkflowType where-    toJSON DescribeWorkflowType{..} = object-        [ "domain"       .= _dwtDomain-        , "workflowType" .= _dwtWorkflowType-        ]--instance AWSRequest DescribeWorkflowType where-    type Sv DescribeWorkflowType = SWF-    type Rs DescribeWorkflowType = DescribeWorkflowTypeResponse--    request  = post "DescribeWorkflowType"-    response = jsonResponse+-- -   __REGISTERED__: The type is registered and available. Workers+--     supporting this type should be running.+-- -   __DEPRECATED__: The type was deprecated using DeprecateWorkflowType,+--     but is still in use. You should keep workers supporting this type+--     running. You cannot create new workflow executions of this type.+dwtrsTypeInfo :: Lens' DescribeWorkflowTypeResponse WorkflowTypeInfo+dwtrsTypeInfo = lens _dwtrsTypeInfo (\ s a -> s{_dwtrsTypeInfo = a}); -instance FromJSON DescribeWorkflowTypeResponse where-    parseJSON = withObject "DescribeWorkflowTypeResponse" $ \o -> DescribeWorkflowTypeResponse-        <$> o .:  "configuration"-        <*> o .:  "typeInfo"+-- | Configuration settings of the workflow type registered through+-- RegisterWorkflowType+dwtrsConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration+dwtrsConfiguration = lens _dwtrsConfiguration (\ s a -> s{_dwtrsConfiguration = a});
gen/Network/AWS/SWF/GetWorkflowExecutionHistory.hs view
@@ -1,206 +1,237 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.GetWorkflowExecutionHistory--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the history of the specified workflow execution. The results may be--- split into multiple pages. To retrieve subsequent pages, make the call again--- using the 'nextPageToken' returned by the initial call.+-- Returns the history of the specified workflow execution. The results may+-- be split into multiple pages. To retrieve subsequent pages, make the+-- call again using the 'nextPageToken' returned by the initial call. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_GetWorkflowExecutionHistory.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_GetWorkflowExecutionHistory.html AWS API Reference> for GetWorkflowExecutionHistory.+--+-- This operation returns paginated results. module Network.AWS.SWF.GetWorkflowExecutionHistory     (-    -- * Request-      GetWorkflowExecutionHistory-    -- ** Request constructor-    , getWorkflowExecutionHistory-    -- ** Request lenses-    , gwehDomain-    , gwehExecution-    , gwehMaximumPageSize+    -- * Creating a Request+      getWorkflowExecutionHistory+    , GetWorkflowExecutionHistory+    -- * Request Lenses     , gwehNextPageToken     , gwehReverseOrder+    , gwehMaximumPageSize+    , gwehDomain+    , gwehExecution -    -- * Response-    , GetWorkflowExecutionHistoryResponse-    -- ** Response constructor+    -- * Destructuring the Response     , getWorkflowExecutionHistoryResponse-    -- ** Response lenses-    , gwehrEvents-    , gwehrNextPageToken+    , GetWorkflowExecutionHistoryResponse+    -- * Response Lenses+    , gwehrsNextPageToken+    , gwehrsStatus+    , gwehrsEvents     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data GetWorkflowExecutionHistory = GetWorkflowExecutionHistory-    { _gwehDomain          :: Text-    , _gwehExecution       :: WorkflowExecution-    , _gwehMaximumPageSize :: Maybe Nat-    , _gwehNextPageToken   :: Maybe Text-    , _gwehReverseOrder    :: Maybe Bool-    } deriving (Eq, Read, Show)+-- | /See:/ 'getWorkflowExecutionHistory' smart constructor.+data GetWorkflowExecutionHistory = GetWorkflowExecutionHistory'+    { _gwehNextPageToken   :: !(Maybe Text)+    , _gwehReverseOrder    :: !(Maybe Bool)+    , _gwehMaximumPageSize :: !(Maybe Nat)+    , _gwehDomain          :: !Text+    , _gwehExecution       :: !WorkflowExecution+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'GetWorkflowExecutionHistory' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'GetWorkflowExecutionHistory' with the minimum fields required to make a request. ----- * 'gwehDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'gwehExecution' @::@ 'WorkflowExecution'+-- * 'gwehNextPageToken' ----- * 'gwehMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'gwehReverseOrder' ----- * 'gwehNextPageToken' @::@ 'Maybe' 'Text'+-- * 'gwehMaximumPageSize' ----- * 'gwehReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'gwehDomain' ---getWorkflowExecutionHistory :: Text -- ^ 'gwehDomain'-                            -> WorkflowExecution -- ^ 'gwehExecution'-                            -> GetWorkflowExecutionHistory-getWorkflowExecutionHistory p1 p2 = GetWorkflowExecutionHistory-    { _gwehDomain          = p1-    , _gwehExecution       = p2-    , _gwehNextPageToken   = Nothing+-- * 'gwehExecution'+getWorkflowExecutionHistory+    :: Text -- ^ 'gwehDomain'+    -> WorkflowExecution -- ^ 'gwehExecution'+    -> GetWorkflowExecutionHistory+getWorkflowExecutionHistory pDomain_ pExecution_ =+    GetWorkflowExecutionHistory'+    { _gwehNextPageToken = Nothing+    , _gwehReverseOrder = Nothing     , _gwehMaximumPageSize = Nothing-    , _gwehReverseOrder    = Nothing+    , _gwehDomain = pDomain_+    , _gwehExecution = pExecution_     } --- | The name of the domain containing the workflow execution.-gwehDomain :: Lens' GetWorkflowExecutionHistory Text-gwehDomain = lens _gwehDomain (\s a -> s { _gwehDomain = a })+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+gwehNextPageToken :: Lens' GetWorkflowExecutionHistory (Maybe Text)+gwehNextPageToken = lens _gwehNextPageToken (\ s a -> s{_gwehNextPageToken = a}); --- | Specifies the workflow execution for which to return the history.-gwehExecution :: Lens' GetWorkflowExecutionHistory WorkflowExecution-gwehExecution = lens _gwehExecution (\s a -> s { _gwehExecution = a })+-- | When set to 'true', returns the events in reverse order. By default the+-- results are returned in ascending order of the 'eventTimeStamp' of the+-- events.+gwehReverseOrder :: Lens' GetWorkflowExecutionHistory (Maybe Bool)+gwehReverseOrder = lens _gwehReverseOrder (\ s a -> s{_gwehReverseOrder = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum. gwehMaximumPageSize :: Lens' GetWorkflowExecutionHistory (Maybe Natural)-gwehMaximumPageSize =-    lens _gwehMaximumPageSize (\s a -> s { _gwehMaximumPageSize = a })-        . mapping _Nat+gwehMaximumPageSize = lens _gwehMaximumPageSize (\ s a -> s{_gwehMaximumPageSize = a}) . mapping _Nat; --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-gwehNextPageToken :: Lens' GetWorkflowExecutionHistory (Maybe Text)-gwehNextPageToken =-    lens _gwehNextPageToken (\s a -> s { _gwehNextPageToken = a })+-- | The name of the domain containing the workflow execution.+gwehDomain :: Lens' GetWorkflowExecutionHistory Text+gwehDomain = lens _gwehDomain (\ s a -> s{_gwehDomain = a}); --- | When set to 'true', returns the events in reverse order. By default the results--- are returned in ascending order of the 'eventTimeStamp' of the events.-gwehReverseOrder :: Lens' GetWorkflowExecutionHistory (Maybe Bool)-gwehReverseOrder = lens _gwehReverseOrder (\s a -> s { _gwehReverseOrder = a })+-- | Specifies the workflow execution for which to return the history.+gwehExecution :: Lens' GetWorkflowExecutionHistory WorkflowExecution+gwehExecution = lens _gwehExecution (\ s a -> s{_gwehExecution = a}); -data GetWorkflowExecutionHistoryResponse = GetWorkflowExecutionHistoryResponse-    { _gwehrEvents        :: List "events" HistoryEvent-    , _gwehrNextPageToken :: Maybe Text-    } deriving (Eq, Read, Show)+instance AWSPager GetWorkflowExecutionHistory where+        page rq rs+          | stop (rs ^. gwehrsNextPageToken) = Nothing+          | stop (rs ^. gwehrsEvents) = Nothing+          | otherwise =+            Just $ rq &+              gwehNextPageToken .~ rs ^. gwehrsNextPageToken --- | 'GetWorkflowExecutionHistoryResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'gwehrEvents' @::@ ['HistoryEvent']------ * 'gwehrNextPageToken' @::@ 'Maybe' 'Text'----getWorkflowExecutionHistoryResponse :: GetWorkflowExecutionHistoryResponse-getWorkflowExecutionHistoryResponse = GetWorkflowExecutionHistoryResponse-    { _gwehrEvents        = mempty-    , _gwehrNextPageToken = Nothing-    }+instance AWSRequest GetWorkflowExecutionHistory where+        type Sv GetWorkflowExecutionHistory = SWF+        type Rs GetWorkflowExecutionHistory =+             GetWorkflowExecutionHistoryResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 GetWorkflowExecutionHistoryResponse' <$>+                   (x .?> "nextPageToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "events" .!@ mempty)) --- | The list of history events.-gwehrEvents :: Lens' GetWorkflowExecutionHistoryResponse [HistoryEvent]-gwehrEvents = lens _gwehrEvents (\s a -> s { _gwehrEvents = a }) . _List+instance ToHeaders GetWorkflowExecutionHistory where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.GetWorkflowExecutionHistory"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-gwehrNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text)-gwehrNextPageToken =-    lens _gwehrNextPageToken (\s a -> s { _gwehrNextPageToken = a })+instance ToJSON GetWorkflowExecutionHistory where+        toJSON GetWorkflowExecutionHistory'{..}+          = object+              ["nextPageToken" .= _gwehNextPageToken,+               "reverseOrder" .= _gwehReverseOrder,+               "maximumPageSize" .= _gwehMaximumPageSize,+               "domain" .= _gwehDomain,+               "execution" .= _gwehExecution]  instance ToPath GetWorkflowExecutionHistory where-    toPath = const "/"+        toPath = const "/"  instance ToQuery GetWorkflowExecutionHistory where-    toQuery = const mempty--instance ToHeaders GetWorkflowExecutionHistory+        toQuery = const mempty -instance ToJSON GetWorkflowExecutionHistory where-    toJSON GetWorkflowExecutionHistory{..} = object-        [ "domain"          .= _gwehDomain-        , "execution"       .= _gwehExecution-        , "nextPageToken"   .= _gwehNextPageToken-        , "maximumPageSize" .= _gwehMaximumPageSize-        , "reverseOrder"    .= _gwehReverseOrder-        ]+-- | Paginated representation of a workflow history for a workflow execution.+-- This is the up to date, complete and authoritative record of the events+-- related to all tasks and events in the life of the workflow execution.+--+-- /See:/ 'getWorkflowExecutionHistoryResponse' smart constructor.+data GetWorkflowExecutionHistoryResponse = GetWorkflowExecutionHistoryResponse'+    { _gwehrsNextPageToken :: !(Maybe Text)+    , _gwehrsStatus        :: !Int+    , _gwehrsEvents        :: ![HistoryEvent]+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest GetWorkflowExecutionHistory where-    type Sv GetWorkflowExecutionHistory = SWF-    type Rs GetWorkflowExecutionHistory = GetWorkflowExecutionHistoryResponse+-- | Creates a value of 'GetWorkflowExecutionHistoryResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gwehrsNextPageToken'+--+-- * 'gwehrsStatus'+--+-- * 'gwehrsEvents'+getWorkflowExecutionHistoryResponse+    :: Int -- ^ 'gwehrsStatus'+    -> GetWorkflowExecutionHistoryResponse+getWorkflowExecutionHistoryResponse pStatus_ =+    GetWorkflowExecutionHistoryResponse'+    { _gwehrsNextPageToken = Nothing+    , _gwehrsStatus = pStatus_+    , _gwehrsEvents = mempty+    } -    request  = post "GetWorkflowExecutionHistory"-    response = jsonResponse+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+gwehrsNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text)+gwehrsNextPageToken = lens _gwehrsNextPageToken (\ s a -> s{_gwehrsNextPageToken = a}); -instance FromJSON GetWorkflowExecutionHistoryResponse where-    parseJSON = withObject "GetWorkflowExecutionHistoryResponse" $ \o -> GetWorkflowExecutionHistoryResponse-        <$> o .:? "events" .!= mempty-        <*> o .:? "nextPageToken"+-- | The response status code.+gwehrsStatus :: Lens' GetWorkflowExecutionHistoryResponse Int+gwehrsStatus = lens _gwehrsStatus (\ s a -> s{_gwehrsStatus = a}); -instance AWSPager GetWorkflowExecutionHistory where-    page rq rs-        | stop (rs ^. gwehrNextPageToken) = Nothing-        | otherwise = (\x -> rq & gwehNextPageToken ?~ x)-            <$> (rs ^. gwehrNextPageToken)+-- | The list of history events.+gwehrsEvents :: Lens' GetWorkflowExecutionHistoryResponse [HistoryEvent]+gwehrsEvents = lens _gwehrsEvents (\ s a -> s{_gwehrsEvents = a}) . _Coerce;
gen/Network/AWS/SWF/ListActivityTypes.hs view
@@ -1,218 +1,244 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.ListActivityTypes--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about all activities registered in the specified domain--- that match the specified name and registration status. The result includes--- information like creation date, current status of the activity, etc. The--- results may be split into multiple pages. To retrieve subsequent pages, make--- the call again using the 'nextPageToken' returned by the initial call.+-- Returns information about all activities registered in the specified+-- domain that match the specified name and registration status. The result+-- includes information like creation date, current status of the activity,+-- etc. The results may be split into multiple pages. To retrieve+-- subsequent pages, make the call again using the 'nextPageToken' returned+-- by the initial call. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListActivityTypes.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListActivityTypes.html AWS API Reference> for ListActivityTypes.+--+-- This operation returns paginated results. module Network.AWS.SWF.ListActivityTypes     (-    -- * Request-      ListActivityTypes-    -- ** Request constructor-    , listActivityTypes-    -- ** Request lenses-    , latDomain-    , latMaximumPageSize-    , latName+    -- * Creating a Request+      listActivityTypes+    , ListActivityTypes+    -- * Request Lenses     , latNextPageToken-    , latRegistrationStatus     , latReverseOrder+    , latName+    , latMaximumPageSize+    , latDomain+    , latRegistrationStatus -    -- * Response-    , ListActivityTypesResponse-    -- ** Response constructor+    -- * Destructuring the Response     , listActivityTypesResponse-    -- ** Response lenses-    , latrNextPageToken-    , latrTypeInfos+    , ListActivityTypesResponse+    -- * Response Lenses+    , latrsNextPageToken+    , latrsStatus+    , latrsTypeInfos     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data ListActivityTypes = ListActivityTypes-    { _latDomain             :: Text-    , _latMaximumPageSize    :: Maybe Nat-    , _latName               :: Maybe Text-    , _latNextPageToken      :: Maybe Text-    , _latRegistrationStatus :: RegistrationStatus-    , _latReverseOrder       :: Maybe Bool-    } deriving (Eq, Read, Show)+-- | /See:/ 'listActivityTypes' smart constructor.+data ListActivityTypes = ListActivityTypes'+    { _latNextPageToken      :: !(Maybe Text)+    , _latReverseOrder       :: !(Maybe Bool)+    , _latName               :: !(Maybe Text)+    , _latMaximumPageSize    :: !(Maybe Nat)+    , _latDomain             :: !Text+    , _latRegistrationStatus :: !RegistrationStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ListActivityTypes' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ListActivityTypes' with the minimum fields required to make a request. ----- * 'latDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'latMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'latNextPageToken' ----- * 'latName' @::@ 'Maybe' 'Text'+-- * 'latReverseOrder' ----- * 'latNextPageToken' @::@ 'Maybe' 'Text'+-- * 'latName' ----- * 'latRegistrationStatus' @::@ 'RegistrationStatus'+-- * 'latMaximumPageSize' ----- * 'latReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'latDomain' ---listActivityTypes :: Text -- ^ 'latDomain'-                  -> RegistrationStatus -- ^ 'latRegistrationStatus'-                  -> ListActivityTypes-listActivityTypes p1 p2 = ListActivityTypes-    { _latDomain             = p1-    , _latRegistrationStatus = p2-    , _latName               = Nothing-    , _latNextPageToken      = Nothing-    , _latMaximumPageSize    = Nothing-    , _latReverseOrder       = Nothing+-- * 'latRegistrationStatus'+listActivityTypes+    :: Text -- ^ 'latDomain'+    -> RegistrationStatus -- ^ 'latRegistrationStatus'+    -> ListActivityTypes+listActivityTypes pDomain_ pRegistrationStatus_ =+    ListActivityTypes'+    { _latNextPageToken = Nothing+    , _latReverseOrder = Nothing+    , _latName = Nothing+    , _latMaximumPageSize = Nothing+    , _latDomain = pDomain_+    , _latRegistrationStatus = pRegistrationStatus_     } --- | The name of the domain in which the activity types have been registered.-latDomain :: Lens' ListActivityTypes Text-latDomain = lens _latDomain (\s a -> s { _latDomain = a })---- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.-latMaximumPageSize :: Lens' ListActivityTypes (Maybe Natural)-latMaximumPageSize =-    lens _latMaximumPageSize (\s a -> s { _latMaximumPageSize = a })-        . mapping _Nat+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+latNextPageToken :: Lens' ListActivityTypes (Maybe Text)+latNextPageToken = lens _latNextPageToken (\ s a -> s{_latNextPageToken = a}); +-- | When set to 'true', returns the results in reverse order. By default,+-- the results are returned in ascending alphabetical order by 'name' of+-- the activity types.+latReverseOrder :: Lens' ListActivityTypes (Maybe Bool)+latReverseOrder = lens _latReverseOrder (\ s a -> s{_latReverseOrder = a});+ -- | If specified, only lists the activity types that have this name. latName :: Lens' ListActivityTypes (Maybe Text)-latName = lens _latName (\s a -> s { _latName = a })+latName = lens _latName (\ s a -> s{_latName = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-latNextPageToken :: Lens' ListActivityTypes (Maybe Text)-latNextPageToken = lens _latNextPageToken (\s a -> s { _latNextPageToken = a })+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum.+latMaximumPageSize :: Lens' ListActivityTypes (Maybe Natural)+latMaximumPageSize = lens _latMaximumPageSize (\ s a -> s{_latMaximumPageSize = a}) . mapping _Nat; +-- | The name of the domain in which the activity types have been registered.+latDomain :: Lens' ListActivityTypes Text+latDomain = lens _latDomain (\ s a -> s{_latDomain = a});+ -- | Specifies the registration status of the activity types to list. latRegistrationStatus :: Lens' ListActivityTypes RegistrationStatus-latRegistrationStatus =-    lens _latRegistrationStatus (\s a -> s { _latRegistrationStatus = a })---- | When set to 'true', returns the results in reverse order. By default, the--- results are returned in ascending alphabetical order by 'name' of the activity--- types.-latReverseOrder :: Lens' ListActivityTypes (Maybe Bool)-latReverseOrder = lens _latReverseOrder (\s a -> s { _latReverseOrder = a })+latRegistrationStatus = lens _latRegistrationStatus (\ s a -> s{_latRegistrationStatus = a}); -data ListActivityTypesResponse = ListActivityTypesResponse-    { _latrNextPageToken :: Maybe Text-    , _latrTypeInfos     :: List "typeInfos" ActivityTypeInfo-    } deriving (Eq, Read, Show)+instance AWSPager ListActivityTypes where+        page rq rs+          | stop (rs ^. latrsNextPageToken) = Nothing+          | stop (rs ^. latrsTypeInfos) = Nothing+          | otherwise =+            Just $ rq &+              latNextPageToken .~ rs ^. latrsNextPageToken --- | 'ListActivityTypesResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'latrNextPageToken' @::@ 'Maybe' 'Text'------ * 'latrTypeInfos' @::@ ['ActivityTypeInfo']----listActivityTypesResponse :: ListActivityTypesResponse-listActivityTypesResponse = ListActivityTypesResponse-    { _latrTypeInfos     = mempty-    , _latrNextPageToken = Nothing-    }+instance AWSRequest ListActivityTypes where+        type Sv ListActivityTypes = SWF+        type Rs ListActivityTypes = ListActivityTypesResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 ListActivityTypesResponse' <$>+                   (x .?> "nextPageToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "typeInfos" .!@ mempty)) --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-latrNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text)-latrNextPageToken =-    lens _latrNextPageToken (\s a -> s { _latrNextPageToken = a })+instance ToHeaders ListActivityTypes where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.ListActivityTypes" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | List of activity type information.-latrTypeInfos :: Lens' ListActivityTypesResponse [ActivityTypeInfo]-latrTypeInfos = lens _latrTypeInfos (\s a -> s { _latrTypeInfos = a }) . _List+instance ToJSON ListActivityTypes where+        toJSON ListActivityTypes'{..}+          = object+              ["nextPageToken" .= _latNextPageToken,+               "reverseOrder" .= _latReverseOrder,+               "name" .= _latName,+               "maximumPageSize" .= _latMaximumPageSize,+               "domain" .= _latDomain,+               "registrationStatus" .= _latRegistrationStatus]  instance ToPath ListActivityTypes where-    toPath = const "/"+        toPath = const "/"  instance ToQuery ListActivityTypes where-    toQuery = const mempty--instance ToHeaders ListActivityTypes+        toQuery = const mempty -instance ToJSON ListActivityTypes where-    toJSON ListActivityTypes{..} = object-        [ "domain"             .= _latDomain-        , "name"               .= _latName-        , "registrationStatus" .= _latRegistrationStatus-        , "nextPageToken"      .= _latNextPageToken-        , "maximumPageSize"    .= _latMaximumPageSize-        , "reverseOrder"       .= _latReverseOrder-        ]+-- | Contains a paginated list of activity type information structures.+--+-- /See:/ 'listActivityTypesResponse' smart constructor.+data ListActivityTypesResponse = ListActivityTypesResponse'+    { _latrsNextPageToken :: !(Maybe Text)+    , _latrsStatus        :: !Int+    , _latrsTypeInfos     :: ![ActivityTypeInfo]+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListActivityTypes where-    type Sv ListActivityTypes = SWF-    type Rs ListActivityTypes = ListActivityTypesResponse+-- | Creates a value of 'ListActivityTypesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'latrsNextPageToken'+--+-- * 'latrsStatus'+--+-- * 'latrsTypeInfos'+listActivityTypesResponse+    :: Int -- ^ 'latrsStatus'+    -> ListActivityTypesResponse+listActivityTypesResponse pStatus_ =+    ListActivityTypesResponse'+    { _latrsNextPageToken = Nothing+    , _latrsStatus = pStatus_+    , _latrsTypeInfos = mempty+    } -    request  = post "ListActivityTypes"-    response = jsonResponse+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+latrsNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text)+latrsNextPageToken = lens _latrsNextPageToken (\ s a -> s{_latrsNextPageToken = a}); -instance FromJSON ListActivityTypesResponse where-    parseJSON = withObject "ListActivityTypesResponse" $ \o -> ListActivityTypesResponse-        <$> o .:? "nextPageToken"-        <*> o .:? "typeInfos" .!= mempty+-- | The response status code.+latrsStatus :: Lens' ListActivityTypesResponse Int+latrsStatus = lens _latrsStatus (\ s a -> s{_latrsStatus = a}); -instance AWSPager ListActivityTypes where-    page rq rs-        | stop (rs ^. latrNextPageToken) = Nothing-        | otherwise = (\x -> rq & latNextPageToken ?~ x)-            <$> (rs ^. latrNextPageToken)+-- | List of activity type information.+latrsTypeInfos :: Lens' ListActivityTypesResponse [ActivityTypeInfo]+latrsTypeInfos = lens _latrsTypeInfos (\ s a -> s{_latrsTypeInfos = a}) . _Coerce;
gen/Network/AWS/SWF/ListClosedWorkflowExecutions.hs view
@@ -1,292 +1,269 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.ListClosedWorkflowExecutions--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns a list of closed workflow executions in the specified domain that--- meet the filtering criteria. The results may be split into multiple pages. To--- retrieve subsequent pages, make the call again using the nextPageToken--- returned by the initial call.+-- Returns a list of closed workflow executions in the specified domain+-- that meet the filtering criteria. The results may be split into multiple+-- pages. To retrieve subsequent pages, make the call again using the+-- nextPageToken returned by the initial call. ----- This operation is eventually consistent. The results are best effort and may--- not exactly reflect recent updates and changes. Access Control+-- This operation is eventually consistent. The results are best effort and+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'. 'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'. 'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.    If the caller does--- not have sufficient permissions to invoke the action, or the parameter values--- fall outside the specified constraints, the action fails. The associated--- event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagFilter.tag': String constraint. The key is+--         'swf:tagFilter.tag'.+--     -   'typeFilter.name': String constraint. The key is+--         'swf:typeFilter.name'.+--     -   'typeFilter.version': String constraint. The key is+--         'swf:typeFilter.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListClosedWorkflowExecutions.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListClosedWorkflowExecutions.html AWS API Reference> for ListClosedWorkflowExecutions.+--+-- This operation returns paginated results. module Network.AWS.SWF.ListClosedWorkflowExecutions     (-    -- * Request-      ListClosedWorkflowExecutions-    -- ** Request constructor-    , listClosedWorkflowExecutions-    -- ** Request lenses+    -- * Creating a Request+      listClosedWorkflowExecutions+    , ListClosedWorkflowExecutions+    -- * Request Lenses+    , lcweNextPageToken     , lcweCloseStatusFilter-    , lcweCloseTimeFilter-    , lcweDomain     , lcweExecutionFilter-    , lcweMaximumPageSize-    , lcweNextPageToken+    , lcweTypeFilter+    , lcweCloseTimeFilter     , lcweReverseOrder-    , lcweStartTimeFilter     , lcweTagFilter-    , lcweTypeFilter+    , lcweStartTimeFilter+    , lcweMaximumPageSize+    , lcweDomain -    -- * Response-    , ListClosedWorkflowExecutionsResponse-    -- ** Response constructor-    , listClosedWorkflowExecutionsResponse-    -- ** Response lenses-    , lcwerExecutionInfos-    , lcwerNextPageToken+    -- * Destructuring the Response+    , workflowExecutionInfos+    , WorkflowExecutionInfos+    -- * Response Lenses+    , weiNextPageToken+    , weiExecutionInfos     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data ListClosedWorkflowExecutions = ListClosedWorkflowExecutions-    { _lcweCloseStatusFilter :: Maybe CloseStatusFilter-    , _lcweCloseTimeFilter   :: Maybe ExecutionTimeFilter-    , _lcweDomain            :: Text-    , _lcweExecutionFilter   :: Maybe WorkflowExecutionFilter-    , _lcweMaximumPageSize   :: Maybe Nat-    , _lcweNextPageToken     :: Maybe Text-    , _lcweReverseOrder      :: Maybe Bool-    , _lcweStartTimeFilter   :: Maybe ExecutionTimeFilter-    , _lcweTagFilter         :: Maybe TagFilter-    , _lcweTypeFilter        :: Maybe WorkflowTypeFilter-    } deriving (Eq, Read, Show)+-- | /See:/ 'listClosedWorkflowExecutions' smart constructor.+data ListClosedWorkflowExecutions = ListClosedWorkflowExecutions'+    { _lcweNextPageToken     :: !(Maybe Text)+    , _lcweCloseStatusFilter :: !(Maybe CloseStatusFilter)+    , _lcweExecutionFilter   :: !(Maybe WorkflowExecutionFilter)+    , _lcweTypeFilter        :: !(Maybe WorkflowTypeFilter)+    , _lcweCloseTimeFilter   :: !(Maybe ExecutionTimeFilter)+    , _lcweReverseOrder      :: !(Maybe Bool)+    , _lcweTagFilter         :: !(Maybe TagFilter)+    , _lcweStartTimeFilter   :: !(Maybe ExecutionTimeFilter)+    , _lcweMaximumPageSize   :: !(Maybe Nat)+    , _lcweDomain            :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ListClosedWorkflowExecutions' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ListClosedWorkflowExecutions' with the minimum fields required to make a request. ----- * 'lcweCloseStatusFilter' @::@ 'Maybe' 'CloseStatusFilter'+-- Use one of the following lenses to modify other fields as desired: ----- * 'lcweCloseTimeFilter' @::@ 'Maybe' 'ExecutionTimeFilter'+-- * 'lcweNextPageToken' ----- * 'lcweDomain' @::@ 'Text'+-- * 'lcweCloseStatusFilter' ----- * 'lcweExecutionFilter' @::@ 'Maybe' 'WorkflowExecutionFilter'+-- * 'lcweExecutionFilter' ----- * 'lcweMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'lcweTypeFilter' ----- * 'lcweNextPageToken' @::@ 'Maybe' 'Text'+-- * 'lcweCloseTimeFilter' ----- * 'lcweReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'lcweReverseOrder' ----- * 'lcweStartTimeFilter' @::@ 'Maybe' 'ExecutionTimeFilter'+-- * 'lcweTagFilter' ----- * 'lcweTagFilter' @::@ 'Maybe' 'TagFilter'+-- * 'lcweStartTimeFilter' ----- * 'lcweTypeFilter' @::@ 'Maybe' 'WorkflowTypeFilter'+-- * 'lcweMaximumPageSize' ---listClosedWorkflowExecutions :: Text -- ^ 'lcweDomain'-                             -> ListClosedWorkflowExecutions-listClosedWorkflowExecutions p1 = ListClosedWorkflowExecutions-    { _lcweDomain            = p1-    , _lcweStartTimeFilter   = Nothing-    , _lcweCloseTimeFilter   = Nothing-    , _lcweExecutionFilter   = Nothing+-- * 'lcweDomain'+listClosedWorkflowExecutions+    :: Text -- ^ 'lcweDomain'+    -> ListClosedWorkflowExecutions+listClosedWorkflowExecutions pDomain_ =+    ListClosedWorkflowExecutions'+    { _lcweNextPageToken = Nothing     , _lcweCloseStatusFilter = Nothing-    , _lcweTypeFilter        = Nothing-    , _lcweTagFilter         = Nothing-    , _lcweNextPageToken     = Nothing-    , _lcweMaximumPageSize   = Nothing-    , _lcweReverseOrder      = Nothing+    , _lcweExecutionFilter = Nothing+    , _lcweTypeFilter = Nothing+    , _lcweCloseTimeFilter = Nothing+    , _lcweReverseOrder = Nothing+    , _lcweTagFilter = Nothing+    , _lcweStartTimeFilter = Nothing+    , _lcweMaximumPageSize = Nothing+    , _lcweDomain = pDomain_     } --- | If specified, only workflow executions that match this /close status/ are--- listed. For example, if TERMINATED is specified, then only TERMINATED--- workflow executions are listed.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.-lcweCloseStatusFilter :: Lens' ListClosedWorkflowExecutions (Maybe CloseStatusFilter)-lcweCloseStatusFilter =-    lens _lcweCloseStatusFilter (\s a -> s { _lcweCloseStatusFilter = a })+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+lcweNextPageToken :: Lens' ListClosedWorkflowExecutions (Maybe Text)+lcweNextPageToken = lens _lcweNextPageToken (\ s a -> s{_lcweNextPageToken = a}); --- | If specified, the workflow executions are included in the returned results--- based on whether their close times are within the range specified by this--- filter. Also, if this parameter is specified, the returned results are--- ordered by their close times.+-- | If specified, only workflow executions that match this /close status/+-- are listed. For example, if TERMINATED is specified, then only+-- TERMINATED workflow executions are listed. ----- 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify--- one of these in a request but not both.-lcweCloseTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)-lcweCloseTimeFilter =-    lens _lcweCloseTimeFilter (\s a -> s { _lcweCloseTimeFilter = a })---- | The name of the domain that contains the workflow executions to list.-lcweDomain :: Lens' ListClosedWorkflowExecutions Text-lcweDomain = lens _lcweDomain (\s a -> s { _lcweDomain = a })+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request.+lcweCloseStatusFilter :: Lens' ListClosedWorkflowExecutions (Maybe CloseStatusFilter)+lcweCloseStatusFilter = lens _lcweCloseStatusFilter (\ s a -> s{_lcweCloseStatusFilter = a}); --- | If specified, only workflow executions matching the workflow id specified in--- the filter are returned.+-- | If specified, only workflow executions matching the workflow ID+-- specified in the filter are returned. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request. lcweExecutionFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowExecutionFilter)-lcweExecutionFilter =-    lens _lcweExecutionFilter (\s a -> s { _lcweExecutionFilter = a })+lcweExecutionFilter = lens _lcweExecutionFilter (\ s a -> s{_lcweExecutionFilter = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | If specified, only executions of the type specified in the filter are+-- returned. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.-lcweMaximumPageSize :: Lens' ListClosedWorkflowExecutions (Maybe Natural)-lcweMaximumPageSize =-    lens _lcweMaximumPageSize (\s a -> s { _lcweMaximumPageSize = a })-        . mapping _Nat+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request.+lcweTypeFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowTypeFilter)+lcweTypeFilter = lens _lcweTypeFilter (\ s a -> s{_lcweTypeFilter = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | If specified, the workflow executions are included in the returned+-- results based on whether their close times are within the range+-- specified by this filter. Also, if this parameter is specified, the+-- returned results are ordered by their close times. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-lcweNextPageToken :: Lens' ListClosedWorkflowExecutions (Maybe Text)-lcweNextPageToken =-    lens _lcweNextPageToken (\s a -> s { _lcweNextPageToken = a })+-- 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must+-- specify one of these in a request but not both.+lcweCloseTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)+lcweCloseTimeFilter = lens _lcweCloseTimeFilter (\ s a -> s{_lcweCloseTimeFilter = a});  -- | When set to 'true', returns the results in reverse order. By default the--- results are returned in descending order of the start or the close time of--- the executions.+-- results are returned in descending order of the start or the close time+-- of the executions. lcweReverseOrder :: Lens' ListClosedWorkflowExecutions (Maybe Bool)-lcweReverseOrder = lens _lcweReverseOrder (\s a -> s { _lcweReverseOrder = a })---- | If specified, the workflow executions are included in the returned results--- based on whether their start times are within the range specified by this--- filter. Also, if this parameter is specified, the returned results are--- ordered by their start times.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify--- one of these in a request but not both.-lcweStartTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)-lcweStartTimeFilter =-    lens _lcweStartTimeFilter (\s a -> s { _lcweStartTimeFilter = a })+lcweReverseOrder = lens _lcweReverseOrder (\ s a -> s{_lcweReverseOrder = a});  -- | If specified, only executions that have the matching tag are listed. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.+-- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are+-- mutually exclusive. You can specify at most one of these in a request. lcweTagFilter :: Lens' ListClosedWorkflowExecutions (Maybe TagFilter)-lcweTagFilter = lens _lcweTagFilter (\s a -> s { _lcweTagFilter = a })+lcweTagFilter = lens _lcweTagFilter (\ s a -> s{_lcweTagFilter = a}); --- | If specified, only executions of the type specified in the filter are--- returned.+-- | If specified, the workflow executions are included in the returned+-- results based on whether their start times are within the range+-- specified by this filter. Also, if this parameter is specified, the+-- returned results are ordered by their start times. ----- 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually--- exclusive. You can specify at most one of these in a request.-lcweTypeFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowTypeFilter)-lcweTypeFilter = lens _lcweTypeFilter (\s a -> s { _lcweTypeFilter = a })--data ListClosedWorkflowExecutionsResponse = ListClosedWorkflowExecutionsResponse-    { _lcwerExecutionInfos :: List "executionInfos" WorkflowExecutionInfo-    , _lcwerNextPageToken  :: Maybe Text-    } deriving (Eq, Read, Show)+-- 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must+-- specify one of these in a request but not both.+lcweStartTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)+lcweStartTimeFilter = lens _lcweStartTimeFilter (\ s a -> s{_lcweStartTimeFilter = a}); --- | 'ListClosedWorkflowExecutionsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'lcwerExecutionInfos' @::@ ['WorkflowExecutionInfo']------ * 'lcwerNextPageToken' @::@ 'Maybe' 'Text'+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ---listClosedWorkflowExecutionsResponse :: ListClosedWorkflowExecutionsResponse-listClosedWorkflowExecutionsResponse = ListClosedWorkflowExecutionsResponse-    { _lcwerExecutionInfos = mempty-    , _lcwerNextPageToken  = Nothing-    }---- | The list of workflow information structures.-lcwerExecutionInfos :: Lens' ListClosedWorkflowExecutionsResponse [WorkflowExecutionInfo]-lcwerExecutionInfos =-    lens _lcwerExecutionInfos (\s a -> s { _lcwerExecutionInfos = a })-        . _List+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum.+lcweMaximumPageSize :: Lens' ListClosedWorkflowExecutions (Maybe Natural)+lcweMaximumPageSize = lens _lcweMaximumPageSize (\ s a -> s{_lcweMaximumPageSize = a}) . mapping _Nat; --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-lcwerNextPageToken :: Lens' ListClosedWorkflowExecutionsResponse (Maybe Text)-lcwerNextPageToken =-    lens _lcwerNextPageToken (\s a -> s { _lcwerNextPageToken = a })+-- | The name of the domain that contains the workflow executions to list.+lcweDomain :: Lens' ListClosedWorkflowExecutions Text+lcweDomain = lens _lcweDomain (\ s a -> s{_lcweDomain = a}); -instance ToPath ListClosedWorkflowExecutions where-    toPath = const "/"+instance AWSPager ListClosedWorkflowExecutions where+        page rq rs+          | stop (rs ^. weiNextPageToken) = Nothing+          | stop (rs ^. weiExecutionInfos) = Nothing+          | otherwise =+            Just $ rq &+              lcweNextPageToken .~ rs ^. weiNextPageToken -instance ToQuery ListClosedWorkflowExecutions where-    toQuery = const mempty+instance AWSRequest ListClosedWorkflowExecutions+         where+        type Sv ListClosedWorkflowExecutions = SWF+        type Rs ListClosedWorkflowExecutions =+             WorkflowExecutionInfos+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x) -instance ToHeaders ListClosedWorkflowExecutions+instance ToHeaders ListClosedWorkflowExecutions where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.ListClosedWorkflowExecutions"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])  instance ToJSON ListClosedWorkflowExecutions where-    toJSON ListClosedWorkflowExecutions{..} = object-        [ "domain"            .= _lcweDomain-        , "startTimeFilter"   .= _lcweStartTimeFilter-        , "closeTimeFilter"   .= _lcweCloseTimeFilter-        , "executionFilter"   .= _lcweExecutionFilter-        , "closeStatusFilter" .= _lcweCloseStatusFilter-        , "typeFilter"        .= _lcweTypeFilter-        , "tagFilter"         .= _lcweTagFilter-        , "nextPageToken"     .= _lcweNextPageToken-        , "maximumPageSize"   .= _lcweMaximumPageSize-        , "reverseOrder"      .= _lcweReverseOrder-        ]--instance AWSRequest ListClosedWorkflowExecutions where-    type Sv ListClosedWorkflowExecutions = SWF-    type Rs ListClosedWorkflowExecutions = ListClosedWorkflowExecutionsResponse--    request  = post "ListClosedWorkflowExecutions"-    response = jsonResponse+        toJSON ListClosedWorkflowExecutions'{..}+          = object+              ["nextPageToken" .= _lcweNextPageToken,+               "closeStatusFilter" .= _lcweCloseStatusFilter,+               "executionFilter" .= _lcweExecutionFilter,+               "typeFilter" .= _lcweTypeFilter,+               "closeTimeFilter" .= _lcweCloseTimeFilter,+               "reverseOrder" .= _lcweReverseOrder,+               "tagFilter" .= _lcweTagFilter,+               "startTimeFilter" .= _lcweStartTimeFilter,+               "maximumPageSize" .= _lcweMaximumPageSize,+               "domain" .= _lcweDomain] -instance FromJSON ListClosedWorkflowExecutionsResponse where-    parseJSON = withObject "ListClosedWorkflowExecutionsResponse" $ \o -> ListClosedWorkflowExecutionsResponse-        <$> o .:? "executionInfos" .!= mempty-        <*> o .:? "nextPageToken"+instance ToPath ListClosedWorkflowExecutions where+        toPath = const "/" -instance AWSPager ListClosedWorkflowExecutions where-    page rq rs-        | stop (rs ^. lcwerNextPageToken) = Nothing-        | otherwise = (\x -> rq & lcweNextPageToken ?~ x)-            <$> (rs ^. lcwerNextPageToken)+instance ToQuery ListClosedWorkflowExecutions where+        toQuery = const mempty
gen/Network/AWS/SWF/ListDomains.hs view
@@ -1,196 +1,224 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.ListDomains--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns the list of domains registered in the account. The results may be--- split into multiple pages. To retrieve subsequent pages, make the call again--- using the nextPageToken returned by the initial call.+-- Returns the list of domains registered in the account. The results may+-- be split into multiple pages. To retrieve subsequent pages, make the+-- call again using the nextPageToken returned by the initial call. -- -- This operation is eventually consistent. The results are best effort and--- may not exactly reflect recent updates and changes. Access Control+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. The element must be set to 'arn:aws:swf::AccountID:domain/*', where--- /AccountID/ is the account ID, with no dashes. Use an 'Action' element to allow--- or deny permission to call this action. You cannot use an IAM policy to--- constrain this action's parameters.  If the caller does not have sufficient--- permissions to invoke the action, or the parameter values fall outside the--- specified constraints, the action fails. The associated event attribute's cause--- parameter will be set to OPERATION_NOT_PERMITTED. For details and example--- IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains. The element must be set to+--     'arn:aws:swf::AccountID:domain\/*', where /AccountID/ is the account+--     ID, with no dashes.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListDomains.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListDomains.html AWS API Reference> for ListDomains.+--+-- This operation returns paginated results. module Network.AWS.SWF.ListDomains     (-    -- * Request-      ListDomains-    -- ** Request constructor-    , listDomains-    -- ** Request lenses-    , ldMaximumPageSize+    -- * Creating a Request+      listDomains+    , ListDomains+    -- * Request Lenses     , ldNextPageToken-    , ldRegistrationStatus     , ldReverseOrder+    , ldMaximumPageSize+    , ldRegistrationStatus -    -- * Response-    , ListDomainsResponse-    -- ** Response constructor+    -- * Destructuring the Response     , listDomainsResponse-    -- ** Response lenses-    , ldrDomainInfos-    , ldrNextPageToken+    , ListDomainsResponse+    -- * Response Lenses+    , ldrsNextPageToken+    , ldrsStatus+    , ldrsDomainInfos     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data ListDomains = ListDomains-    { _ldMaximumPageSize    :: Maybe Nat-    , _ldNextPageToken      :: Maybe Text-    , _ldRegistrationStatus :: RegistrationStatus-    , _ldReverseOrder       :: Maybe Bool-    } deriving (Eq, Read, Show)+-- | /See:/ 'listDomains' smart constructor.+data ListDomains = ListDomains'+    { _ldNextPageToken      :: !(Maybe Text)+    , _ldReverseOrder       :: !(Maybe Bool)+    , _ldMaximumPageSize    :: !(Maybe Nat)+    , _ldRegistrationStatus :: !RegistrationStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ListDomains' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ListDomains' with the minimum fields required to make a request. ----- * 'ldMaximumPageSize' @::@ 'Maybe' 'Natural'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ldNextPageToken' @::@ 'Maybe' 'Text'+-- * 'ldNextPageToken' ----- * 'ldRegistrationStatus' @::@ 'RegistrationStatus'+-- * 'ldReverseOrder' ----- * 'ldReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'ldMaximumPageSize' ---listDomains :: RegistrationStatus -- ^ 'ldRegistrationStatus'-            -> ListDomains-listDomains p1 = ListDomains-    { _ldRegistrationStatus = p1-    , _ldNextPageToken      = Nothing-    , _ldMaximumPageSize    = Nothing-    , _ldReverseOrder       = Nothing+-- * 'ldRegistrationStatus'+listDomains+    :: RegistrationStatus -- ^ 'ldRegistrationStatus'+    -> ListDomains+listDomains pRegistrationStatus_ =+    ListDomains'+    { _ldNextPageToken = Nothing+    , _ldReverseOrder = Nothing+    , _ldMaximumPageSize = Nothing+    , _ldRegistrationStatus = pRegistrationStatus_     } --- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.-ldMaximumPageSize :: Lens' ListDomains (Maybe Natural)-ldMaximumPageSize =-    lens _ldMaximumPageSize (\s a -> s { _ldMaximumPageSize = a })-        . mapping _Nat+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+ldNextPageToken :: Lens' ListDomains (Maybe Text)+ldNextPageToken = lens _ldNextPageToken (\ s a -> s{_ldNextPageToken = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | When set to 'true', returns the results in reverse order. By default,+-- the results are returned in ascending alphabetical order by 'name' of+-- the domains.+ldReverseOrder :: Lens' ListDomains (Maybe Bool)+ldReverseOrder = lens _ldReverseOrder (\ s a -> s{_ldReverseOrder = a});++-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-ldNextPageToken :: Lens' ListDomains (Maybe Text)-ldNextPageToken = lens _ldNextPageToken (\s a -> s { _ldNextPageToken = a })+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum.+ldMaximumPageSize :: Lens' ListDomains (Maybe Natural)+ldMaximumPageSize = lens _ldMaximumPageSize (\ s a -> s{_ldMaximumPageSize = a}) . mapping _Nat;  -- | Specifies the registration status of the domains to list. ldRegistrationStatus :: Lens' ListDomains RegistrationStatus-ldRegistrationStatus =-    lens _ldRegistrationStatus (\s a -> s { _ldRegistrationStatus = a })---- | When set to 'true', returns the results in reverse order. By default, the--- results are returned in ascending alphabetical order by 'name' of the domains.-ldReverseOrder :: Lens' ListDomains (Maybe Bool)-ldReverseOrder = lens _ldReverseOrder (\s a -> s { _ldReverseOrder = a })+ldRegistrationStatus = lens _ldRegistrationStatus (\ s a -> s{_ldRegistrationStatus = a}); -data ListDomainsResponse = ListDomainsResponse-    { _ldrDomainInfos   :: List "domainInfos" DomainInfo-    , _ldrNextPageToken :: Maybe Text-    } deriving (Eq, Read, Show)+instance AWSPager ListDomains where+        page rq rs+          | stop (rs ^. ldrsNextPageToken) = Nothing+          | stop (rs ^. ldrsDomainInfos) = Nothing+          | otherwise =+            Just $ rq &+              ldNextPageToken .~ rs ^. ldrsNextPageToken --- | 'ListDomainsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'ldrDomainInfos' @::@ ['DomainInfo']------ * 'ldrNextPageToken' @::@ 'Maybe' 'Text'----listDomainsResponse :: ListDomainsResponse-listDomainsResponse = ListDomainsResponse-    { _ldrDomainInfos   = mempty-    , _ldrNextPageToken = Nothing-    }+instance AWSRequest ListDomains where+        type Sv ListDomains = SWF+        type Rs ListDomains = ListDomainsResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 ListDomainsResponse' <$>+                   (x .?> "nextPageToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "domainInfos" .!@ mempty)) --- | A list of DomainInfo structures.-ldrDomainInfos :: Lens' ListDomainsResponse [DomainInfo]-ldrDomainInfos = lens _ldrDomainInfos (\s a -> s { _ldrDomainInfos = a }) . _List+instance ToHeaders ListDomains where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.ListDomains" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-ldrNextPageToken :: Lens' ListDomainsResponse (Maybe Text)-ldrNextPageToken = lens _ldrNextPageToken (\s a -> s { _ldrNextPageToken = a })+instance ToJSON ListDomains where+        toJSON ListDomains'{..}+          = object+              ["nextPageToken" .= _ldNextPageToken,+               "reverseOrder" .= _ldReverseOrder,+               "maximumPageSize" .= _ldMaximumPageSize,+               "registrationStatus" .= _ldRegistrationStatus]  instance ToPath ListDomains where-    toPath = const "/"+        toPath = const "/"  instance ToQuery ListDomains where-    toQuery = const mempty--instance ToHeaders ListDomains+        toQuery = const mempty -instance ToJSON ListDomains where-    toJSON ListDomains{..} = object-        [ "nextPageToken"      .= _ldNextPageToken-        , "registrationStatus" .= _ldRegistrationStatus-        , "maximumPageSize"    .= _ldMaximumPageSize-        , "reverseOrder"       .= _ldReverseOrder-        ]+-- | Contains a paginated collection of DomainInfo structures.+--+-- /See:/ 'listDomainsResponse' smart constructor.+data ListDomainsResponse = ListDomainsResponse'+    { _ldrsNextPageToken :: !(Maybe Text)+    , _ldrsStatus        :: !Int+    , _ldrsDomainInfos   :: ![DomainInfo]+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListDomains where-    type Sv ListDomains = SWF-    type Rs ListDomains = ListDomainsResponse+-- | Creates a value of 'ListDomainsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ldrsNextPageToken'+--+-- * 'ldrsStatus'+--+-- * 'ldrsDomainInfos'+listDomainsResponse+    :: Int -- ^ 'ldrsStatus'+    -> ListDomainsResponse+listDomainsResponse pStatus_ =+    ListDomainsResponse'+    { _ldrsNextPageToken = Nothing+    , _ldrsStatus = pStatus_+    , _ldrsDomainInfos = mempty+    } -    request  = post "ListDomains"-    response = jsonResponse+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+ldrsNextPageToken :: Lens' ListDomainsResponse (Maybe Text)+ldrsNextPageToken = lens _ldrsNextPageToken (\ s a -> s{_ldrsNextPageToken = a}); -instance FromJSON ListDomainsResponse where-    parseJSON = withObject "ListDomainsResponse" $ \o -> ListDomainsResponse-        <$> o .:? "domainInfos" .!= mempty-        <*> o .:? "nextPageToken"+-- | The response status code.+ldrsStatus :: Lens' ListDomainsResponse Int+ldrsStatus = lens _ldrsStatus (\ s a -> s{_ldrsStatus = a}); -instance AWSPager ListDomains where-    page rq rs-        | stop (rs ^. ldrNextPageToken) = Nothing-        | otherwise = (\x -> rq & ldNextPageToken ?~ x)-            <$> (rs ^. ldrNextPageToken)+-- | A list of DomainInfo structures.+ldrsDomainInfos :: Lens' ListDomainsResponse [DomainInfo]+ldrsDomainInfos = lens _ldrsDomainInfos (\ s a -> s{_ldrsDomainInfos = a}) . _Coerce;
gen/Network/AWS/SWF/ListOpenWorkflowExecutions.hs view
@@ -1,254 +1,233 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.ListOpenWorkflowExecutions--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns a list of open workflow executions in the specified domain that meet--- the filtering criteria. The results may be split into multiple pages. To--- retrieve subsequent pages, make the call again using the nextPageToken--- returned by the initial call.+-- Returns a list of open workflow executions in the specified domain that+-- meet the filtering criteria. The results may be split into multiple+-- pages. To retrieve subsequent pages, make the call again using the+-- nextPageToken returned by the initial call. -- -- This operation is eventually consistent. The results are best effort and--- may not exactly reflect recent updates and changes. Access Control+-- may not exactly reflect recent updates and changes. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.  'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'. 'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'. 'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.    If the caller does--- not have sufficient permissions to invoke the action, or the parameter values--- fall outside the specified constraints, the action fails. The associated--- event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagFilter.tag': String constraint. The key is+--         'swf:tagFilter.tag'.+--     -   'typeFilter.name': String constraint. The key is+--         'swf:typeFilter.name'.+--     -   'typeFilter.version': String constraint. The key is+--         'swf:typeFilter.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListOpenWorkflowExecutions.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListOpenWorkflowExecutions.html AWS API Reference> for ListOpenWorkflowExecutions.+--+-- This operation returns paginated results. module Network.AWS.SWF.ListOpenWorkflowExecutions     (-    -- * Request-      ListOpenWorkflowExecutions-    -- ** Request constructor-    , listOpenWorkflowExecutions-    -- ** Request lenses-    , loweDomain-    , loweExecutionFilter-    , loweMaximumPageSize+    -- * Creating a Request+      listOpenWorkflowExecutions+    , ListOpenWorkflowExecutions+    -- * Request Lenses     , loweNextPageToken+    , loweExecutionFilter+    , loweTypeFilter     , loweReverseOrder-    , loweStartTimeFilter     , loweTagFilter-    , loweTypeFilter+    , loweMaximumPageSize+    , loweDomain+    , loweStartTimeFilter -    -- * Response-    , ListOpenWorkflowExecutionsResponse-    -- ** Response constructor-    , listOpenWorkflowExecutionsResponse-    -- ** Response lenses-    , lowerExecutionInfos-    , lowerNextPageToken+    -- * Destructuring the Response+    , workflowExecutionInfos+    , WorkflowExecutionInfos+    -- * Response Lenses+    , weiNextPageToken+    , weiExecutionInfos     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data ListOpenWorkflowExecutions = ListOpenWorkflowExecutions-    { _loweDomain          :: Text-    , _loweExecutionFilter :: Maybe WorkflowExecutionFilter-    , _loweMaximumPageSize :: Maybe Nat-    , _loweNextPageToken   :: Maybe Text-    , _loweReverseOrder    :: Maybe Bool-    , _loweStartTimeFilter :: ExecutionTimeFilter-    , _loweTagFilter       :: Maybe TagFilter-    , _loweTypeFilter      :: Maybe WorkflowTypeFilter-    } deriving (Eq, Read, Show)+-- | /See:/ 'listOpenWorkflowExecutions' smart constructor.+data ListOpenWorkflowExecutions = ListOpenWorkflowExecutions'+    { _loweNextPageToken   :: !(Maybe Text)+    , _loweExecutionFilter :: !(Maybe WorkflowExecutionFilter)+    , _loweTypeFilter      :: !(Maybe WorkflowTypeFilter)+    , _loweReverseOrder    :: !(Maybe Bool)+    , _loweTagFilter       :: !(Maybe TagFilter)+    , _loweMaximumPageSize :: !(Maybe Nat)+    , _loweDomain          :: !Text+    , _loweStartTimeFilter :: !ExecutionTimeFilter+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ListOpenWorkflowExecutions' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ListOpenWorkflowExecutions' with the minimum fields required to make a request. ----- * 'loweDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'loweExecutionFilter' @::@ 'Maybe' 'WorkflowExecutionFilter'+-- * 'loweNextPageToken' ----- * 'loweMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'loweExecutionFilter' ----- * 'loweNextPageToken' @::@ 'Maybe' 'Text'+-- * 'loweTypeFilter' ----- * 'loweReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'loweReverseOrder' ----- * 'loweStartTimeFilter' @::@ 'ExecutionTimeFilter'+-- * 'loweTagFilter' ----- * 'loweTagFilter' @::@ 'Maybe' 'TagFilter'+-- * 'loweMaximumPageSize' ----- * 'loweTypeFilter' @::@ 'Maybe' 'WorkflowTypeFilter'+-- * 'loweDomain' ---listOpenWorkflowExecutions :: Text -- ^ 'loweDomain'-                           -> ExecutionTimeFilter -- ^ 'loweStartTimeFilter'-                           -> ListOpenWorkflowExecutions-listOpenWorkflowExecutions p1 p2 = ListOpenWorkflowExecutions-    { _loweDomain          = p1-    , _loweStartTimeFilter = p2-    , _loweTypeFilter      = Nothing-    , _loweTagFilter       = Nothing-    , _loweNextPageToken   = Nothing-    , _loweMaximumPageSize = Nothing-    , _loweReverseOrder    = Nothing+-- * 'loweStartTimeFilter'+listOpenWorkflowExecutions+    :: Text -- ^ 'loweDomain'+    -> ExecutionTimeFilter -- ^ 'loweStartTimeFilter'+    -> ListOpenWorkflowExecutions+listOpenWorkflowExecutions pDomain_ pStartTimeFilter_ =+    ListOpenWorkflowExecutions'+    { _loweNextPageToken = Nothing     , _loweExecutionFilter = Nothing+    , _loweTypeFilter = Nothing+    , _loweReverseOrder = Nothing+    , _loweTagFilter = Nothing+    , _loweMaximumPageSize = Nothing+    , _loweDomain = pDomain_+    , _loweStartTimeFilter = pStartTimeFilter_     } --- | The name of the domain that contains the workflow executions to list.-loweDomain :: Lens' ListOpenWorkflowExecutions Text-loweDomain = lens _loweDomain (\s a -> s { _loweDomain = a })---- | If specified, only workflow executions matching the workflow id specified in--- the filter are returned.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.-loweExecutionFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowExecutionFilter)-loweExecutionFilter =-    lens _loweExecutionFilter (\s a -> s { _loweExecutionFilter = a })+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+loweNextPageToken :: Lens' ListOpenWorkflowExecutions (Maybe Text)+loweNextPageToken = lens _loweNextPageToken (\ s a -> s{_loweNextPageToken = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | If specified, only workflow executions matching the workflow ID+-- specified in the filter are returned. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.-loweMaximumPageSize :: Lens' ListOpenWorkflowExecutions (Maybe Natural)-loweMaximumPageSize =-    lens _loweMaximumPageSize (\s a -> s { _loweMaximumPageSize = a })-        . mapping _Nat+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request.+loweExecutionFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowExecutionFilter)+loweExecutionFilter = lens _loweExecutionFilter (\ s a -> s{_loweExecutionFilter = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | If specified, only executions of the type specified in the filter are+-- returned. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-loweNextPageToken :: Lens' ListOpenWorkflowExecutions (Maybe Text)-loweNextPageToken =-    lens _loweNextPageToken (\s a -> s { _loweNextPageToken = a })+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request.+loweTypeFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowTypeFilter)+loweTypeFilter = lens _loweTypeFilter (\ s a -> s{_loweTypeFilter = a});  -- | When set to 'true', returns the results in reverse order. By default the--- results are returned in descending order of the start time of the executions.+-- results are returned in descending order of the start time of the+-- executions. loweReverseOrder :: Lens' ListOpenWorkflowExecutions (Maybe Bool)-loweReverseOrder = lens _loweReverseOrder (\s a -> s { _loweReverseOrder = a })---- | Workflow executions are included in the returned results based on whether--- their start times are within the range specified by this filter.-loweStartTimeFilter :: Lens' ListOpenWorkflowExecutions ExecutionTimeFilter-loweStartTimeFilter =-    lens _loweStartTimeFilter (\s a -> s { _loweStartTimeFilter = a })+loweReverseOrder = lens _loweReverseOrder (\ s a -> s{_loweReverseOrder = a});  -- | If specified, only executions that have the matching tag are listed. ----- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.+-- 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive.+-- You can specify at most one of these in a request. loweTagFilter :: Lens' ListOpenWorkflowExecutions (Maybe TagFilter)-loweTagFilter = lens _loweTagFilter (\s a -> s { _loweTagFilter = a })---- | If specified, only executions of the type specified in the filter are--- returned.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can--- specify at most one of these in a request.-loweTypeFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowTypeFilter)-loweTypeFilter = lens _loweTypeFilter (\s a -> s { _loweTypeFilter = a })--data ListOpenWorkflowExecutionsResponse = ListOpenWorkflowExecutionsResponse-    { _lowerExecutionInfos :: List "executionInfos" WorkflowExecutionInfo-    , _lowerNextPageToken  :: Maybe Text-    } deriving (Eq, Read, Show)+loweTagFilter = lens _loweTagFilter (\ s a -> s{_loweTagFilter = a}); --- | 'ListOpenWorkflowExecutionsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'lowerExecutionInfos' @::@ ['WorkflowExecutionInfo']------ * 'lowerNextPageToken' @::@ 'Maybe' 'Text'+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ---listOpenWorkflowExecutionsResponse :: ListOpenWorkflowExecutionsResponse-listOpenWorkflowExecutionsResponse = ListOpenWorkflowExecutionsResponse-    { _lowerExecutionInfos = mempty-    , _lowerNextPageToken  = Nothing-    }+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum.+loweMaximumPageSize :: Lens' ListOpenWorkflowExecutions (Maybe Natural)+loweMaximumPageSize = lens _loweMaximumPageSize (\ s a -> s{_loweMaximumPageSize = a}) . mapping _Nat; --- | The list of workflow information structures.-lowerExecutionInfos :: Lens' ListOpenWorkflowExecutionsResponse [WorkflowExecutionInfo]-lowerExecutionInfos =-    lens _lowerExecutionInfos (\s a -> s { _lowerExecutionInfos = a })-        . _List+-- | The name of the domain that contains the workflow executions to list.+loweDomain :: Lens' ListOpenWorkflowExecutions Text+loweDomain = lens _loweDomain (\ s a -> s{_loweDomain = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-lowerNextPageToken :: Lens' ListOpenWorkflowExecutionsResponse (Maybe Text)-lowerNextPageToken =-    lens _lowerNextPageToken (\s a -> s { _lowerNextPageToken = a })+-- | Workflow executions are included in the returned results based on+-- whether their start times are within the range specified by this filter.+loweStartTimeFilter :: Lens' ListOpenWorkflowExecutions ExecutionTimeFilter+loweStartTimeFilter = lens _loweStartTimeFilter (\ s a -> s{_loweStartTimeFilter = a}); -instance ToPath ListOpenWorkflowExecutions where-    toPath = const "/"+instance AWSPager ListOpenWorkflowExecutions where+        page rq rs+          | stop (rs ^. weiNextPageToken) = Nothing+          | stop (rs ^. weiExecutionInfos) = Nothing+          | otherwise =+            Just $ rq &+              loweNextPageToken .~ rs ^. weiNextPageToken -instance ToQuery ListOpenWorkflowExecutions where-    toQuery = const mempty+instance AWSRequest ListOpenWorkflowExecutions where+        type Sv ListOpenWorkflowExecutions = SWF+        type Rs ListOpenWorkflowExecutions =+             WorkflowExecutionInfos+        request = postJSON+        response = receiveJSON (\ s h x -> eitherParseJSON x) -instance ToHeaders ListOpenWorkflowExecutions+instance ToHeaders ListOpenWorkflowExecutions where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.ListOpenWorkflowExecutions"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])  instance ToJSON ListOpenWorkflowExecutions where-    toJSON ListOpenWorkflowExecutions{..} = object-        [ "domain"          .= _loweDomain-        , "startTimeFilter" .= _loweStartTimeFilter-        , "typeFilter"      .= _loweTypeFilter-        , "tagFilter"       .= _loweTagFilter-        , "nextPageToken"   .= _loweNextPageToken-        , "maximumPageSize" .= _loweMaximumPageSize-        , "reverseOrder"    .= _loweReverseOrder-        , "executionFilter" .= _loweExecutionFilter-        ]--instance AWSRequest ListOpenWorkflowExecutions where-    type Sv ListOpenWorkflowExecutions = SWF-    type Rs ListOpenWorkflowExecutions = ListOpenWorkflowExecutionsResponse--    request  = post "ListOpenWorkflowExecutions"-    response = jsonResponse+        toJSON ListOpenWorkflowExecutions'{..}+          = object+              ["nextPageToken" .= _loweNextPageToken,+               "executionFilter" .= _loweExecutionFilter,+               "typeFilter" .= _loweTypeFilter,+               "reverseOrder" .= _loweReverseOrder,+               "tagFilter" .= _loweTagFilter,+               "maximumPageSize" .= _loweMaximumPageSize,+               "domain" .= _loweDomain,+               "startTimeFilter" .= _loweStartTimeFilter] -instance FromJSON ListOpenWorkflowExecutionsResponse where-    parseJSON = withObject "ListOpenWorkflowExecutionsResponse" $ \o -> ListOpenWorkflowExecutionsResponse-        <$> o .:? "executionInfos" .!= mempty-        <*> o .:? "nextPageToken"+instance ToPath ListOpenWorkflowExecutions where+        toPath = const "/" -instance AWSPager ListOpenWorkflowExecutions where-    page rq rs-        | stop (rs ^. lowerNextPageToken) = Nothing-        | otherwise = (\x -> rq & loweNextPageToken ?~ x)-            <$> (rs ^. lowerNextPageToken)+instance ToQuery ListOpenWorkflowExecutions where+        toQuery = const mempty
gen/Network/AWS/SWF/ListWorkflowTypes.hs view
@@ -1,216 +1,242 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.ListWorkflowTypes--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Returns information about workflow types in the specified domain. The results--- may be split into multiple pages that can be retrieved by making the call--- repeatedly.+-- Returns information about workflow types in the specified domain. The+-- results may be split into multiple pages that can be retrieved by making+-- the call repeatedly. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListWorkflowTypes.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_ListWorkflowTypes.html AWS API Reference> for ListWorkflowTypes.+--+-- This operation returns paginated results. module Network.AWS.SWF.ListWorkflowTypes     (-    -- * Request-      ListWorkflowTypes-    -- ** Request constructor-    , listWorkflowTypes-    -- ** Request lenses-    , lwtDomain-    , lwtMaximumPageSize-    , lwtName+    -- * Creating a Request+      listWorkflowTypes+    , ListWorkflowTypes+    -- * Request Lenses     , lwtNextPageToken-    , lwtRegistrationStatus     , lwtReverseOrder+    , lwtName+    , lwtMaximumPageSize+    , lwtDomain+    , lwtRegistrationStatus -    -- * Response-    , ListWorkflowTypesResponse-    -- ** Response constructor+    -- * Destructuring the Response     , listWorkflowTypesResponse-    -- ** Response lenses-    , lwtrNextPageToken-    , lwtrTypeInfos+    , ListWorkflowTypesResponse+    -- * Response Lenses+    , lwtrsNextPageToken+    , lwtrsStatus+    , lwtrsTypeInfos     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data ListWorkflowTypes = ListWorkflowTypes-    { _lwtDomain             :: Text-    , _lwtMaximumPageSize    :: Maybe Nat-    , _lwtName               :: Maybe Text-    , _lwtNextPageToken      :: Maybe Text-    , _lwtRegistrationStatus :: RegistrationStatus-    , _lwtReverseOrder       :: Maybe Bool-    } deriving (Eq, Read, Show)+-- | /See:/ 'listWorkflowTypes' smart constructor.+data ListWorkflowTypes = ListWorkflowTypes'+    { _lwtNextPageToken      :: !(Maybe Text)+    , _lwtReverseOrder       :: !(Maybe Bool)+    , _lwtName               :: !(Maybe Text)+    , _lwtMaximumPageSize    :: !(Maybe Nat)+    , _lwtDomain             :: !Text+    , _lwtRegistrationStatus :: !RegistrationStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ListWorkflowTypes' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ListWorkflowTypes' with the minimum fields required to make a request. ----- * 'lwtDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'lwtMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'lwtNextPageToken' ----- * 'lwtName' @::@ 'Maybe' 'Text'+-- * 'lwtReverseOrder' ----- * 'lwtNextPageToken' @::@ 'Maybe' 'Text'+-- * 'lwtName' ----- * 'lwtRegistrationStatus' @::@ 'RegistrationStatus'+-- * 'lwtMaximumPageSize' ----- * 'lwtReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'lwtDomain' ---listWorkflowTypes :: Text -- ^ 'lwtDomain'-                  -> RegistrationStatus -- ^ 'lwtRegistrationStatus'-                  -> ListWorkflowTypes-listWorkflowTypes p1 p2 = ListWorkflowTypes-    { _lwtDomain             = p1-    , _lwtRegistrationStatus = p2-    , _lwtName               = Nothing-    , _lwtNextPageToken      = Nothing-    , _lwtMaximumPageSize    = Nothing-    , _lwtReverseOrder       = Nothing+-- * 'lwtRegistrationStatus'+listWorkflowTypes+    :: Text -- ^ 'lwtDomain'+    -> RegistrationStatus -- ^ 'lwtRegistrationStatus'+    -> ListWorkflowTypes+listWorkflowTypes pDomain_ pRegistrationStatus_ =+    ListWorkflowTypes'+    { _lwtNextPageToken = Nothing+    , _lwtReverseOrder = Nothing+    , _lwtName = Nothing+    , _lwtMaximumPageSize = Nothing+    , _lwtDomain = pDomain_+    , _lwtRegistrationStatus = pRegistrationStatus_     } --- | The name of the domain in which the workflow types have been registered.-lwtDomain :: Lens' ListWorkflowTypes Text-lwtDomain = lens _lwtDomain (\s a -> s { _lwtDomain = a })---- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.-lwtMaximumPageSize :: Lens' ListWorkflowTypes (Maybe Natural)-lwtMaximumPageSize =-    lens _lwtMaximumPageSize (\s a -> s { _lwtMaximumPageSize = a })-        . mapping _Nat+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+lwtNextPageToken :: Lens' ListWorkflowTypes (Maybe Text)+lwtNextPageToken = lens _lwtNextPageToken (\ s a -> s{_lwtNextPageToken = a}); +-- | When set to 'true', returns the results in reverse order. By default the+-- results are returned in ascending alphabetical order of the 'name' of+-- the workflow types.+lwtReverseOrder :: Lens' ListWorkflowTypes (Maybe Bool)+lwtReverseOrder = lens _lwtReverseOrder (\ s a -> s{_lwtReverseOrder = a});+ -- | If specified, lists the workflow type with this name. lwtName :: Lens' ListWorkflowTypes (Maybe Text)-lwtName = lens _lwtName (\s a -> s { _lwtName = a })+lwtName = lens _lwtName (\ s a -> s{_lwtName = a}); --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-lwtNextPageToken :: Lens' ListWorkflowTypes (Maybe Text)-lwtNextPageToken = lens _lwtNextPageToken (\s a -> s { _lwtNextPageToken = a })+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum.+lwtMaximumPageSize :: Lens' ListWorkflowTypes (Maybe Natural)+lwtMaximumPageSize = lens _lwtMaximumPageSize (\ s a -> s{_lwtMaximumPageSize = a}) . mapping _Nat; +-- | The name of the domain in which the workflow types have been registered.+lwtDomain :: Lens' ListWorkflowTypes Text+lwtDomain = lens _lwtDomain (\ s a -> s{_lwtDomain = a});+ -- | Specifies the registration status of the workflow types to list. lwtRegistrationStatus :: Lens' ListWorkflowTypes RegistrationStatus-lwtRegistrationStatus =-    lens _lwtRegistrationStatus (\s a -> s { _lwtRegistrationStatus = a })---- | When set to 'true', returns the results in reverse order. By default the--- results are returned in ascending alphabetical order of the 'name' of the--- workflow types.-lwtReverseOrder :: Lens' ListWorkflowTypes (Maybe Bool)-lwtReverseOrder = lens _lwtReverseOrder (\s a -> s { _lwtReverseOrder = a })+lwtRegistrationStatus = lens _lwtRegistrationStatus (\ s a -> s{_lwtRegistrationStatus = a}); -data ListWorkflowTypesResponse = ListWorkflowTypesResponse-    { _lwtrNextPageToken :: Maybe Text-    , _lwtrTypeInfos     :: List "typeInfos" WorkflowTypeInfo-    } deriving (Eq, Read, Show)+instance AWSPager ListWorkflowTypes where+        page rq rs+          | stop (rs ^. lwtrsNextPageToken) = Nothing+          | stop (rs ^. lwtrsTypeInfos) = Nothing+          | otherwise =+            Just $ rq &+              lwtNextPageToken .~ rs ^. lwtrsNextPageToken --- | 'ListWorkflowTypesResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'lwtrNextPageToken' @::@ 'Maybe' 'Text'------ * 'lwtrTypeInfos' @::@ ['WorkflowTypeInfo']----listWorkflowTypesResponse :: ListWorkflowTypesResponse-listWorkflowTypesResponse = ListWorkflowTypesResponse-    { _lwtrTypeInfos     = mempty-    , _lwtrNextPageToken = Nothing-    }+instance AWSRequest ListWorkflowTypes where+        type Sv ListWorkflowTypes = SWF+        type Rs ListWorkflowTypes = ListWorkflowTypesResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 ListWorkflowTypesResponse' <$>+                   (x .?> "nextPageToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "typeInfos" .!@ mempty)) --- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-lwtrNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text)-lwtrNextPageToken =-    lens _lwtrNextPageToken (\s a -> s { _lwtrNextPageToken = a })+instance ToHeaders ListWorkflowTypes where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.ListWorkflowTypes" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | The list of workflow type information.-lwtrTypeInfos :: Lens' ListWorkflowTypesResponse [WorkflowTypeInfo]-lwtrTypeInfos = lens _lwtrTypeInfos (\s a -> s { _lwtrTypeInfos = a }) . _List+instance ToJSON ListWorkflowTypes where+        toJSON ListWorkflowTypes'{..}+          = object+              ["nextPageToken" .= _lwtNextPageToken,+               "reverseOrder" .= _lwtReverseOrder,+               "name" .= _lwtName,+               "maximumPageSize" .= _lwtMaximumPageSize,+               "domain" .= _lwtDomain,+               "registrationStatus" .= _lwtRegistrationStatus]  instance ToPath ListWorkflowTypes where-    toPath = const "/"+        toPath = const "/"  instance ToQuery ListWorkflowTypes where-    toQuery = const mempty--instance ToHeaders ListWorkflowTypes+        toQuery = const mempty -instance ToJSON ListWorkflowTypes where-    toJSON ListWorkflowTypes{..} = object-        [ "domain"             .= _lwtDomain-        , "name"               .= _lwtName-        , "registrationStatus" .= _lwtRegistrationStatus-        , "nextPageToken"      .= _lwtNextPageToken-        , "maximumPageSize"    .= _lwtMaximumPageSize-        , "reverseOrder"       .= _lwtReverseOrder-        ]+-- | Contains a paginated list of information structures about workflow+-- types.+--+-- /See:/ 'listWorkflowTypesResponse' smart constructor.+data ListWorkflowTypesResponse = ListWorkflowTypesResponse'+    { _lwtrsNextPageToken :: !(Maybe Text)+    , _lwtrsStatus        :: !Int+    , _lwtrsTypeInfos     :: ![WorkflowTypeInfo]+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListWorkflowTypes where-    type Sv ListWorkflowTypes = SWF-    type Rs ListWorkflowTypes = ListWorkflowTypesResponse+-- | Creates a value of 'ListWorkflowTypesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lwtrsNextPageToken'+--+-- * 'lwtrsStatus'+--+-- * 'lwtrsTypeInfos'+listWorkflowTypesResponse+    :: Int -- ^ 'lwtrsStatus'+    -> ListWorkflowTypesResponse+listWorkflowTypesResponse pStatus_ =+    ListWorkflowTypesResponse'+    { _lwtrsNextPageToken = Nothing+    , _lwtrsStatus = pStatus_+    , _lwtrsTypeInfos = mempty+    } -    request  = post "ListWorkflowTypes"-    response = jsonResponse+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+lwtrsNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text)+lwtrsNextPageToken = lens _lwtrsNextPageToken (\ s a -> s{_lwtrsNextPageToken = a}); -instance FromJSON ListWorkflowTypesResponse where-    parseJSON = withObject "ListWorkflowTypesResponse" $ \o -> ListWorkflowTypesResponse-        <$> o .:? "nextPageToken"-        <*> o .:? "typeInfos" .!= mempty+-- | The response status code.+lwtrsStatus :: Lens' ListWorkflowTypesResponse Int+lwtrsStatus = lens _lwtrsStatus (\ s a -> s{_lwtrsStatus = a}); -instance AWSPager ListWorkflowTypes where-    page rq rs-        | stop (rs ^. lwtrNextPageToken) = Nothing-        | otherwise = (\x -> rq & lwtNextPageToken ?~ x)-            <$> (rs ^. lwtrNextPageToken)+-- | The list of workflow type information.+lwtrsTypeInfos :: Lens' ListWorkflowTypesResponse [WorkflowTypeInfo]+lwtrsTypeInfos = lens _lwtrsTypeInfos (\ s a -> s{_lwtrsTypeInfos = a}) . _Coerce;
gen/Network/AWS/SWF/PollForActivityTask.hs view
@@ -1,225 +1,249 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.PollForActivityTask--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by workers to get an 'ActivityTask' from the specified activity 'taskList'.--- This initiates a long poll, where the service holds the HTTP connection open--- and responds as soon as a task becomes available. The maximum time the--- service holds on to the request before responding is 60 seconds. If no task--- is available within 60 seconds, the poll will return an empty result. An--- empty result, in this context, means that an ActivityTask is returned, but--- that the value of taskToken is an empty string. If a task is returned, the--- worker should use its type to identify and process it correctly.+-- Used by workers to get an ActivityTask from the specified activity+-- 'taskList'. This initiates a long poll, where the service holds the HTTP+-- connection open and responds as soon as a task becomes available. The+-- maximum time the service holds on to the request before responding is 60+-- seconds. If no task is available within 60 seconds, the poll will return+-- an empty result. An empty result, in this context, means that an+-- ActivityTask is returned, but that the value of taskToken is an empty+-- string. If a task is returned, the worker should use its type to+-- identify and process it correctly. ----- Workers should set their client side socket timeout to at least 70 seconds--- (10 seconds higher than the maximum time service may hold the poll request). Access Control+-- Workers should set their client side socket timeout to at least 70+-- seconds (10 seconds higher than the maximum time service may hold the+-- poll request). --+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the 'taskList.name' parameter by using a Condition--- element with the 'swf:taskList.name' key to allow the action to access only--- certain task lists.  If the caller does not have sufficient permissions to--- invoke the action, or the parameter values fall outside the specified--- constraints, the action fails. The associated event attribute's cause--- parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM--- policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the 'taskList.name' parameter by using a __Condition__+--     element with the 'swf:taskList.name' key to allow the action to+--     access only certain task lists. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_PollForActivityTask.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_PollForActivityTask.html AWS API Reference> for PollForActivityTask. module Network.AWS.SWF.PollForActivityTask     (-    -- * Request-      PollForActivityTask-    -- ** Request constructor-    , pollForActivityTask-    -- ** Request lenses-    , pfatDomain+    -- * Creating a Request+      pollForActivityTask+    , PollForActivityTask+    -- * Request Lenses     , pfatIdentity+    , pfatDomain     , pfatTaskList -    -- * Response-    , PollForActivityTaskResponse-    -- ** Response constructor+    -- * Destructuring the Response     , pollForActivityTaskResponse-    -- ** Response lenses-    , pfatrActivityId-    , pfatrActivityType-    , pfatrInput-    , pfatrStartedEventId-    , pfatrTaskToken-    , pfatrWorkflowExecution+    , PollForActivityTaskResponse+    -- * Response Lenses+    , pfatrsInput+    , pfatrsStatus+    , pfatrsTaskToken+    , pfatrsActivityId+    , pfatrsStartedEventId+    , pfatrsWorkflowExecution+    , pfatrsActivityType     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data PollForActivityTask = PollForActivityTask-    { _pfatDomain   :: Text-    , _pfatIdentity :: Maybe Text-    , _pfatTaskList :: TaskList-    } deriving (Eq, Read, Show)+-- | /See:/ 'pollForActivityTask' smart constructor.+data PollForActivityTask = PollForActivityTask'+    { _pfatIdentity :: !(Maybe Text)+    , _pfatDomain   :: !Text+    , _pfatTaskList :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'PollForActivityTask' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'PollForActivityTask' with the minimum fields required to make a request. ----- * 'pfatDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'pfatIdentity' @::@ 'Maybe' 'Text'+-- * 'pfatIdentity' ----- * 'pfatTaskList' @::@ 'TaskList'+-- * 'pfatDomain' ---pollForActivityTask :: Text -- ^ 'pfatDomain'-                    -> TaskList -- ^ 'pfatTaskList'-                    -> PollForActivityTask-pollForActivityTask p1 p2 = PollForActivityTask-    { _pfatDomain   = p1-    , _pfatTaskList = p2-    , _pfatIdentity = Nothing+-- * 'pfatTaskList'+pollForActivityTask+    :: Text -- ^ 'pfatDomain'+    -> TaskList -- ^ 'pfatTaskList'+    -> PollForActivityTask+pollForActivityTask pDomain_ pTaskList_ =+    PollForActivityTask'+    { _pfatIdentity = Nothing+    , _pfatDomain = pDomain_+    , _pfatTaskList = pTaskList_     } +-- | Identity of the worker making the request, recorded in the+-- 'ActivityTaskStarted' event in the workflow history. This enables+-- diagnostic tracing when problems arise. The form of this identity is+-- user defined.+pfatIdentity :: Lens' PollForActivityTask (Maybe Text)+pfatIdentity = lens _pfatIdentity (\ s a -> s{_pfatIdentity = a});+ -- | The name of the domain that contains the task lists being polled. pfatDomain :: Lens' PollForActivityTask Text-pfatDomain = lens _pfatDomain (\s a -> s { _pfatDomain = a })---- | Identity of the worker making the request, recorded in the 'ActivityTaskStarted'--- event in the workflow history. This enables diagnostic tracing when problems--- arise. The form of this identity is user defined.-pfatIdentity :: Lens' PollForActivityTask (Maybe Text)-pfatIdentity = lens _pfatIdentity (\s a -> s { _pfatIdentity = a })+pfatDomain = lens _pfatDomain (\ s a -> s{_pfatDomain = a});  -- | Specifies the task list to poll for activity tasks. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. pfatTaskList :: Lens' PollForActivityTask TaskList-pfatTaskList = lens _pfatTaskList (\s a -> s { _pfatTaskList = a })+pfatTaskList = lens _pfatTaskList (\ s a -> s{_pfatTaskList = a}); -data PollForActivityTaskResponse = PollForActivityTaskResponse-    { _pfatrActivityId        :: Text-    , _pfatrActivityType      :: ActivityType-    , _pfatrInput             :: Maybe Text-    , _pfatrStartedEventId    :: Integer-    , _pfatrTaskToken         :: Text-    , _pfatrWorkflowExecution :: WorkflowExecution-    } deriving (Eq, Read, Show)+instance AWSRequest PollForActivityTask where+        type Sv PollForActivityTask = SWF+        type Rs PollForActivityTask =+             PollForActivityTaskResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 PollForActivityTaskResponse' <$>+                   (x .?> "input") <*> (pure (fromEnum s)) <*>+                     (x .:> "taskToken")+                     <*> (x .:> "activityId")+                     <*> (x .:> "startedEventId")+                     <*> (x .:> "workflowExecution")+                     <*> (x .:> "activityType")) --- | 'PollForActivityTaskResponse' constructor.+instance ToHeaders PollForActivityTask where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.PollForActivityTask" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])++instance ToJSON PollForActivityTask where+        toJSON PollForActivityTask'{..}+          = object+              ["identity" .= _pfatIdentity,+               "domain" .= _pfatDomain, "taskList" .= _pfatTaskList]++instance ToPath PollForActivityTask where+        toPath = const "/"++instance ToQuery PollForActivityTask where+        toQuery = const mempty++-- | Unit of work sent to an activity worker. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'pollForActivityTaskResponse' smart constructor.+data PollForActivityTaskResponse = PollForActivityTaskResponse'+    { _pfatrsInput             :: !(Maybe Text)+    , _pfatrsStatus            :: !Int+    , _pfatrsTaskToken         :: !Text+    , _pfatrsActivityId        :: !Text+    , _pfatrsStartedEventId    :: !Integer+    , _pfatrsWorkflowExecution :: !WorkflowExecution+    , _pfatrsActivityType      :: !ActivityType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PollForActivityTaskResponse' with the minimum fields required to make a request. ----- * 'pfatrActivityId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'pfatrActivityType' @::@ 'ActivityType'+-- * 'pfatrsInput' ----- * 'pfatrInput' @::@ 'Maybe' 'Text'+-- * 'pfatrsStatus' ----- * 'pfatrStartedEventId' @::@ 'Integer'+-- * 'pfatrsTaskToken' ----- * 'pfatrTaskToken' @::@ 'Text'+-- * 'pfatrsActivityId' ----- * 'pfatrWorkflowExecution' @::@ 'WorkflowExecution'+-- * 'pfatrsStartedEventId' ---pollForActivityTaskResponse :: Text -- ^ 'pfatrTaskToken'-                            -> Text -- ^ 'pfatrActivityId'-                            -> Integer -- ^ 'pfatrStartedEventId'-                            -> WorkflowExecution -- ^ 'pfatrWorkflowExecution'-                            -> ActivityType -- ^ 'pfatrActivityType'-                            -> PollForActivityTaskResponse-pollForActivityTaskResponse p1 p2 p3 p4 p5 = PollForActivityTaskResponse-    { _pfatrTaskToken         = p1-    , _pfatrActivityId        = p2-    , _pfatrStartedEventId    = p3-    , _pfatrWorkflowExecution = p4-    , _pfatrActivityType      = p5-    , _pfatrInput             = Nothing+-- * 'pfatrsWorkflowExecution'+--+-- * 'pfatrsActivityType'+pollForActivityTaskResponse+    :: Int -- ^ 'pfatrsStatus'+    -> Text -- ^ 'pfatrsTaskToken'+    -> Text -- ^ 'pfatrsActivityId'+    -> Integer -- ^ 'pfatrsStartedEventId'+    -> WorkflowExecution -- ^ 'pfatrsWorkflowExecution'+    -> ActivityType -- ^ 'pfatrsActivityType'+    -> PollForActivityTaskResponse+pollForActivityTaskResponse pStatus_ pTaskToken_ pActivityId_ pStartedEventId_ pWorkflowExecution_ pActivityType_ =+    PollForActivityTaskResponse'+    { _pfatrsInput = Nothing+    , _pfatrsStatus = pStatus_+    , _pfatrsTaskToken = pTaskToken_+    , _pfatrsActivityId = pActivityId_+    , _pfatrsStartedEventId = pStartedEventId_+    , _pfatrsWorkflowExecution = pWorkflowExecution_+    , _pfatrsActivityType = pActivityType_     } --- | The unique ID of the task.-pfatrActivityId :: Lens' PollForActivityTaskResponse Text-pfatrActivityId = lens _pfatrActivityId (\s a -> s { _pfatrActivityId = a })+-- | The inputs provided when the activity task was scheduled. The form of+-- the input is user defined and should be meaningful to the activity+-- implementation.+pfatrsInput :: Lens' PollForActivityTaskResponse (Maybe Text)+pfatrsInput = lens _pfatrsInput (\ s a -> s{_pfatrsInput = a}); --- | The type of this activity task.-pfatrActivityType :: Lens' PollForActivityTaskResponse ActivityType-pfatrActivityType =-    lens _pfatrActivityType (\s a -> s { _pfatrActivityType = a })+-- | The response status code.+pfatrsStatus :: Lens' PollForActivityTaskResponse Int+pfatrsStatus = lens _pfatrsStatus (\ s a -> s{_pfatrsStatus = a}); --- | The inputs provided when the activity task was scheduled. The form of the--- input is user defined and should be meaningful to the activity implementation.-pfatrInput :: Lens' PollForActivityTaskResponse (Maybe Text)-pfatrInput = lens _pfatrInput (\s a -> s { _pfatrInput = a })+-- | The opaque string used as a handle on the task. This token is used by+-- workers to communicate progress and response information back to the+-- system about the task.+pfatrsTaskToken :: Lens' PollForActivityTaskResponse Text+pfatrsTaskToken = lens _pfatrsTaskToken (\ s a -> s{_pfatrsTaskToken = a}); --- | The id of the 'ActivityTaskStarted' event recorded in the history.-pfatrStartedEventId :: Lens' PollForActivityTaskResponse Integer-pfatrStartedEventId =-    lens _pfatrStartedEventId (\s a -> s { _pfatrStartedEventId = a })+-- | The unique ID of the task.+pfatrsActivityId :: Lens' PollForActivityTaskResponse Text+pfatrsActivityId = lens _pfatrsActivityId (\ s a -> s{_pfatrsActivityId = a}); --- | The opaque string used as a handle on the task. This token is used by workers--- to communicate progress and response information back to the system about the--- task.-pfatrTaskToken :: Lens' PollForActivityTaskResponse Text-pfatrTaskToken = lens _pfatrTaskToken (\s a -> s { _pfatrTaskToken = a })+-- | The ID of the 'ActivityTaskStarted' event recorded in the history.+pfatrsStartedEventId :: Lens' PollForActivityTaskResponse Integer+pfatrsStartedEventId = lens _pfatrsStartedEventId (\ s a -> s{_pfatrsStartedEventId = a});  -- | The workflow execution that started this activity task.-pfatrWorkflowExecution :: Lens' PollForActivityTaskResponse WorkflowExecution-pfatrWorkflowExecution =-    lens _pfatrWorkflowExecution (\s a -> s { _pfatrWorkflowExecution = a })--instance ToPath PollForActivityTask where-    toPath = const "/"--instance ToQuery PollForActivityTask where-    toQuery = const mempty--instance ToHeaders PollForActivityTask--instance ToJSON PollForActivityTask where-    toJSON PollForActivityTask{..} = object-        [ "domain"   .= _pfatDomain-        , "taskList" .= _pfatTaskList-        , "identity" .= _pfatIdentity-        ]--instance AWSRequest PollForActivityTask where-    type Sv PollForActivityTask = SWF-    type Rs PollForActivityTask = PollForActivityTaskResponse--    request  = post "PollForActivityTask"-    response = jsonResponse+pfatrsWorkflowExecution :: Lens' PollForActivityTaskResponse WorkflowExecution+pfatrsWorkflowExecution = lens _pfatrsWorkflowExecution (\ s a -> s{_pfatrsWorkflowExecution = a}); -instance FromJSON PollForActivityTaskResponse where-    parseJSON = withObject "PollForActivityTaskResponse" $ \o -> PollForActivityTaskResponse-        <$> o .:  "activityId"-        <*> o .:  "activityType"-        <*> o .:? "input"-        <*> o .:  "startedEventId"-        <*> o .:  "taskToken"-        <*> o .:  "workflowExecution"+-- | The type of this activity task.+pfatrsActivityType :: Lens' PollForActivityTaskResponse ActivityType+pfatrsActivityType = lens _pfatrsActivityType (\ s a -> s{_pfatrsActivityType = a});
gen/Network/AWS/SWF/PollForDecisionTask.hs view
@@ -1,307 +1,343 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.PollForDecisionTask--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by deciders to get a 'DecisionTask' from the specified decision 'taskList'.--- A decision task may be returned for any open workflow execution that is using--- the specified task list. The task includes a paginated view of the history of--- the workflow execution. The decider should use the workflow type and the--- history to determine how to properly handle the task.+-- Used by deciders to get a DecisionTask from the specified decision+-- 'taskList'. A decision task may be returned for any open workflow+-- execution that is using the specified task list. The task includes a+-- paginated view of the history of the workflow execution. The decider+-- should use the workflow type and the history to determine how to+-- properly handle the task. -- -- This action initiates a long poll, where the service holds the HTTP--- connection open and responds as soon a task becomes available. If no decision--- task is available in the specified task list before the timeout of 60 seconds--- expires, an empty result is returned. An empty result, in this context, means--- that a DecisionTask is returned, but that the value of taskToken is an empty--- string.+-- connection open and responds as soon a task becomes available. If no+-- decision task is available in the specified task list before the timeout+-- of 60 seconds expires, an empty result is returned. An empty result, in+-- this context, means that a DecisionTask is returned, but that the value+-- of 'taskToken' is an empty string. ----- Deciders should set their client side socket timeout to at least 70 seconds--- (10 seconds higher than the timeout). Because the number of workflow history--- events for a single workflow execution might be very large, the result--- returned might be split up across a number of pages. To retrieve subsequent--- pages, make additional calls to 'PollForDecisionTask' using the 'nextPageToken'--- returned by the initial call. Note that you do not call 'GetWorkflowExecutionHistory' with this 'nextPageToken'. Instead, call 'PollForDecisionTask' again. Access--- Control+-- Deciders should set their client-side socket timeout to at least 70+-- seconds (10 seconds higher than the timeout). ----- You can use IAM policies to control this action's access to Amazon SWF+-- Because the number of workflow history events for a single workflow+-- execution might be very large, the result returned might be split up+-- across a number of pages. To retrieve subsequent pages, make additional+-- calls to 'PollForDecisionTask' using the 'nextPageToken' returned by the+-- initial call. Note that you do __not__ call+-- 'GetWorkflowExecutionHistory' with this 'nextPageToken'. Instead, call+-- 'PollForDecisionTask' again.+--+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the 'taskList.name' parameter by using a Condition--- element with the 'swf:taskList.name' key to allow the action to access only--- certain task lists.  If the caller does not have sufficient permissions to--- invoke the action, or the parameter values fall outside the specified--- constraints, the action fails. The associated event attribute's cause--- parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM--- policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the 'taskList.name' parameter by using a __Condition__+--     element with the 'swf:taskList.name' key to allow the action to+--     access only certain task lists. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_PollForDecisionTask.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_PollForDecisionTask.html AWS API Reference> for PollForDecisionTask.+--+-- This operation returns paginated results. module Network.AWS.SWF.PollForDecisionTask     (-    -- * Request-      PollForDecisionTask-    -- ** Request constructor-    , pollForDecisionTask-    -- ** Request lenses-    , pfdtDomain-    , pfdtIdentity-    , pfdtMaximumPageSize+    -- * Creating a Request+      pollForDecisionTask+    , PollForDecisionTask+    -- * Request Lenses     , pfdtNextPageToken     , pfdtReverseOrder+    , pfdtIdentity+    , pfdtMaximumPageSize+    , pfdtDomain     , pfdtTaskList -    -- * Response-    , PollForDecisionTaskResponse-    -- ** Response constructor+    -- * Destructuring the Response     , pollForDecisionTaskResponse-    -- ** Response lenses-    , pfdtrEvents-    , pfdtrNextPageToken-    , pfdtrPreviousStartedEventId-    , pfdtrStartedEventId-    , pfdtrTaskToken-    , pfdtrWorkflowExecution-    , pfdtrWorkflowType+    , PollForDecisionTaskResponse+    -- * Response Lenses+    , pfdtrsNextPageToken+    , pfdtrsPreviousStartedEventId+    , pfdtrsStatus+    , pfdtrsTaskToken+    , pfdtrsStartedEventId+    , pfdtrsWorkflowExecution+    , pfdtrsWorkflowType+    , pfdtrsEvents     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Pager+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data PollForDecisionTask = PollForDecisionTask-    { _pfdtDomain          :: Text-    , _pfdtIdentity        :: Maybe Text-    , _pfdtMaximumPageSize :: Maybe Nat-    , _pfdtNextPageToken   :: Maybe Text-    , _pfdtReverseOrder    :: Maybe Bool-    , _pfdtTaskList        :: TaskList-    } deriving (Eq, Read, Show)+-- | /See:/ 'pollForDecisionTask' smart constructor.+data PollForDecisionTask = PollForDecisionTask'+    { _pfdtNextPageToken   :: !(Maybe Text)+    , _pfdtReverseOrder    :: !(Maybe Bool)+    , _pfdtIdentity        :: !(Maybe Text)+    , _pfdtMaximumPageSize :: !(Maybe Nat)+    , _pfdtDomain          :: !Text+    , _pfdtTaskList        :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'PollForDecisionTask' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'PollForDecisionTask' with the minimum fields required to make a request. ----- * 'pfdtDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'pfdtIdentity' @::@ 'Maybe' 'Text'+-- * 'pfdtNextPageToken' ----- * 'pfdtMaximumPageSize' @::@ 'Maybe' 'Natural'+-- * 'pfdtReverseOrder' ----- * 'pfdtNextPageToken' @::@ 'Maybe' 'Text'+-- * 'pfdtIdentity' ----- * 'pfdtReverseOrder' @::@ 'Maybe' 'Bool'+-- * 'pfdtMaximumPageSize' ----- * 'pfdtTaskList' @::@ 'TaskList'+-- * 'pfdtDomain' ---pollForDecisionTask :: Text -- ^ 'pfdtDomain'-                    -> TaskList -- ^ 'pfdtTaskList'-                    -> PollForDecisionTask-pollForDecisionTask p1 p2 = PollForDecisionTask-    { _pfdtDomain          = p1-    , _pfdtTaskList        = p2-    , _pfdtIdentity        = Nothing-    , _pfdtNextPageToken   = Nothing+-- * 'pfdtTaskList'+pollForDecisionTask+    :: Text -- ^ 'pfdtDomain'+    -> TaskList -- ^ 'pfdtTaskList'+    -> PollForDecisionTask+pollForDecisionTask pDomain_ pTaskList_ =+    PollForDecisionTask'+    { _pfdtNextPageToken = Nothing+    , _pfdtReverseOrder = Nothing+    , _pfdtIdentity = Nothing     , _pfdtMaximumPageSize = Nothing-    , _pfdtReverseOrder    = Nothing+    , _pfdtDomain = pDomain_+    , _pfdtTaskList = pTaskList_     } --- | The name of the domain containing the task lists to poll.-pfdtDomain :: Lens' PollForDecisionTask Text-pfdtDomain = lens _pfdtDomain (\s a -> s { _pfdtDomain = a })+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+--+-- The 'nextPageToken' returned by this action cannot be used with+-- GetWorkflowExecutionHistory to get the next page. You must call+-- PollForDecisionTask again (with the 'nextPageToken') to retrieve the+-- next page of history records. Calling PollForDecisionTask with a+-- 'nextPageToken' will not return a new decision task.+--+-- .+pfdtNextPageToken :: Lens' PollForDecisionTask (Maybe Text)+pfdtNextPageToken = lens _pfdtNextPageToken (\ s a -> s{_pfdtNextPageToken = a}); +-- | When set to 'true', returns the events in reverse order. By default the+-- results are returned in ascending order of the 'eventTimestamp' of the+-- events.+pfdtReverseOrder :: Lens' PollForDecisionTask (Maybe Bool)+pfdtReverseOrder = lens _pfdtReverseOrder (\ s a -> s{_pfdtReverseOrder = a});+ -- | Identity of the decider making the request, which is recorded in the--- DecisionTaskStarted event in the workflow history. This enables diagnostic--- tracing when problems arise. The form of this identity is user defined.+-- DecisionTaskStarted event in the workflow history. This enables+-- diagnostic tracing when problems arise. The form of this identity is+-- user defined. pfdtIdentity :: Lens' PollForDecisionTask (Maybe Text)-pfdtIdentity = lens _pfdtIdentity (\s a -> s { _pfdtIdentity = a })+pfdtIdentity = lens _pfdtIdentity (\ s a -> s{_pfdtIdentity = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken'--- can be used to obtain futher pages of results. The default is 100, which is--- the maximum allowed page size. You can, however, specify a page size /smaller/--- than 100.+-- | The maximum number of results that will be returned per call.+-- 'nextPageToken' can be used to obtain futher pages of results. The+-- default is 1000, which is the maximum allowed page size. You can,+-- however, specify a page size /smaller/ than the maximum. ----- This is an upper limit only; the actual number of results returned per call--- may be fewer than the specified maximum.+-- This is an upper limit only; the actual number of results returned per+-- call may be fewer than the specified maximum. pfdtMaximumPageSize :: Lens' PollForDecisionTask (Maybe Natural)-pfdtMaximumPageSize =-    lens _pfdtMaximumPageSize (\s a -> s { _pfdtMaximumPageSize = a })-        . mapping _Nat---- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.------ The 'nextPageToken' returned by this action cannot be used with 'GetWorkflowExecutionHistory' to get the next page. You must call 'PollForDecisionTask' again (with the 'nextPageToken') to retrieve the next page of history records. Calling 'PollForDecisionTask'--- with a 'nextPageToken' will not return a new decision task..-pfdtNextPageToken :: Lens' PollForDecisionTask (Maybe Text)-pfdtNextPageToken =-    lens _pfdtNextPageToken (\s a -> s { _pfdtNextPageToken = a })+pfdtMaximumPageSize = lens _pfdtMaximumPageSize (\ s a -> s{_pfdtMaximumPageSize = a}) . mapping _Nat; --- | When set to 'true', returns the events in reverse order. By default the results--- are returned in ascending order of the 'eventTimestamp' of the events.-pfdtReverseOrder :: Lens' PollForDecisionTask (Maybe Bool)-pfdtReverseOrder = lens _pfdtReverseOrder (\s a -> s { _pfdtReverseOrder = a })+-- | The name of the domain containing the task lists to poll.+pfdtDomain :: Lens' PollForDecisionTask Text+pfdtDomain = lens _pfdtDomain (\ s a -> s{_pfdtDomain = a});  -- | Specifies the task list to poll for decision tasks. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. pfdtTaskList :: Lens' PollForDecisionTask TaskList-pfdtTaskList = lens _pfdtTaskList (\s a -> s { _pfdtTaskList = a })+pfdtTaskList = lens _pfdtTaskList (\ s a -> s{_pfdtTaskList = a}); -data PollForDecisionTaskResponse = PollForDecisionTaskResponse-    { _pfdtrEvents                 :: List "events" HistoryEvent-    , _pfdtrNextPageToken          :: Maybe Text-    , _pfdtrPreviousStartedEventId :: Maybe Integer-    , _pfdtrStartedEventId         :: Integer-    , _pfdtrTaskToken              :: Text-    , _pfdtrWorkflowExecution      :: WorkflowExecution-    , _pfdtrWorkflowType           :: WorkflowType-    } deriving (Eq, Read, Show)+instance AWSPager PollForDecisionTask where+        page rq rs+          | stop (rs ^. pfdtrsNextPageToken) = Nothing+          | stop (rs ^. pfdtrsEvents) = Nothing+          | otherwise =+            Just $ rq &+              pfdtNextPageToken .~ rs ^. pfdtrsNextPageToken --- | 'PollForDecisionTaskResponse' constructor.+instance AWSRequest PollForDecisionTask where+        type Sv PollForDecisionTask = SWF+        type Rs PollForDecisionTask =+             PollForDecisionTaskResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 PollForDecisionTaskResponse' <$>+                   (x .?> "nextPageToken") <*>+                     (x .?> "previousStartedEventId")+                     <*> (pure (fromEnum s))+                     <*> (x .:> "taskToken")+                     <*> (x .:> "startedEventId")+                     <*> (x .:> "workflowExecution")+                     <*> (x .:> "workflowType")+                     <*> (x .?> "events" .!@ mempty))++instance ToHeaders PollForDecisionTask where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.PollForDecisionTask" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)])++instance ToJSON PollForDecisionTask where+        toJSON PollForDecisionTask'{..}+          = object+              ["nextPageToken" .= _pfdtNextPageToken,+               "reverseOrder" .= _pfdtReverseOrder,+               "identity" .= _pfdtIdentity,+               "maximumPageSize" .= _pfdtMaximumPageSize,+               "domain" .= _pfdtDomain, "taskList" .= _pfdtTaskList]++instance ToPath PollForDecisionTask where+        toPath = const "/"++instance ToQuery PollForDecisionTask where+        toQuery = const mempty++-- | A structure that represents a decision task. Decision tasks are sent to+-- deciders in order for them to make decisions. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'pollForDecisionTaskResponse' smart constructor.+data PollForDecisionTaskResponse = PollForDecisionTaskResponse'+    { _pfdtrsNextPageToken          :: !(Maybe Text)+    , _pfdtrsPreviousStartedEventId :: !(Maybe Integer)+    , _pfdtrsStatus                 :: !Int+    , _pfdtrsTaskToken              :: !Text+    , _pfdtrsStartedEventId         :: !Integer+    , _pfdtrsWorkflowExecution      :: !WorkflowExecution+    , _pfdtrsWorkflowType           :: !WorkflowType+    , _pfdtrsEvents                 :: ![HistoryEvent]+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PollForDecisionTaskResponse' with the minimum fields required to make a request. ----- * 'pfdtrEvents' @::@ ['HistoryEvent']+-- Use one of the following lenses to modify other fields as desired: ----- * 'pfdtrNextPageToken' @::@ 'Maybe' 'Text'+-- * 'pfdtrsNextPageToken' ----- * 'pfdtrPreviousStartedEventId' @::@ 'Maybe' 'Integer'+-- * 'pfdtrsPreviousStartedEventId' ----- * 'pfdtrStartedEventId' @::@ 'Integer'+-- * 'pfdtrsStatus' ----- * 'pfdtrTaskToken' @::@ 'Text'+-- * 'pfdtrsTaskToken' ----- * 'pfdtrWorkflowExecution' @::@ 'WorkflowExecution'+-- * 'pfdtrsStartedEventId' ----- * 'pfdtrWorkflowType' @::@ 'WorkflowType'+-- * 'pfdtrsWorkflowExecution' ---pollForDecisionTaskResponse :: Text -- ^ 'pfdtrTaskToken'-                            -> Integer -- ^ 'pfdtrStartedEventId'-                            -> WorkflowExecution -- ^ 'pfdtrWorkflowExecution'-                            -> WorkflowType -- ^ 'pfdtrWorkflowType'-                            -> PollForDecisionTaskResponse-pollForDecisionTaskResponse p1 p2 p3 p4 = PollForDecisionTaskResponse-    { _pfdtrTaskToken              = p1-    , _pfdtrStartedEventId         = p2-    , _pfdtrWorkflowExecution      = p3-    , _pfdtrWorkflowType           = p4-    , _pfdtrEvents                 = mempty-    , _pfdtrNextPageToken          = Nothing-    , _pfdtrPreviousStartedEventId = Nothing+-- * 'pfdtrsWorkflowType'+--+-- * 'pfdtrsEvents'+pollForDecisionTaskResponse+    :: Int -- ^ 'pfdtrsStatus'+    -> Text -- ^ 'pfdtrsTaskToken'+    -> Integer -- ^ 'pfdtrsStartedEventId'+    -> WorkflowExecution -- ^ 'pfdtrsWorkflowExecution'+    -> WorkflowType -- ^ 'pfdtrsWorkflowType'+    -> PollForDecisionTaskResponse+pollForDecisionTaskResponse pStatus_ pTaskToken_ pStartedEventId_ pWorkflowExecution_ pWorkflowType_ =+    PollForDecisionTaskResponse'+    { _pfdtrsNextPageToken = Nothing+    , _pfdtrsPreviousStartedEventId = Nothing+    , _pfdtrsStatus = pStatus_+    , _pfdtrsTaskToken = pTaskToken_+    , _pfdtrsStartedEventId = pStartedEventId_+    , _pfdtrsWorkflowExecution = pWorkflowExecution_+    , _pfdtrsWorkflowType = pWorkflowType_+    , _pfdtrsEvents = mempty     } --- | A paginated list of history events of the workflow execution. The decider--- uses this during the processing of the decision task.-pfdtrEvents :: Lens' PollForDecisionTaskResponse [HistoryEvent]-pfdtrEvents = lens _pfdtrEvents (\s a -> s { _pfdtrEvents = a }) . _List---- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.+-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged. ----- The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-pfdtrNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text)-pfdtrNextPageToken =-    lens _pfdtrNextPageToken (\s a -> s { _pfdtrNextPageToken = a })---- | The id of the DecisionTaskStarted event of the previous decision task of this--- workflow execution that was processed by the decider. This can be used to--- determine the events in the history new since the last decision task received--- by the decider.-pfdtrPreviousStartedEventId :: Lens' PollForDecisionTaskResponse (Maybe Integer)-pfdtrPreviousStartedEventId =-    lens _pfdtrPreviousStartedEventId-        (\s a -> s { _pfdtrPreviousStartedEventId = a })---- | The id of the 'DecisionTaskStarted' event recorded in the history.-pfdtrStartedEventId :: Lens' PollForDecisionTaskResponse Integer-pfdtrStartedEventId =-    lens _pfdtrStartedEventId (\s a -> s { _pfdtrStartedEventId = a })---- | The opaque string used as a handle on the task. This token is used by workers--- to communicate progress and response information back to the system about the--- task.-pfdtrTaskToken :: Lens' PollForDecisionTaskResponse Text-pfdtrTaskToken = lens _pfdtrTaskToken (\s a -> s { _pfdtrTaskToken = a })---- | The workflow execution for which this decision task was created.-pfdtrWorkflowExecution :: Lens' PollForDecisionTaskResponse WorkflowExecution-pfdtrWorkflowExecution =-    lens _pfdtrWorkflowExecution (\s a -> s { _pfdtrWorkflowExecution = a })---- | The type of the workflow execution for which this decision task was created.-pfdtrWorkflowType :: Lens' PollForDecisionTaskResponse WorkflowType-pfdtrWorkflowType =-    lens _pfdtrWorkflowType (\s a -> s { _pfdtrWorkflowType = a })--instance ToPath PollForDecisionTask where-    toPath = const "/"+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+pfdtrsNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text)+pfdtrsNextPageToken = lens _pfdtrsNextPageToken (\ s a -> s{_pfdtrsNextPageToken = a}); -instance ToQuery PollForDecisionTask where-    toQuery = const mempty+-- | The ID of the DecisionTaskStarted event of the previous decision task of+-- this workflow execution that was processed by the decider. This can be+-- used to determine the events in the history new since the last decision+-- task received by the decider.+pfdtrsPreviousStartedEventId :: Lens' PollForDecisionTaskResponse (Maybe Integer)+pfdtrsPreviousStartedEventId = lens _pfdtrsPreviousStartedEventId (\ s a -> s{_pfdtrsPreviousStartedEventId = a}); -instance ToHeaders PollForDecisionTask+-- | The response status code.+pfdtrsStatus :: Lens' PollForDecisionTaskResponse Int+pfdtrsStatus = lens _pfdtrsStatus (\ s a -> s{_pfdtrsStatus = a}); -instance ToJSON PollForDecisionTask where-    toJSON PollForDecisionTask{..} = object-        [ "domain"          .= _pfdtDomain-        , "taskList"        .= _pfdtTaskList-        , "identity"        .= _pfdtIdentity-        , "nextPageToken"   .= _pfdtNextPageToken-        , "maximumPageSize" .= _pfdtMaximumPageSize-        , "reverseOrder"    .= _pfdtReverseOrder-        ]+-- | The opaque string used as a handle on the task. This token is used by+-- workers to communicate progress and response information back to the+-- system about the task.+pfdtrsTaskToken :: Lens' PollForDecisionTaskResponse Text+pfdtrsTaskToken = lens _pfdtrsTaskToken (\ s a -> s{_pfdtrsTaskToken = a}); -instance AWSRequest PollForDecisionTask where-    type Sv PollForDecisionTask = SWF-    type Rs PollForDecisionTask = PollForDecisionTaskResponse+-- | The ID of the 'DecisionTaskStarted' event recorded in the history.+pfdtrsStartedEventId :: Lens' PollForDecisionTaskResponse Integer+pfdtrsStartedEventId = lens _pfdtrsStartedEventId (\ s a -> s{_pfdtrsStartedEventId = a}); -    request  = post "PollForDecisionTask"-    response = jsonResponse+-- | The workflow execution for which this decision task was created.+pfdtrsWorkflowExecution :: Lens' PollForDecisionTaskResponse WorkflowExecution+pfdtrsWorkflowExecution = lens _pfdtrsWorkflowExecution (\ s a -> s{_pfdtrsWorkflowExecution = a}); -instance FromJSON PollForDecisionTaskResponse where-    parseJSON = withObject "PollForDecisionTaskResponse" $ \o -> PollForDecisionTaskResponse-        <$> o .:? "events" .!= mempty-        <*> o .:? "nextPageToken"-        <*> o .:? "previousStartedEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "taskToken"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"+-- | The type of the workflow execution for which this decision task was+-- created.+pfdtrsWorkflowType :: Lens' PollForDecisionTaskResponse WorkflowType+pfdtrsWorkflowType = lens _pfdtrsWorkflowType (\ s a -> s{_pfdtrsWorkflowType = a}); -instance AWSPager PollForDecisionTask where-    page rq rs-        | stop (rs ^. pfdtrNextPageToken) = Nothing-        | otherwise = (\x -> rq & pfdtNextPageToken ?~ x)-            <$> (rs ^. pfdtrNextPageToken)+-- | A paginated list of history events of the workflow execution. The+-- decider uses this during the processing of the decision task.+pfdtrsEvents :: Lens' PollForDecisionTaskResponse [HistoryEvent]+pfdtrsEvents = lens _pfdtrsEvents (\ s a -> s{_pfdtrsEvents = a}) . _Coerce;
gen/Network/AWS/SWF/RecordActivityTaskHeartbeat.hs view
@@ -1,160 +1,193 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RecordActivityTaskHeartbeat--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by activity workers to report to the service that the 'ActivityTask'--- represented by the specified 'taskToken' is still making progress. The worker--- can also (optionally) specify details of the progress, for example percent--- complete, using the 'details' parameter. This action can also be used by the--- worker as a mechanism to check if cancellation is being requested for the--- activity task. If a cancellation is being attempted for the specified task,--- then the boolean 'cancelRequested' flag returned by the service is set to 'true'.+-- Used by activity workers to report to the service that the ActivityTask+-- represented by the specified 'taskToken' is still making progress. The+-- worker can also (optionally) specify details of the progress, for+-- example percent complete, using the 'details' parameter. This action can+-- also be used by the worker as a mechanism to check if cancellation is+-- being requested for the activity task. If a cancellation is being+-- attempted for the specified task, then the boolean 'cancelRequested'+-- flag returned by the service is set to 'true'. ----- This action resets the 'taskHeartbeatTimeout' clock. The 'taskHeartbeatTimeout'--- is specified in 'RegisterActivityType'.+-- This action resets the 'taskHeartbeatTimeout' clock. The+-- 'taskHeartbeatTimeout' is specified in RegisterActivityType. -- -- This action does not in itself create an event in the workflow execution--- history. However, if the task times out, the workflow execution history will--- contain a 'ActivityTaskTimedOut' event that contains the information from the--- last heartbeat generated by the activity worker.+-- history. However, if the task times out, the workflow execution history+-- will contain a 'ActivityTaskTimedOut' event that contains the+-- information from the last heartbeat generated by the activity worker. ----- The 'taskStartToCloseTimeout' of an activity type is the maximum duration of--- an activity task, regardless of the number of 'RecordActivityTaskHeartbeat'--- requests received. The 'taskStartToCloseTimeout' is also specified in 'RegisterActivityType'. This operation is only useful for long-lived activities to report--- liveliness of the task and to determine if a cancellation is being attempted.--- If the 'cancelRequested' flag returns 'true', a cancellation is being attempted.--- If the worker can cancel the activity, it should respond with 'RespondActivityTaskCanceled'. Otherwise, it should ignore the cancellation request. Access Control+-- The 'taskStartToCloseTimeout' of an activity type is the maximum+-- duration of an activity task, regardless of the number of+-- RecordActivityTaskHeartbeat requests received. The+-- 'taskStartToCloseTimeout' is also specified in RegisterActivityType. ----- You can use IAM policies to control this action's access to Amazon SWF+-- This operation is only useful for long-lived activities to report+-- liveliness of the task and to determine if a cancellation is being+-- attempted.+--+-- If the 'cancelRequested' flag returns 'true', a cancellation is being+-- attempted. If the worker can cancel the activity, it should respond with+-- RespondActivityTaskCanceled. Otherwise, it should ignore the+-- cancellation request.+--+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RecordActivityTaskHeartbeat.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RecordActivityTaskHeartbeat.html AWS API Reference> for RecordActivityTaskHeartbeat. module Network.AWS.SWF.RecordActivityTaskHeartbeat     (-    -- * Request-      RecordActivityTaskHeartbeat-    -- ** Request constructor-    , recordActivityTaskHeartbeat-    -- ** Request lenses+    -- * Creating a Request+      recordActivityTaskHeartbeat+    , RecordActivityTaskHeartbeat+    -- * Request Lenses     , rathDetails     , rathTaskToken -    -- * Response-    , RecordActivityTaskHeartbeatResponse-    -- ** Response constructor+    -- * Destructuring the Response     , recordActivityTaskHeartbeatResponse-    -- ** Response lenses-    , rathrCancelRequested+    , RecordActivityTaskHeartbeatResponse+    -- * Response Lenses+    , rathrsStatus+    , rathrsCancelRequested     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RecordActivityTaskHeartbeat = RecordActivityTaskHeartbeat-    { _rathDetails   :: Maybe Text-    , _rathTaskToken :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'recordActivityTaskHeartbeat' smart constructor.+data RecordActivityTaskHeartbeat = RecordActivityTaskHeartbeat'+    { _rathDetails   :: !(Maybe Text)+    , _rathTaskToken :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RecordActivityTaskHeartbeat' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RecordActivityTaskHeartbeat' with the minimum fields required to make a request. ----- * 'rathDetails' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'rathTaskToken' @::@ 'Text'+-- * 'rathDetails' ---recordActivityTaskHeartbeat :: Text -- ^ 'rathTaskToken'-                            -> RecordActivityTaskHeartbeat-recordActivityTaskHeartbeat p1 = RecordActivityTaskHeartbeat-    { _rathTaskToken = p1-    , _rathDetails   = Nothing+-- * 'rathTaskToken'+recordActivityTaskHeartbeat+    :: Text -- ^ 'rathTaskToken'+    -> RecordActivityTaskHeartbeat+recordActivityTaskHeartbeat pTaskToken_ =+    RecordActivityTaskHeartbeat'+    { _rathDetails = Nothing+    , _rathTaskToken = pTaskToken_     }  -- | If specified, contains details about the progress of the task. rathDetails :: Lens' RecordActivityTaskHeartbeat (Maybe Text)-rathDetails = lens _rathDetails (\s a -> s { _rathDetails = a })+rathDetails = lens _rathDetails (\ s a -> s{_rathDetails = a}); --- | The 'taskToken' of the 'ActivityTask'.+-- | The 'taskToken' of the ActivityTask. ----- 'taskToken' is generated by the service and should be treated as an opaque--- value. If the task is passed to another process, its 'taskToken' must also be--- passed. This enables it to provide its progress and respond with results.+-- 'taskToken' is generated by the service and should be treated as an+-- opaque value. If the task is passed to another process, its 'taskToken'+-- must also be passed. This enables it to provide its progress and respond+-- with results. rathTaskToken :: Lens' RecordActivityTaskHeartbeat Text-rathTaskToken = lens _rathTaskToken (\s a -> s { _rathTaskToken = a })+rathTaskToken = lens _rathTaskToken (\ s a -> s{_rathTaskToken = a}); -newtype RecordActivityTaskHeartbeatResponse = RecordActivityTaskHeartbeatResponse-    { _rathrCancelRequested :: Bool-    } deriving (Eq, Ord, Read, Show, Enum)+instance AWSRequest RecordActivityTaskHeartbeat where+        type Sv RecordActivityTaskHeartbeat = SWF+        type Rs RecordActivityTaskHeartbeat =+             RecordActivityTaskHeartbeatResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 RecordActivityTaskHeartbeatResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "cancelRequested")) --- | 'RecordActivityTaskHeartbeatResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'rathrCancelRequested' @::@ 'Bool'----recordActivityTaskHeartbeatResponse :: Bool -- ^ 'rathrCancelRequested'-                                    -> RecordActivityTaskHeartbeatResponse-recordActivityTaskHeartbeatResponse p1 = RecordActivityTaskHeartbeatResponse-    { _rathrCancelRequested = p1-    }+instance ToHeaders RecordActivityTaskHeartbeat where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RecordActivityTaskHeartbeat"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | Set to 'true' if cancellation of the task is requested.-rathrCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool-rathrCancelRequested =-    lens _rathrCancelRequested (\s a -> s { _rathrCancelRequested = a })+instance ToJSON RecordActivityTaskHeartbeat where+        toJSON RecordActivityTaskHeartbeat'{..}+          = object+              ["details" .= _rathDetails,+               "taskToken" .= _rathTaskToken]  instance ToPath RecordActivityTaskHeartbeat where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RecordActivityTaskHeartbeat where-    toQuery = const mempty--instance ToHeaders RecordActivityTaskHeartbeat+        toQuery = const mempty -instance ToJSON RecordActivityTaskHeartbeat where-    toJSON RecordActivityTaskHeartbeat{..} = object-        [ "taskToken" .= _rathTaskToken-        , "details"   .= _rathDetails-        ]+-- | Status information about an activity task.+--+-- /See:/ 'recordActivityTaskHeartbeatResponse' smart constructor.+data RecordActivityTaskHeartbeatResponse = RecordActivityTaskHeartbeatResponse'+    { _rathrsStatus          :: !Int+    , _rathrsCancelRequested :: !Bool+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest RecordActivityTaskHeartbeat where-    type Sv RecordActivityTaskHeartbeat = SWF-    type Rs RecordActivityTaskHeartbeat = RecordActivityTaskHeartbeatResponse+-- | Creates a value of 'RecordActivityTaskHeartbeatResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rathrsStatus'+--+-- * 'rathrsCancelRequested'+recordActivityTaskHeartbeatResponse+    :: Int -- ^ 'rathrsStatus'+    -> Bool -- ^ 'rathrsCancelRequested'+    -> RecordActivityTaskHeartbeatResponse+recordActivityTaskHeartbeatResponse pStatus_ pCancelRequested_ =+    RecordActivityTaskHeartbeatResponse'+    { _rathrsStatus = pStatus_+    , _rathrsCancelRequested = pCancelRequested_+    } -    request  = post "RecordActivityTaskHeartbeat"-    response = jsonResponse+-- | The response status code.+rathrsStatus :: Lens' RecordActivityTaskHeartbeatResponse Int+rathrsStatus = lens _rathrsStatus (\ s a -> s{_rathrsStatus = a}); -instance FromJSON RecordActivityTaskHeartbeatResponse where-    parseJSON = withObject "RecordActivityTaskHeartbeatResponse" $ \o -> RecordActivityTaskHeartbeatResponse-        <$> o .:  "cancelRequested"+-- | Set to 'true' if cancellation of the task is requested.+rathrsCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool+rathrsCancelRequested = lens _rathrsCancelRequested (\ s a -> s{_rathrsCancelRequested = a});
gen/Network/AWS/SWF/RegisterActivityType.hs view
@@ -1,254 +1,275 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RegisterActivityType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Registers a new /activity type/ along with its configuration settings in the--- specified domain.+-- Registers a new /activity type/ along with its configuration settings in+-- the specified domain. ----- A 'TypeAlreadyExists' fault is returned if the type already exists in the--- domain. You cannot change any configuration settings of the type after its--- registration, and it must be registered as a new version. Access Control+-- A 'TypeAlreadyExists' fault is returned if the type already exists in+-- the domain. You cannot change any configuration settings of the type+-- after its registration, and it must be registered as a new version. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.   'defaultTaskList.name': String constraint. The key--- is 'swf:defaultTaskList.name'.  'name': String constraint. The key is 'swf:name'.  'version': String constraint. The key is 'swf:version'.    If the caller does not have--- sufficient permissions to invoke the action, or the parameter values fall--- outside the specified constraints, the action fails. The associated event--- attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'defaultTaskList.name': String constraint. The key is+--         'swf:defaultTaskList.name'.+--     -   'name': String constraint. The key is 'swf:name'.+--     -   'version': String constraint. The key is 'swf:version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterActivityType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterActivityType.html AWS API Reference> for RegisterActivityType. module Network.AWS.SWF.RegisterActivityType     (-    -- * Request-      RegisterActivityType-    -- ** Request constructor-    , registerActivityType-    -- ** Request lenses-    , ratDefaultTaskHeartbeatTimeout+    -- * Creating a Request+      registerActivityType+    , RegisterActivityType+    -- * Request Lenses+    , ratDefaultTaskScheduleToStartTimeout     , ratDefaultTaskList     , ratDefaultTaskPriority+    , ratDefaultTaskHeartbeatTimeout     , ratDefaultTaskScheduleToCloseTimeout-    , ratDefaultTaskScheduleToStartTimeout     , ratDefaultTaskStartToCloseTimeout     , ratDescription     , ratDomain     , ratName     , ratVersion -    -- * Response-    , RegisterActivityTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , registerActivityTypeResponse+    , RegisterActivityTypeResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RegisterActivityType = RegisterActivityType-    { _ratDefaultTaskHeartbeatTimeout       :: Maybe Text-    , _ratDefaultTaskList                   :: Maybe TaskList-    , _ratDefaultTaskPriority               :: Maybe Text-    , _ratDefaultTaskScheduleToCloseTimeout :: Maybe Text-    , _ratDefaultTaskScheduleToStartTimeout :: Maybe Text-    , _ratDefaultTaskStartToCloseTimeout    :: Maybe Text-    , _ratDescription                       :: Maybe Text-    , _ratDomain                            :: Text-    , _ratName                              :: Text-    , _ratVersion                           :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'registerActivityType' smart constructor.+data RegisterActivityType = RegisterActivityType'+    { _ratDefaultTaskScheduleToStartTimeout :: !(Maybe Text)+    , _ratDefaultTaskList                   :: !(Maybe TaskList)+    , _ratDefaultTaskPriority               :: !(Maybe Text)+    , _ratDefaultTaskHeartbeatTimeout       :: !(Maybe Text)+    , _ratDefaultTaskScheduleToCloseTimeout :: !(Maybe Text)+    , _ratDefaultTaskStartToCloseTimeout    :: !(Maybe Text)+    , _ratDescription                       :: !(Maybe Text)+    , _ratDomain                            :: !Text+    , _ratName                              :: !Text+    , _ratVersion                           :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RegisterActivityType' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RegisterActivityType' with the minimum fields required to make a request. ----- * 'ratDefaultTaskHeartbeatTimeout' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ratDefaultTaskList' @::@ 'Maybe' 'TaskList'+-- * 'ratDefaultTaskScheduleToStartTimeout' ----- * 'ratDefaultTaskPriority' @::@ 'Maybe' 'Text'+-- * 'ratDefaultTaskList' ----- * 'ratDefaultTaskScheduleToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'ratDefaultTaskPriority' ----- * 'ratDefaultTaskScheduleToStartTimeout' @::@ 'Maybe' 'Text'+-- * 'ratDefaultTaskHeartbeatTimeout' ----- * 'ratDefaultTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'ratDefaultTaskScheduleToCloseTimeout' ----- * 'ratDescription' @::@ 'Maybe' 'Text'+-- * 'ratDefaultTaskStartToCloseTimeout' ----- * 'ratDomain' @::@ 'Text'+-- * 'ratDescription' ----- * 'ratName' @::@ 'Text'+-- * 'ratDomain' ----- * 'ratVersion' @::@ 'Text'+-- * 'ratName' ---registerActivityType :: Text -- ^ 'ratDomain'-                     -> Text -- ^ 'ratName'-                     -> Text -- ^ 'ratVersion'-                     -> RegisterActivityType-registerActivityType p1 p2 p3 = RegisterActivityType-    { _ratDomain                            = p1-    , _ratName                              = p2-    , _ratVersion                           = p3-    , _ratDescription                       = Nothing-    , _ratDefaultTaskStartToCloseTimeout    = Nothing-    , _ratDefaultTaskHeartbeatTimeout       = Nothing-    , _ratDefaultTaskList                   = Nothing-    , _ratDefaultTaskPriority               = Nothing-    , _ratDefaultTaskScheduleToStartTimeout = Nothing+-- * 'ratVersion'+registerActivityType+    :: Text -- ^ 'ratDomain'+    -> Text -- ^ 'ratName'+    -> Text -- ^ 'ratVersion'+    -> RegisterActivityType+registerActivityType pDomain_ pName_ pVersion_ =+    RegisterActivityType'+    { _ratDefaultTaskScheduleToStartTimeout = Nothing+    , _ratDefaultTaskList = Nothing+    , _ratDefaultTaskPriority = Nothing+    , _ratDefaultTaskHeartbeatTimeout = Nothing     , _ratDefaultTaskScheduleToCloseTimeout = Nothing+    , _ratDefaultTaskStartToCloseTimeout = Nothing+    , _ratDescription = Nothing+    , _ratDomain = pDomain_+    , _ratName = pName_+    , _ratVersion = pVersion_     } --- | If set, specifies the default maximum time before which a worker processing a--- task of this type must report progress by calling 'RecordActivityTaskHeartbeat'. If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the--- 'ScheduleActivityTask' 'Decision'. If the activity worker subsequently attempts--- to record a heartbeat or returns a result, the activity worker receives an 'UnknownResource' fault. In this case, Amazon SWF no longer considers the activity task to be--- valid; the activity worker should clean up the activity task.+-- | If set, specifies the default maximum duration that a task of this+-- activity type can wait before being assigned to a worker. This default+-- can be overridden when scheduling an activity task using the+-- 'ScheduleActivityTask' decision. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-ratDefaultTaskHeartbeatTimeout :: Lens' RegisterActivityType (Maybe Text)-ratDefaultTaskHeartbeatTimeout =-    lens _ratDefaultTaskHeartbeatTimeout-        (\s a -> s { _ratDefaultTaskHeartbeatTimeout = a })+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+ratDefaultTaskScheduleToStartTimeout :: Lens' RegisterActivityType (Maybe Text)+ratDefaultTaskScheduleToStartTimeout = lens _ratDefaultTaskScheduleToStartTimeout (\ s a -> s{_ratDefaultTaskScheduleToStartTimeout = a}); --- | If set, specifies the default task list to use for scheduling tasks of this--- activity type. This default task list is used if a task list is not provided--- when a task is scheduled through the 'ScheduleActivityTask' 'Decision'.+-- | If set, specifies the default task list to use for scheduling tasks of+-- this activity type. This default task list is used if a task list is not+-- provided when a task is scheduled through the 'ScheduleActivityTask'+-- decision. ratDefaultTaskList :: Lens' RegisterActivityType (Maybe TaskList)-ratDefaultTaskList =-    lens _ratDefaultTaskList (\s a -> s { _ratDefaultTaskList = a })+ratDefaultTaskList = lens _ratDefaultTaskList (\ s a -> s{_ratDefaultTaskList = a}); --- | The default task priority to assign to the activity type. If not assigned,--- then "0" will be used. Valid values are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.+-- | The default task priority to assign to the activity type. If not+-- assigned, then \"0\" will be used. Valid values are integers that range+-- from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE'+-- (2147483647). Higher numbers indicate higher priority. ----- For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> -- in the /Amazon Simple Workflow Developer Guide/. ratDefaultTaskPriority :: Lens' RegisterActivityType (Maybe Text)-ratDefaultTaskPriority =-    lens _ratDefaultTaskPriority (\s a -> s { _ratDefaultTaskPriority = a })+ratDefaultTaskPriority = lens _ratDefaultTaskPriority (\ s a -> s{_ratDefaultTaskPriority = a}); --- | If set, specifies the default maximum duration for a task of this activity--- type. This default can be overridden when scheduling an activity task using--- the 'ScheduleActivityTask' 'Decision'.+-- | If set, specifies the default maximum time before which a worker+-- processing a task of this type must report progress by calling+-- RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity+-- task is automatically timed out. This default can be overridden when+-- scheduling an activity task using the 'ScheduleActivityTask' decision.+-- If the activity worker subsequently attempts to record a heartbeat or+-- returns a result, the activity worker receives an 'UnknownResource'+-- fault. In this case, Amazon SWF no longer considers the activity task to+-- be valid; the activity worker should clean up the activity task. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-ratDefaultTaskScheduleToCloseTimeout :: Lens' RegisterActivityType (Maybe Text)-ratDefaultTaskScheduleToCloseTimeout =-    lens _ratDefaultTaskScheduleToCloseTimeout-        (\s a -> s { _ratDefaultTaskScheduleToCloseTimeout = a })+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+ratDefaultTaskHeartbeatTimeout :: Lens' RegisterActivityType (Maybe Text)+ratDefaultTaskHeartbeatTimeout = lens _ratDefaultTaskHeartbeatTimeout (\ s a -> s{_ratDefaultTaskHeartbeatTimeout = a}); --- | If set, specifies the default maximum duration that a task of this activity--- type can wait before being assigned to a worker. This default can be--- overridden when scheduling an activity task using the 'ScheduleActivityTask' 'Decision'.+-- | If set, specifies the default maximum duration for a task of this+-- activity type. This default can be overridden when scheduling an+-- activity task using the 'ScheduleActivityTask' decision. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-ratDefaultTaskScheduleToStartTimeout :: Lens' RegisterActivityType (Maybe Text)-ratDefaultTaskScheduleToStartTimeout =-    lens _ratDefaultTaskScheduleToStartTimeout-        (\s a -> s { _ratDefaultTaskScheduleToStartTimeout = a })+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+ratDefaultTaskScheduleToCloseTimeout :: Lens' RegisterActivityType (Maybe Text)+ratDefaultTaskScheduleToCloseTimeout = lens _ratDefaultTaskScheduleToCloseTimeout (\ s a -> s{_ratDefaultTaskScheduleToCloseTimeout = a});  -- | If set, specifies the default maximum duration that a worker can take to -- process tasks of this activity type. This default can be overridden when--- scheduling an activity task using the 'ScheduleActivityTask' 'Decision'.+-- scheduling an activity task using the 'ScheduleActivityTask' decision. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration. ratDefaultTaskStartToCloseTimeout :: Lens' RegisterActivityType (Maybe Text)-ratDefaultTaskStartToCloseTimeout =-    lens _ratDefaultTaskStartToCloseTimeout-        (\s a -> s { _ratDefaultTaskStartToCloseTimeout = a })+ratDefaultTaskStartToCloseTimeout = lens _ratDefaultTaskStartToCloseTimeout (\ s a -> s{_ratDefaultTaskStartToCloseTimeout = a});  -- | A textual description of the activity type. ratDescription :: Lens' RegisterActivityType (Maybe Text)-ratDescription = lens _ratDescription (\s a -> s { _ratDescription = a })+ratDescription = lens _ratDescription (\ s a -> s{_ratDescription = a});  -- | The name of the domain in which this activity is to be registered. ratDomain :: Lens' RegisterActivityType Text-ratDomain = lens _ratDomain (\s a -> s { _ratDomain = a })+ratDomain = lens _ratDomain (\ s a -> s{_ratDomain = a});  -- | The name of the activity type within the domain. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. ratName :: Lens' RegisterActivityType Text-ratName = lens _ratName (\s a -> s { _ratName = a })+ratName = lens _ratName (\ s a -> s{_ratName = a});  -- | The version of the activity type. ----- The activity type consists of the name and version, the combination of which--- must be unique within the domain. The specified string must not start or end--- with whitespace. It must not contain a ':' (colon), '/' (slash), '|' (vertical--- bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it--- must not contain the literal string quotarnquot.+-- The activity type consists of the name and version, the combination of+-- which must be unique within the domain.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. ratVersion :: Lens' RegisterActivityType Text-ratVersion = lens _ratVersion (\s a -> s { _ratVersion = a })+ratVersion = lens _ratVersion (\ s a -> s{_ratVersion = a}); -data RegisterActivityTypeResponse = RegisterActivityTypeResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RegisterActivityType where+        type Sv RegisterActivityType = SWF+        type Rs RegisterActivityType =+             RegisterActivityTypeResponse+        request = postJSON+        response = receiveNull RegisterActivityTypeResponse' --- | 'RegisterActivityTypeResponse' constructor.-registerActivityTypeResponse :: RegisterActivityTypeResponse-registerActivityTypeResponse = RegisterActivityTypeResponse+instance ToHeaders RegisterActivityType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RegisterActivityType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RegisterActivityType where+        toJSON RegisterActivityType'{..}+          = object+              ["defaultTaskScheduleToStartTimeout" .=+                 _ratDefaultTaskScheduleToStartTimeout,+               "defaultTaskList" .= _ratDefaultTaskList,+               "defaultTaskPriority" .= _ratDefaultTaskPriority,+               "defaultTaskHeartbeatTimeout" .=+                 _ratDefaultTaskHeartbeatTimeout,+               "defaultTaskScheduleToCloseTimeout" .=+                 _ratDefaultTaskScheduleToCloseTimeout,+               "defaultTaskStartToCloseTimeout" .=+                 _ratDefaultTaskStartToCloseTimeout,+               "description" .= _ratDescription,+               "domain" .= _ratDomain, "name" .= _ratName,+               "version" .= _ratVersion]+ instance ToPath RegisterActivityType where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RegisterActivityType where-    toQuery = const mempty--instance ToHeaders RegisterActivityType--instance ToJSON RegisterActivityType where-    toJSON RegisterActivityType{..} = object-        [ "domain"                            .= _ratDomain-        , "name"                              .= _ratName-        , "version"                           .= _ratVersion-        , "description"                       .= _ratDescription-        , "defaultTaskStartToCloseTimeout"    .= _ratDefaultTaskStartToCloseTimeout-        , "defaultTaskHeartbeatTimeout"       .= _ratDefaultTaskHeartbeatTimeout-        , "defaultTaskList"                   .= _ratDefaultTaskList-        , "defaultTaskPriority"               .= _ratDefaultTaskPriority-        , "defaultTaskScheduleToStartTimeout" .= _ratDefaultTaskScheduleToStartTimeout-        , "defaultTaskScheduleToCloseTimeout" .= _ratDefaultTaskScheduleToCloseTimeout-        ]+        toQuery = const mempty -instance AWSRequest RegisterActivityType where-    type Sv RegisterActivityType = SWF-    type Rs RegisterActivityType = RegisterActivityTypeResponse+-- | /See:/ 'registerActivityTypeResponse' smart constructor.+data RegisterActivityTypeResponse =+    RegisterActivityTypeResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RegisterActivityType"-    response = nullResponse RegisterActivityTypeResponse+-- | Creates a value of 'RegisterActivityTypeResponse' with the minimum fields required to make a request.+--+registerActivityTypeResponse+    :: RegisterActivityTypeResponse+registerActivityTypeResponse = RegisterActivityTypeResponse'
gen/Network/AWS/SWF/RegisterDomain.hs view
@@ -1,147 +1,159 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RegisterDomain--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Registers a new domain.+-- Registers a new domain. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- You cannot use an IAM policy to control domain access for this action. The--- name of the domain being registered is available as the resource of this--- action. Use an 'Action' element to allow or deny permission to call this action.--- You cannot use an IAM policy to constrain this action's parameters.  If the--- caller does not have sufficient permissions to invoke the action, or the--- parameter values fall outside the specified constraints, the action fails.--- The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   You cannot use an IAM policy to control domain access for this+--     action. The name of the domain being registered is available as the+--     resource of this action.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterDomain.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterDomain.html AWS API Reference> for RegisterDomain. module Network.AWS.SWF.RegisterDomain     (-    -- * Request-      RegisterDomain-    -- ** Request constructor-    , registerDomain-    -- ** Request lenses+    -- * Creating a Request+      registerDomain+    , RegisterDomain+    -- * Request Lenses     , rdDescription     , rdName     , rdWorkflowExecutionRetentionPeriodInDays -    -- * Response-    , RegisterDomainResponse-    -- ** Response constructor+    -- * Destructuring the Response     , registerDomainResponse+    , RegisterDomainResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RegisterDomain = RegisterDomain-    { _rdDescription                            :: Maybe Text-    , _rdName                                   :: Text-    , _rdWorkflowExecutionRetentionPeriodInDays :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'registerDomain' smart constructor.+data RegisterDomain = RegisterDomain'+    { _rdDescription                            :: !(Maybe Text)+    , _rdName                                   :: !Text+    , _rdWorkflowExecutionRetentionPeriodInDays :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RegisterDomain' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RegisterDomain' with the minimum fields required to make a request. ----- * 'rdDescription' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'rdName' @::@ 'Text'+-- * 'rdDescription' ----- * 'rdWorkflowExecutionRetentionPeriodInDays' @::@ 'Text'+-- * 'rdName' ---registerDomain :: Text -- ^ 'rdName'-               -> Text -- ^ 'rdWorkflowExecutionRetentionPeriodInDays'-               -> RegisterDomain-registerDomain p1 p2 = RegisterDomain-    { _rdName                                   = p1-    , _rdWorkflowExecutionRetentionPeriodInDays = p2-    , _rdDescription                            = Nothing+-- * 'rdWorkflowExecutionRetentionPeriodInDays'+registerDomain+    :: Text -- ^ 'rdName'+    -> Text -- ^ 'rdWorkflowExecutionRetentionPeriodInDays'+    -> RegisterDomain+registerDomain pName_ pWorkflowExecutionRetentionPeriodInDays_ =+    RegisterDomain'+    { _rdDescription = Nothing+    , _rdName = pName_+    , _rdWorkflowExecutionRetentionPeriodInDays = pWorkflowExecutionRetentionPeriodInDays_     }  -- | A text description of the domain. rdDescription :: Lens' RegisterDomain (Maybe Text)-rdDescription = lens _rdDescription (\s a -> s { _rdDescription = a })+rdDescription = lens _rdDescription (\ s a -> s{_rdDescription = a}); --- | Name of the domain to register. The name must be unique in the region that--- the domain is registered in.+-- | Name of the domain to register. The name must be unique in the region+-- that the domain is registered in. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. rdName :: Lens' RegisterDomain Text-rdName = lens _rdName (\s a -> s { _rdName = a })+rdName = lens _rdName (\ s a -> s{_rdName = a}); --- | The duration (in days) that records and histories of workflow executions on--- the domain should be kept by the service. After the retention period, the--- workflow execution is not available in the results of visibility calls.+-- | The duration (in days) that records and histories of workflow executions+-- on the domain should be kept by the service. After the retention period,+-- the workflow execution is not available in the results of visibility+-- calls. ----- If you pass the value 'NONE' or '0' (zero), then the workflow execution history--- will not be retained. As soon as the workflow execution completes, the--- execution record and its history are deleted.+-- If you pass the value 'NONE' or '0' (zero), then the workflow execution+-- history will not be retained. As soon as the workflow execution+-- completes, the execution record and its history are deleted. -- -- The maximum workflow execution retention period is 90 days. For more--- information about Amazon SWF service limits, see: <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html Amazon SWF Service Limits>+-- information about Amazon SWF service limits, see:+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html Amazon SWF Service Limits> -- in the /Amazon SWF Developer Guide/. rdWorkflowExecutionRetentionPeriodInDays :: Lens' RegisterDomain Text-rdWorkflowExecutionRetentionPeriodInDays =-    lens _rdWorkflowExecutionRetentionPeriodInDays-        (\s a -> s { _rdWorkflowExecutionRetentionPeriodInDays = a })+rdWorkflowExecutionRetentionPeriodInDays = lens _rdWorkflowExecutionRetentionPeriodInDays (\ s a -> s{_rdWorkflowExecutionRetentionPeriodInDays = a}); -data RegisterDomainResponse = RegisterDomainResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RegisterDomain where+        type Sv RegisterDomain = SWF+        type Rs RegisterDomain = RegisterDomainResponse+        request = postJSON+        response = receiveNull RegisterDomainResponse' --- | 'RegisterDomainResponse' constructor.-registerDomainResponse :: RegisterDomainResponse-registerDomainResponse = RegisterDomainResponse+instance ToHeaders RegisterDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RegisterDomain" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RegisterDomain where+        toJSON RegisterDomain'{..}+          = object+              ["description" .= _rdDescription, "name" .= _rdName,+               "workflowExecutionRetentionPeriodInDays" .=+                 _rdWorkflowExecutionRetentionPeriodInDays]+ instance ToPath RegisterDomain where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RegisterDomain where-    toQuery = const mempty--instance ToHeaders RegisterDomain--instance ToJSON RegisterDomain where-    toJSON RegisterDomain{..} = object-        [ "name"                                   .= _rdName-        , "description"                            .= _rdDescription-        , "workflowExecutionRetentionPeriodInDays" .= _rdWorkflowExecutionRetentionPeriodInDays-        ]+        toQuery = const mempty -instance AWSRequest RegisterDomain where-    type Sv RegisterDomain = SWF-    type Rs RegisterDomain = RegisterDomainResponse+-- | /See:/ 'registerDomainResponse' smart constructor.+data RegisterDomainResponse =+    RegisterDomainResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RegisterDomain"-    response = nullResponse RegisterDomainResponse+-- | Creates a value of 'RegisterDomainResponse' with the minimum fields required to make a request.+--+registerDomainResponse+    :: RegisterDomainResponse+registerDomainResponse = RegisterDomainResponse'
gen/Network/AWS/SWF/RegisterWorkflowType.hs view
@@ -1,245 +1,286 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RegisterWorkflowType--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Registers a new /workflow type/ and its configuration settings in the specified--- domain.+-- Registers a new /workflow type/ and its configuration settings in the+-- specified domain. ----- The retention period for the workflow history is set by the 'RegisterDomain'--- action.+-- The retention period for the workflow history is set by the+-- RegisterDomain action. ----- If the type already exists, then a 'TypeAlreadyExists' fault is returned. You--- cannot change the configuration settings of a workflow type once it is--- registered and it must be registered as a new version. Access Control+-- If the type already exists, then a 'TypeAlreadyExists' fault is+-- returned. You cannot change the configuration settings of a workflow+-- type once it is registered and it must be registered as a new version. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.   'defaultTaskList.name': String constraint. The key--- is 'swf:defaultTaskList.name'.  'name': String constraint. The key is 'swf:name'.  'version': String constraint. The key is 'swf:version'.    If the caller does not have--- sufficient permissions to invoke the action, or the parameter values fall--- outside the specified constraints, the action fails. The associated event--- attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'defaultTaskList.name': String constraint. The key is+--         'swf:defaultTaskList.name'.+--     -   'name': String constraint. The key is 'swf:name'.+--     -   'version': String constraint. The key is 'swf:version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterWorkflowType.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RegisterWorkflowType.html AWS API Reference> for RegisterWorkflowType. module Network.AWS.SWF.RegisterWorkflowType     (-    -- * Request-      RegisterWorkflowType-    -- ** Request constructor-    , registerWorkflowType-    -- ** Request lenses+    -- * Creating a Request+      registerWorkflowType+    , RegisterWorkflowType+    -- * Request Lenses+    , rwtDefaultLambdaRole     , rwtDefaultChildPolicy-    , rwtDefaultExecutionStartToCloseTimeout     , rwtDefaultTaskList     , rwtDefaultTaskPriority+    , rwtDefaultExecutionStartToCloseTimeout     , rwtDefaultTaskStartToCloseTimeout     , rwtDescription     , rwtDomain     , rwtName     , rwtVersion -    -- * Response-    , RegisterWorkflowTypeResponse-    -- ** Response constructor+    -- * Destructuring the Response     , registerWorkflowTypeResponse+    , RegisterWorkflowTypeResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RegisterWorkflowType = RegisterWorkflowType-    { _rwtDefaultChildPolicy                  :: Maybe ChildPolicy-    , _rwtDefaultExecutionStartToCloseTimeout :: Maybe Text-    , _rwtDefaultTaskList                     :: Maybe TaskList-    , _rwtDefaultTaskPriority                 :: Maybe Text-    , _rwtDefaultTaskStartToCloseTimeout      :: Maybe Text-    , _rwtDescription                         :: Maybe Text-    , _rwtDomain                              :: Text-    , _rwtName                                :: Text-    , _rwtVersion                             :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'registerWorkflowType' smart constructor.+data RegisterWorkflowType = RegisterWorkflowType'+    { _rwtDefaultLambdaRole                   :: !(Maybe Text)+    , _rwtDefaultChildPolicy                  :: !(Maybe ChildPolicy)+    , _rwtDefaultTaskList                     :: !(Maybe TaskList)+    , _rwtDefaultTaskPriority                 :: !(Maybe Text)+    , _rwtDefaultExecutionStartToCloseTimeout :: !(Maybe Text)+    , _rwtDefaultTaskStartToCloseTimeout      :: !(Maybe Text)+    , _rwtDescription                         :: !(Maybe Text)+    , _rwtDomain                              :: !Text+    , _rwtName                                :: !Text+    , _rwtVersion                             :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RegisterWorkflowType' constructor.+-- | Creates a value of 'RegisterWorkflowType' with the minimum fields required to make a request. ----- The fields accessible through corresponding lenses are:+-- Use one of the following lenses to modify other fields as desired: ----- * 'rwtDefaultChildPolicy' @::@ 'Maybe' 'ChildPolicy'+-- * 'rwtDefaultLambdaRole' ----- * 'rwtDefaultExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'rwtDefaultChildPolicy' ----- * 'rwtDefaultTaskList' @::@ 'Maybe' 'TaskList'+-- * 'rwtDefaultTaskList' ----- * 'rwtDefaultTaskPriority' @::@ 'Maybe' 'Text'+-- * 'rwtDefaultTaskPriority' ----- * 'rwtDefaultTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'rwtDefaultExecutionStartToCloseTimeout' ----- * 'rwtDescription' @::@ 'Maybe' 'Text'+-- * 'rwtDefaultTaskStartToCloseTimeout' ----- * 'rwtDomain' @::@ 'Text'+-- * 'rwtDescription' ----- * 'rwtName' @::@ 'Text'+-- * 'rwtDomain' ----- * 'rwtVersion' @::@ 'Text'+-- * 'rwtName' ---registerWorkflowType :: Text -- ^ 'rwtDomain'-                     -> Text -- ^ 'rwtName'-                     -> Text -- ^ 'rwtVersion'-                     -> RegisterWorkflowType-registerWorkflowType p1 p2 p3 = RegisterWorkflowType-    { _rwtDomain                              = p1-    , _rwtName                                = p2-    , _rwtVersion                             = p3-    , _rwtDescription                         = Nothing-    , _rwtDefaultTaskStartToCloseTimeout      = Nothing+-- * 'rwtVersion'+registerWorkflowType+    :: Text -- ^ 'rwtDomain'+    -> Text -- ^ 'rwtName'+    -> Text -- ^ 'rwtVersion'+    -> RegisterWorkflowType+registerWorkflowType pDomain_ pName_ pVersion_ =+    RegisterWorkflowType'+    { _rwtDefaultLambdaRole = Nothing+    , _rwtDefaultChildPolicy = Nothing+    , _rwtDefaultTaskList = Nothing+    , _rwtDefaultTaskPriority = Nothing     , _rwtDefaultExecutionStartToCloseTimeout = Nothing-    , _rwtDefaultTaskList                     = Nothing-    , _rwtDefaultTaskPriority                 = Nothing-    , _rwtDefaultChildPolicy                  = Nothing+    , _rwtDefaultTaskStartToCloseTimeout = Nothing+    , _rwtDescription = Nothing+    , _rwtDomain = pDomain_+    , _rwtName = pName_+    , _rwtVersion = pVersion_     } --- | If set, specifies the default policy to use for the child workflow executions--- when a workflow execution of this type is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be--- overridden when starting a workflow execution using the 'StartWorkflowExecution'--- action or the 'StartChildWorkflowExecution' 'Decision'.+-- | The ARN of the default IAM role to use when a workflow execution of this+-- type invokes AWS Lambda functions. --+-- This default can be overridden when starting a workflow execution using+-- the StartWorkflowExecution action or the 'StartChildWorkflowExecution'+-- and 'ContinueAsNewWorkflowExecution' decision.+rwtDefaultLambdaRole :: Lens' RegisterWorkflowType (Maybe Text)+rwtDefaultLambdaRole = lens _rwtDefaultLambdaRole (\ s a -> s{_rwtDefaultLambdaRole = a});++-- | If set, specifies the default policy to use for the child workflow+-- executions when a workflow execution of this type is terminated, by+-- calling the TerminateWorkflowExecution action explicitly or due to an+-- expired timeout. This default can be overridden when starting a workflow+-- execution using the StartWorkflowExecution action or the+-- 'StartChildWorkflowExecution' decision.+-- -- The supported child policies are: ----- TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run. rwtDefaultChildPolicy :: Lens' RegisterWorkflowType (Maybe ChildPolicy)-rwtDefaultChildPolicy =-    lens _rwtDefaultChildPolicy (\s a -> s { _rwtDefaultChildPolicy = a })---- | If set, specifies the default maximum duration for executions of this--- workflow type. You can override this default when starting an execution--- through the 'StartWorkflowExecution' Action or 'StartChildWorkflowExecution' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- Unlike some of the other timeout parameters in Amazon SWF, you cannot specify--- a value of "NONE" for 'defaultExecutionStartToCloseTimeout'; there is a--- one-year max limit on the time that a workflow execution can run. Exceeding--- this limit will always cause the workflow execution to time out.-rwtDefaultExecutionStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text)-rwtDefaultExecutionStartToCloseTimeout =-    lens _rwtDefaultExecutionStartToCloseTimeout-        (\s a -> s { _rwtDefaultExecutionStartToCloseTimeout = a })+rwtDefaultChildPolicy = lens _rwtDefaultChildPolicy (\ s a -> s{_rwtDefaultChildPolicy = a}); --- | If set, specifies the default task list to use for scheduling decision tasks--- for executions of this workflow type. This default is used only if a task--- list is not provided when starting the execution through the 'StartWorkflowExecution' Action or 'StartChildWorkflowExecution' 'Decision'.+-- | If set, specifies the default task list to use for scheduling decision+-- tasks for executions of this workflow type. This default is used only if+-- a task list is not provided when starting the execution through the+-- StartWorkflowExecution action or 'StartChildWorkflowExecution' decision. rwtDefaultTaskList :: Lens' RegisterWorkflowType (Maybe TaskList)-rwtDefaultTaskList =-    lens _rwtDefaultTaskList (\s a -> s { _rwtDefaultTaskList = a })+rwtDefaultTaskList = lens _rwtDefaultTaskList (\ s a -> s{_rwtDefaultTaskList = a}); --- | The default task priority to assign to the workflow type. If not assigned,--- then "0" will be used. Valid values are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.+-- | The default task priority to assign to the workflow type. If not+-- assigned, then \"0\" will be used. Valid values are integers that range+-- from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE'+-- (2147483647). Higher numbers indicate higher priority. ----- For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> -- in the /Amazon Simple Workflow Developer Guide/. rwtDefaultTaskPriority :: Lens' RegisterWorkflowType (Maybe Text)-rwtDefaultTaskPriority =-    lens _rwtDefaultTaskPriority (\s a -> s { _rwtDefaultTaskPriority = a })+rwtDefaultTaskPriority = lens _rwtDefaultTaskPriority (\ s a -> s{_rwtDefaultTaskPriority = a}); --- | If set, specifies the default maximum duration of decision tasks for this--- workflow type. This default can be overridden when starting a workflow--- execution using the 'StartWorkflowExecution' action or the 'StartChildWorkflowExecution' 'Decision'.+-- | If set, specifies the default maximum duration for executions of this+-- workflow type. You can override this default when starting an execution+-- through the StartWorkflowExecution action or+-- 'StartChildWorkflowExecution' decision. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. Unlike some of the other timeout parameters in Amazon SWF, you+-- cannot specify a value of \"NONE\" for+-- 'defaultExecutionStartToCloseTimeout'; there is a one-year max limit on+-- the time that a workflow execution can run. Exceeding this limit will+-- always cause the workflow execution to time out.+rwtDefaultExecutionStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text)+rwtDefaultExecutionStartToCloseTimeout = lens _rwtDefaultExecutionStartToCloseTimeout (\ s a -> s{_rwtDefaultExecutionStartToCloseTimeout = a});++-- | If set, specifies the default maximum duration of decision tasks for+-- this workflow type. This default can be overridden when starting a+-- workflow execution using the StartWorkflowExecution action or the+-- 'StartChildWorkflowExecution' decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration. rwtDefaultTaskStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text)-rwtDefaultTaskStartToCloseTimeout =-    lens _rwtDefaultTaskStartToCloseTimeout-        (\s a -> s { _rwtDefaultTaskStartToCloseTimeout = a })+rwtDefaultTaskStartToCloseTimeout = lens _rwtDefaultTaskStartToCloseTimeout (\ s a -> s{_rwtDefaultTaskStartToCloseTimeout = a});  -- | Textual description of the workflow type. rwtDescription :: Lens' RegisterWorkflowType (Maybe Text)-rwtDescription = lens _rwtDescription (\s a -> s { _rwtDescription = a })+rwtDescription = lens _rwtDescription (\ s a -> s{_rwtDescription = a});  -- | The name of the domain in which to register the workflow type. rwtDomain :: Lens' RegisterWorkflowType Text-rwtDomain = lens _rwtDomain (\s a -> s { _rwtDomain = a })+rwtDomain = lens _rwtDomain (\ s a -> s{_rwtDomain = a});  -- | The name of the workflow type. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. rwtName :: Lens' RegisterWorkflowType Text-rwtName = lens _rwtName (\s a -> s { _rwtName = a })+rwtName = lens _rwtName (\ s a -> s{_rwtName = a});  -- | The version of the workflow type. ----- The workflow type consists of the name and version, the combination of which--- must be unique within the domain. To get a list of all currently registered--- workflow types, use the 'ListWorkflowTypes' action. The specified string must--- not start or end with whitespace. It must not contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters (\u0000-\u001f | \u007f ---- \u009f). Also, it must not contain the literal string quotarnquot.+-- The workflow type consists of the name and version, the combination of+-- which must be unique within the domain. To get a list of all currently+-- registered workflow types, use the ListWorkflowTypes action.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot. rwtVersion :: Lens' RegisterWorkflowType Text-rwtVersion = lens _rwtVersion (\s a -> s { _rwtVersion = a })+rwtVersion = lens _rwtVersion (\ s a -> s{_rwtVersion = a}); -data RegisterWorkflowTypeResponse = RegisterWorkflowTypeResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RegisterWorkflowType where+        type Sv RegisterWorkflowType = SWF+        type Rs RegisterWorkflowType =+             RegisterWorkflowTypeResponse+        request = postJSON+        response = receiveNull RegisterWorkflowTypeResponse' --- | 'RegisterWorkflowTypeResponse' constructor.-registerWorkflowTypeResponse :: RegisterWorkflowTypeResponse-registerWorkflowTypeResponse = RegisterWorkflowTypeResponse+instance ToHeaders RegisterWorkflowType where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RegisterWorkflowType" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RegisterWorkflowType where+        toJSON RegisterWorkflowType'{..}+          = object+              ["defaultLambdaRole" .= _rwtDefaultLambdaRole,+               "defaultChildPolicy" .= _rwtDefaultChildPolicy,+               "defaultTaskList" .= _rwtDefaultTaskList,+               "defaultTaskPriority" .= _rwtDefaultTaskPriority,+               "defaultExecutionStartToCloseTimeout" .=+                 _rwtDefaultExecutionStartToCloseTimeout,+               "defaultTaskStartToCloseTimeout" .=+                 _rwtDefaultTaskStartToCloseTimeout,+               "description" .= _rwtDescription,+               "domain" .= _rwtDomain, "name" .= _rwtName,+               "version" .= _rwtVersion]+ instance ToPath RegisterWorkflowType where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RegisterWorkflowType where-    toQuery = const mempty--instance ToHeaders RegisterWorkflowType--instance ToJSON RegisterWorkflowType where-    toJSON RegisterWorkflowType{..} = object-        [ "domain"                              .= _rwtDomain-        , "name"                                .= _rwtName-        , "version"                             .= _rwtVersion-        , "description"                         .= _rwtDescription-        , "defaultTaskStartToCloseTimeout"      .= _rwtDefaultTaskStartToCloseTimeout-        , "defaultExecutionStartToCloseTimeout" .= _rwtDefaultExecutionStartToCloseTimeout-        , "defaultTaskList"                     .= _rwtDefaultTaskList-        , "defaultTaskPriority"                 .= _rwtDefaultTaskPriority-        , "defaultChildPolicy"                  .= _rwtDefaultChildPolicy-        ]+        toQuery = const mempty -instance AWSRequest RegisterWorkflowType where-    type Sv RegisterWorkflowType = SWF-    type Rs RegisterWorkflowType = RegisterWorkflowTypeResponse+-- | /See:/ 'registerWorkflowTypeResponse' smart constructor.+data RegisterWorkflowTypeResponse =+    RegisterWorkflowTypeResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RegisterWorkflowType"-    response = nullResponse RegisterWorkflowTypeResponse+-- | Creates a value of 'RegisterWorkflowTypeResponse' with the minimum fields required to make a request.+--+registerWorkflowTypeResponse+    :: RegisterWorkflowTypeResponse+registerWorkflowTypeResponse = RegisterWorkflowTypeResponse'
gen/Network/AWS/SWF/RequestCancelWorkflowExecution.hs view
@@ -1,135 +1,156 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RequestCancelWorkflowExecution--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Records a 'WorkflowExecutionCancelRequested' event in the currently running--- workflow execution identified by the given domain, workflowId, and runId.--- This logically requests the cancellation of the workflow execution as a--- whole. It is up to the decider to take appropriate actions when it receives--- an execution history with this event.+-- Records a 'WorkflowExecutionCancelRequested' event in the currently+-- running workflow execution identified by the given domain, workflowId,+-- and runId. This logically requests the cancellation of the workflow+-- execution as a whole. It is up to the decider to take appropriate+-- actions when it receives an execution history with this event. ----- If the runId is not specified, the 'WorkflowExecutionCancelRequested' event is--- recorded in the history of the current open workflow execution with the--- specified workflowId in the domain. Because this action allows the workflow--- to properly clean up and gracefully close, it should be used instead of 'TerminateWorkflowExecution' when possible. Access Control+-- If the runId is not specified, the 'WorkflowExecutionCancelRequested'+-- event is recorded in the history of the current open workflow execution+-- with the specified workflowId in the domain. ----- You can use IAM policies to control this action's access to Amazon SWF+-- Because this action allows the workflow to properly clean up and+-- gracefully close, it should be used instead of+-- TerminateWorkflowExecution when possible.+--+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RequestCancelWorkflowExecution.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RequestCancelWorkflowExecution.html AWS API Reference> for RequestCancelWorkflowExecution. module Network.AWS.SWF.RequestCancelWorkflowExecution     (-    -- * Request-      RequestCancelWorkflowExecution-    -- ** Request constructor-    , requestCancelWorkflowExecution-    -- ** Request lenses-    , rcweDomain+    -- * Creating a Request+      requestCancelWorkflowExecution+    , RequestCancelWorkflowExecution+    -- * Request Lenses     , rcweRunId+    , rcweDomain     , rcweWorkflowId -    -- * Response-    , RequestCancelWorkflowExecutionResponse-    -- ** Response constructor+    -- * Destructuring the Response     , requestCancelWorkflowExecutionResponse+    , RequestCancelWorkflowExecutionResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RequestCancelWorkflowExecution = RequestCancelWorkflowExecution-    { _rcweDomain     :: Text-    , _rcweRunId      :: Maybe Text-    , _rcweWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'requestCancelWorkflowExecution' smart constructor.+data RequestCancelWorkflowExecution = RequestCancelWorkflowExecution'+    { _rcweRunId      :: !(Maybe Text)+    , _rcweDomain     :: !Text+    , _rcweWorkflowId :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RequestCancelWorkflowExecution' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RequestCancelWorkflowExecution' with the minimum fields required to make a request. ----- * 'rcweDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'rcweRunId' @::@ 'Maybe' 'Text'+-- * 'rcweRunId' ----- * 'rcweWorkflowId' @::@ 'Text'+-- * 'rcweDomain' ---requestCancelWorkflowExecution :: Text -- ^ 'rcweDomain'-                               -> Text -- ^ 'rcweWorkflowId'-                               -> RequestCancelWorkflowExecution-requestCancelWorkflowExecution p1 p2 = RequestCancelWorkflowExecution-    { _rcweDomain     = p1-    , _rcweWorkflowId = p2-    , _rcweRunId      = Nothing+-- * 'rcweWorkflowId'+requestCancelWorkflowExecution+    :: Text -- ^ 'rcweDomain'+    -> Text -- ^ 'rcweWorkflowId'+    -> RequestCancelWorkflowExecution+requestCancelWorkflowExecution pDomain_ pWorkflowId_ =+    RequestCancelWorkflowExecution'+    { _rcweRunId = Nothing+    , _rcweDomain = pDomain_+    , _rcweWorkflowId = pWorkflowId_     } --- | The name of the domain containing the workflow execution to cancel.-rcweDomain :: Lens' RequestCancelWorkflowExecution Text-rcweDomain = lens _rcweDomain (\s a -> s { _rcweDomain = a })- -- | The runId of the workflow execution to cancel. rcweRunId :: Lens' RequestCancelWorkflowExecution (Maybe Text)-rcweRunId = lens _rcweRunId (\s a -> s { _rcweRunId = a })+rcweRunId = lens _rcweRunId (\ s a -> s{_rcweRunId = a}); +-- | The name of the domain containing the workflow execution to cancel.+rcweDomain :: Lens' RequestCancelWorkflowExecution Text+rcweDomain = lens _rcweDomain (\ s a -> s{_rcweDomain = a});+ -- | The workflowId of the workflow execution to cancel. rcweWorkflowId :: Lens' RequestCancelWorkflowExecution Text-rcweWorkflowId = lens _rcweWorkflowId (\s a -> s { _rcweWorkflowId = a })+rcweWorkflowId = lens _rcweWorkflowId (\ s a -> s{_rcweWorkflowId = a}); -data RequestCancelWorkflowExecutionResponse = RequestCancelWorkflowExecutionResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RequestCancelWorkflowExecution+         where+        type Sv RequestCancelWorkflowExecution = SWF+        type Rs RequestCancelWorkflowExecution =+             RequestCancelWorkflowExecutionResponse+        request = postJSON+        response+          = receiveNull RequestCancelWorkflowExecutionResponse' --- | 'RequestCancelWorkflowExecutionResponse' constructor.-requestCancelWorkflowExecutionResponse :: RequestCancelWorkflowExecutionResponse-requestCancelWorkflowExecutionResponse = RequestCancelWorkflowExecutionResponse+instance ToHeaders RequestCancelWorkflowExecution+         where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RequestCancelWorkflowExecution"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RequestCancelWorkflowExecution where+        toJSON RequestCancelWorkflowExecution'{..}+          = object+              ["runId" .= _rcweRunId, "domain" .= _rcweDomain,+               "workflowId" .= _rcweWorkflowId]+ instance ToPath RequestCancelWorkflowExecution where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RequestCancelWorkflowExecution where-    toQuery = const mempty--instance ToHeaders RequestCancelWorkflowExecution--instance ToJSON RequestCancelWorkflowExecution where-    toJSON RequestCancelWorkflowExecution{..} = object-        [ "domain"     .= _rcweDomain-        , "workflowId" .= _rcweWorkflowId-        , "runId"      .= _rcweRunId-        ]+        toQuery = const mempty -instance AWSRequest RequestCancelWorkflowExecution where-    type Sv RequestCancelWorkflowExecution = SWF-    type Rs RequestCancelWorkflowExecution = RequestCancelWorkflowExecutionResponse+-- | /See:/ 'requestCancelWorkflowExecutionResponse' smart constructor.+data RequestCancelWorkflowExecutionResponse =+    RequestCancelWorkflowExecutionResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RequestCancelWorkflowExecution"-    response = nullResponse RequestCancelWorkflowExecutionResponse+-- | Creates a value of 'RequestCancelWorkflowExecutionResponse' with the minimum fields required to make a request.+--+requestCancelWorkflowExecutionResponse+    :: RequestCancelWorkflowExecutionResponse+requestCancelWorkflowExecutionResponse =+    RequestCancelWorkflowExecutionResponse'
gen/Network/AWS/SWF/RespondActivityTaskCanceled.hs view
@@ -1,129 +1,151 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RespondActivityTaskCanceled--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by workers to tell the service that the 'ActivityTask' identified by the 'taskToken' was successfully canceled. Additional 'details' can be optionally provided--- using the 'details' argument.+-- Used by workers to tell the service that the ActivityTask identified by+-- the 'taskToken' was successfully canceled. Additional 'details' can be+-- optionally provided using the 'details' argument. ----- These 'details' (if provided) appear in the 'ActivityTaskCanceled' event added--- to the workflow history.+-- These 'details' (if provided) appear in the 'ActivityTaskCanceled' event+-- added to the workflow history. ----- Only use this operation if the 'canceled' flag of a 'RecordActivityTaskHeartbeat'--- request returns 'true' and if the activity can be safely undone or abandoned. A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to--- 'RespondActivityTaskCompleted', RespondActivityTaskCanceled, 'RespondActivityTaskFailed', or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>.+-- Only use this operation if the 'canceled' flag of a+-- RecordActivityTaskHeartbeat request returns 'true' and if the activity+-- can be safely undone or abandoned. ----- Access Control+-- A task is considered open from the time that it is scheduled until it is+-- closed. Therefore a task is reported as open while a worker is+-- processing it. A task is closed after it has been specified in a call to+-- RespondActivityTaskCompleted, RespondActivityTaskCanceled,+-- RespondActivityTaskFailed, or the task has+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskCanceled.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskCanceled.html AWS API Reference> for RespondActivityTaskCanceled. module Network.AWS.SWF.RespondActivityTaskCanceled     (-    -- * Request-      RespondActivityTaskCanceled-    -- ** Request constructor-    , respondActivityTaskCanceled-    -- ** Request lenses-    , ratc1Details-    , ratc1TaskToken+    -- * Creating a Request+      respondActivityTaskCanceled+    , RespondActivityTaskCanceled+    -- * Request Lenses+    , rDetails+    , rTaskToken -    -- * Response-    , RespondActivityTaskCanceledResponse-    -- ** Response constructor+    -- * Destructuring the Response     , respondActivityTaskCanceledResponse+    , RespondActivityTaskCanceledResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RespondActivityTaskCanceled = RespondActivityTaskCanceled-    { _ratc1Details   :: Maybe Text-    , _ratc1TaskToken :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'respondActivityTaskCanceled' smart constructor.+data RespondActivityTaskCanceled = RespondActivityTaskCanceled'+    { _rDetails   :: !(Maybe Text)+    , _rTaskToken :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RespondActivityTaskCanceled' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RespondActivityTaskCanceled' with the minimum fields required to make a request. ----- * 'ratc1Details' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ratc1TaskToken' @::@ 'Text'+-- * 'rDetails' ---respondActivityTaskCanceled :: Text -- ^ 'ratc1TaskToken'-                            -> RespondActivityTaskCanceled-respondActivityTaskCanceled p1 = RespondActivityTaskCanceled-    { _ratc1TaskToken = p1-    , _ratc1Details   = Nothing+-- * 'rTaskToken'+respondActivityTaskCanceled+    :: Text -- ^ 'rTaskToken'+    -> RespondActivityTaskCanceled+respondActivityTaskCanceled pTaskToken_ =+    RespondActivityTaskCanceled'+    { _rDetails = Nothing+    , _rTaskToken = pTaskToken_     }  -- | /Optional./ Information about the cancellation.-ratc1Details :: Lens' RespondActivityTaskCanceled (Maybe Text)-ratc1Details = lens _ratc1Details (\s a -> s { _ratc1Details = a })+rDetails :: Lens' RespondActivityTaskCanceled (Maybe Text)+rDetails = lens _rDetails (\ s a -> s{_rDetails = a}); --- | The 'taskToken' of the 'ActivityTask'.+-- | The 'taskToken' of the ActivityTask. ----- 'taskToken' is generated by the service and should be treated as an opaque--- value. If the task is passed to another process, its 'taskToken' must also be--- passed. This enables it to provide its progress and respond with results.-ratc1TaskToken :: Lens' RespondActivityTaskCanceled Text-ratc1TaskToken = lens _ratc1TaskToken (\s a -> s { _ratc1TaskToken = a })+-- 'taskToken' is generated by the service and should be treated as an+-- opaque value. If the task is passed to another process, its 'taskToken'+-- must also be passed. This enables it to provide its progress and respond+-- with results.+rTaskToken :: Lens' RespondActivityTaskCanceled Text+rTaskToken = lens _rTaskToken (\ s a -> s{_rTaskToken = a}); -data RespondActivityTaskCanceledResponse = RespondActivityTaskCanceledResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RespondActivityTaskCanceled where+        type Sv RespondActivityTaskCanceled = SWF+        type Rs RespondActivityTaskCanceled =+             RespondActivityTaskCanceledResponse+        request = postJSON+        response+          = receiveNull RespondActivityTaskCanceledResponse' --- | 'RespondActivityTaskCanceledResponse' constructor.-respondActivityTaskCanceledResponse :: RespondActivityTaskCanceledResponse-respondActivityTaskCanceledResponse = RespondActivityTaskCanceledResponse+instance ToHeaders RespondActivityTaskCanceled where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RespondActivityTaskCanceled"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RespondActivityTaskCanceled where+        toJSON RespondActivityTaskCanceled'{..}+          = object+              ["details" .= _rDetails, "taskToken" .= _rTaskToken]+ instance ToPath RespondActivityTaskCanceled where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RespondActivityTaskCanceled where-    toQuery = const mempty--instance ToHeaders RespondActivityTaskCanceled--instance ToJSON RespondActivityTaskCanceled where-    toJSON RespondActivityTaskCanceled{..} = object-        [ "taskToken" .= _ratc1TaskToken-        , "details"   .= _ratc1Details-        ]+        toQuery = const mempty -instance AWSRequest RespondActivityTaskCanceled where-    type Sv RespondActivityTaskCanceled = SWF-    type Rs RespondActivityTaskCanceled = RespondActivityTaskCanceledResponse+-- | /See:/ 'respondActivityTaskCanceledResponse' smart constructor.+data RespondActivityTaskCanceledResponse =+    RespondActivityTaskCanceledResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RespondActivityTaskCanceled"-    response = nullResponse RespondActivityTaskCanceledResponse+-- | Creates a value of 'RespondActivityTaskCanceledResponse' with the minimum fields required to make a request.+--+respondActivityTaskCanceledResponse+    :: RespondActivityTaskCanceledResponse+respondActivityTaskCanceledResponse = RespondActivityTaskCanceledResponse'
gen/Network/AWS/SWF/RespondActivityTaskCompleted.hs view
@@ -1,130 +1,154 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RespondActivityTaskCompleted--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by workers to tell the service that the 'ActivityTask' identified by the 'taskToken' completed successfully with a 'result' (if provided). The 'result' appears in--- the 'ActivityTaskCompleted' event in the workflow history.+-- Used by workers to tell the service that the ActivityTask identified by+-- the 'taskToken' completed successfully with a 'result' (if provided).+-- The 'result' appears in the 'ActivityTaskCompleted' event in the+-- workflow history. ----- If the requested task does not complete successfully, use 'RespondActivityTaskFailed' instead. If the worker finds that the task is canceled through the 'canceled'--- flag returned by 'RecordActivityTaskHeartbeat', it should cancel the task,--- clean up and then call 'RespondActivityTaskCanceled'. A task is considered open--- from the time that it is scheduled until it is closed. Therefore a task is--- reported as open while a worker is processing it. A task is closed after it--- has been specified in a call to RespondActivityTaskCompleted, 'RespondActivityTaskCanceled', 'RespondActivityTaskFailed', or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>.+-- If the requested task does not complete successfully, use+-- RespondActivityTaskFailed instead. If the worker finds that the task is+-- canceled through the 'canceled' flag returned by+-- RecordActivityTaskHeartbeat, it should cancel the task, clean up and+-- then call RespondActivityTaskCanceled. ----- Access Control+-- A task is considered open from the time that it is scheduled until it is+-- closed. Therefore a task is reported as open while a worker is+-- processing it. A task is closed after it has been specified in a call to+-- RespondActivityTaskCompleted, RespondActivityTaskCanceled,+-- RespondActivityTaskFailed, or the task has+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>. ----- You can use IAM policies to control this action's access to Amazon SWF+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskCompleted.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskCompleted.html AWS API Reference> for RespondActivityTaskCompleted. module Network.AWS.SWF.RespondActivityTaskCompleted     (-    -- * Request-      RespondActivityTaskCompleted-    -- ** Request constructor-    , respondActivityTaskCompleted-    -- ** Request lenses+    -- * Creating a Request+      respondActivityTaskCompleted+    , RespondActivityTaskCompleted+    -- * Request Lenses     , ratcResult     , ratcTaskToken -    -- * Response-    , RespondActivityTaskCompletedResponse-    -- ** Response constructor+    -- * Destructuring the Response     , respondActivityTaskCompletedResponse+    , RespondActivityTaskCompletedResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RespondActivityTaskCompleted = RespondActivityTaskCompleted-    { _ratcResult    :: Maybe Text-    , _ratcTaskToken :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'respondActivityTaskCompleted' smart constructor.+data RespondActivityTaskCompleted = RespondActivityTaskCompleted'+    { _ratcResult    :: !(Maybe Text)+    , _ratcTaskToken :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RespondActivityTaskCompleted' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RespondActivityTaskCompleted' with the minimum fields required to make a request. ----- * 'ratcResult' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ratcTaskToken' @::@ 'Text'+-- * 'ratcResult' ---respondActivityTaskCompleted :: Text -- ^ 'ratcTaskToken'-                             -> RespondActivityTaskCompleted-respondActivityTaskCompleted p1 = RespondActivityTaskCompleted-    { _ratcTaskToken = p1-    , _ratcResult    = Nothing+-- * 'ratcTaskToken'+respondActivityTaskCompleted+    :: Text -- ^ 'ratcTaskToken'+    -> RespondActivityTaskCompleted+respondActivityTaskCompleted pTaskToken_ =+    RespondActivityTaskCompleted'+    { _ratcResult = Nothing+    , _ratcTaskToken = pTaskToken_     }  -- | The result of the activity task. It is a free form string that is -- implementation specific. ratcResult :: Lens' RespondActivityTaskCompleted (Maybe Text)-ratcResult = lens _ratcResult (\s a -> s { _ratcResult = a })+ratcResult = lens _ratcResult (\ s a -> s{_ratcResult = a}); --- | The 'taskToken' of the 'ActivityTask'.+-- | The 'taskToken' of the ActivityTask. ----- 'taskToken' is generated by the service and should be treated as an opaque--- value. If the task is passed to another process, its 'taskToken' must also be--- passed. This enables it to provide its progress and respond with results.+-- 'taskToken' is generated by the service and should be treated as an+-- opaque value. If the task is passed to another process, its 'taskToken'+-- must also be passed. This enables it to provide its progress and respond+-- with results. ratcTaskToken :: Lens' RespondActivityTaskCompleted Text-ratcTaskToken = lens _ratcTaskToken (\s a -> s { _ratcTaskToken = a })+ratcTaskToken = lens _ratcTaskToken (\ s a -> s{_ratcTaskToken = a}); -data RespondActivityTaskCompletedResponse = RespondActivityTaskCompletedResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RespondActivityTaskCompleted+         where+        type Sv RespondActivityTaskCompleted = SWF+        type Rs RespondActivityTaskCompleted =+             RespondActivityTaskCompletedResponse+        request = postJSON+        response+          = receiveNull RespondActivityTaskCompletedResponse' --- | 'RespondActivityTaskCompletedResponse' constructor.-respondActivityTaskCompletedResponse :: RespondActivityTaskCompletedResponse-respondActivityTaskCompletedResponse = RespondActivityTaskCompletedResponse+instance ToHeaders RespondActivityTaskCompleted where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RespondActivityTaskCompleted"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RespondActivityTaskCompleted where+        toJSON RespondActivityTaskCompleted'{..}+          = object+              ["result" .= _ratcResult,+               "taskToken" .= _ratcTaskToken]+ instance ToPath RespondActivityTaskCompleted where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RespondActivityTaskCompleted where-    toQuery = const mempty--instance ToHeaders RespondActivityTaskCompleted--instance ToJSON RespondActivityTaskCompleted where-    toJSON RespondActivityTaskCompleted{..} = object-        [ "taskToken" .= _ratcTaskToken-        , "result"    .= _ratcResult-        ]+        toQuery = const mempty -instance AWSRequest RespondActivityTaskCompleted where-    type Sv RespondActivityTaskCompleted = SWF-    type Rs RespondActivityTaskCompleted = RespondActivityTaskCompletedResponse+-- | /See:/ 'respondActivityTaskCompletedResponse' smart constructor.+data RespondActivityTaskCompletedResponse =+    RespondActivityTaskCompletedResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RespondActivityTaskCompleted"-    response = nullResponse RespondActivityTaskCompletedResponse+-- | Creates a value of 'RespondActivityTaskCompletedResponse' with the minimum fields required to make a request.+--+respondActivityTaskCompletedResponse+    :: RespondActivityTaskCompletedResponse+respondActivityTaskCompletedResponse = RespondActivityTaskCompletedResponse'
gen/Network/AWS/SWF/RespondActivityTaskFailed.hs view
@@ -1,135 +1,155 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RespondActivityTaskFailed--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by workers to tell the service that the 'ActivityTask' identified by the 'taskToken' has failed with 'reason' (if specified). The 'reason' and 'details' appear in the 'ActivityTaskFailed' event added to the workflow history.+-- Used by workers to tell the service that the ActivityTask identified by+-- the 'taskToken' has failed with 'reason' (if specified). The 'reason'+-- and 'details' appear in the 'ActivityTaskFailed' event added to the+-- workflow history. -- -- A task is considered open from the time that it is scheduled until it is--- closed. Therefore a task is reported as open while a worker is processing it.--- A task is closed after it has been specified in a call to 'RespondActivityTaskCompleted', 'RespondActivityTaskCanceled', RespondActivityTaskFailed, or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>.+-- closed. Therefore a task is reported as open while a worker is+-- processing it. A task is closed after it has been specified in a call to+-- RespondActivityTaskCompleted, RespondActivityTaskCanceled,+-- RespondActivityTaskFailed, or the task has+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskFailed.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondActivityTaskFailed.html AWS API Reference> for RespondActivityTaskFailed. module Network.AWS.SWF.RespondActivityTaskFailed     (-    -- * Request-      RespondActivityTaskFailed-    -- ** Request constructor-    , respondActivityTaskFailed-    -- ** Request lenses-    , ratfDetails+    -- * Creating a Request+      respondActivityTaskFailed+    , RespondActivityTaskFailed+    -- * Request Lenses     , ratfReason+    , ratfDetails     , ratfTaskToken -    -- * Response-    , RespondActivityTaskFailedResponse-    -- ** Response constructor+    -- * Destructuring the Response     , respondActivityTaskFailedResponse+    , RespondActivityTaskFailedResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RespondActivityTaskFailed = RespondActivityTaskFailed-    { _ratfDetails   :: Maybe Text-    , _ratfReason    :: Maybe Text-    , _ratfTaskToken :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'respondActivityTaskFailed' smart constructor.+data RespondActivityTaskFailed = RespondActivityTaskFailed'+    { _ratfReason    :: !(Maybe Text)+    , _ratfDetails   :: !(Maybe Text)+    , _ratfTaskToken :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RespondActivityTaskFailed' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RespondActivityTaskFailed' with the minimum fields required to make a request. ----- * 'ratfDetails' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ratfReason' @::@ 'Maybe' 'Text'+-- * 'ratfReason' ----- * 'ratfTaskToken' @::@ 'Text'+-- * 'ratfDetails' ---respondActivityTaskFailed :: Text -- ^ 'ratfTaskToken'-                          -> RespondActivityTaskFailed-respondActivityTaskFailed p1 = RespondActivityTaskFailed-    { _ratfTaskToken = p1-    , _ratfReason    = Nothing-    , _ratfDetails   = Nothing+-- * 'ratfTaskToken'+respondActivityTaskFailed+    :: Text -- ^ 'ratfTaskToken'+    -> RespondActivityTaskFailed+respondActivityTaskFailed pTaskToken_ =+    RespondActivityTaskFailed'+    { _ratfReason = Nothing+    , _ratfDetails = Nothing+    , _ratfTaskToken = pTaskToken_     } --- | /Optional./ Detailed information about the failure.-ratfDetails :: Lens' RespondActivityTaskFailed (Maybe Text)-ratfDetails = lens _ratfDetails (\s a -> s { _ratfDetails = a })- -- | Description of the error that may assist in diagnostics. ratfReason :: Lens' RespondActivityTaskFailed (Maybe Text)-ratfReason = lens _ratfReason (\s a -> s { _ratfReason = a })+ratfReason = lens _ratfReason (\ s a -> s{_ratfReason = a}); --- | The 'taskToken' of the 'ActivityTask'.+-- | /Optional./ Detailed information about the failure.+ratfDetails :: Lens' RespondActivityTaskFailed (Maybe Text)+ratfDetails = lens _ratfDetails (\ s a -> s{_ratfDetails = a});++-- | The 'taskToken' of the ActivityTask. ----- 'taskToken' is generated by the service and should be treated as an opaque--- value. If the task is passed to another process, its 'taskToken' must also be--- passed. This enables it to provide its progress and respond with results.+-- 'taskToken' is generated by the service and should be treated as an+-- opaque value. If the task is passed to another process, its 'taskToken'+-- must also be passed. This enables it to provide its progress and respond+-- with results. ratfTaskToken :: Lens' RespondActivityTaskFailed Text-ratfTaskToken = lens _ratfTaskToken (\s a -> s { _ratfTaskToken = a })+ratfTaskToken = lens _ratfTaskToken (\ s a -> s{_ratfTaskToken = a}); -data RespondActivityTaskFailedResponse = RespondActivityTaskFailedResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RespondActivityTaskFailed where+        type Sv RespondActivityTaskFailed = SWF+        type Rs RespondActivityTaskFailed =+             RespondActivityTaskFailedResponse+        request = postJSON+        response+          = receiveNull RespondActivityTaskFailedResponse' --- | 'RespondActivityTaskFailedResponse' constructor.-respondActivityTaskFailedResponse :: RespondActivityTaskFailedResponse-respondActivityTaskFailedResponse = RespondActivityTaskFailedResponse+instance ToHeaders RespondActivityTaskFailed where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RespondActivityTaskFailed" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RespondActivityTaskFailed where+        toJSON RespondActivityTaskFailed'{..}+          = object+              ["reason" .= _ratfReason, "details" .= _ratfDetails,+               "taskToken" .= _ratfTaskToken]+ instance ToPath RespondActivityTaskFailed where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RespondActivityTaskFailed where-    toQuery = const mempty--instance ToHeaders RespondActivityTaskFailed--instance ToJSON RespondActivityTaskFailed where-    toJSON RespondActivityTaskFailed{..} = object-        [ "taskToken" .= _ratfTaskToken-        , "reason"    .= _ratfReason-        , "details"   .= _ratfDetails-        ]+        toQuery = const mempty -instance AWSRequest RespondActivityTaskFailed where-    type Sv RespondActivityTaskFailed = SWF-    type Rs RespondActivityTaskFailed = RespondActivityTaskFailedResponse+-- | /See:/ 'respondActivityTaskFailedResponse' smart constructor.+data RespondActivityTaskFailedResponse =+    RespondActivityTaskFailedResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RespondActivityTaskFailed"-    response = nullResponse RespondActivityTaskFailedResponse+-- | Creates a value of 'RespondActivityTaskFailedResponse' with the minimum fields required to make a request.+--+respondActivityTaskFailedResponse+    :: RespondActivityTaskFailedResponse+respondActivityTaskFailedResponse = RespondActivityTaskFailedResponse'
gen/Network/AWS/SWF/RespondDecisionTaskCompleted.hs view
@@ -1,132 +1,148 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.RespondDecisionTaskCompleted--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Used by deciders to tell the service that the 'DecisionTask' identified by the 'taskToken' has successfully completed. The 'decisions' argument specifies the list of--- decisions made while processing the task.+-- Used by deciders to tell the service that the DecisionTask identified by+-- the 'taskToken' has successfully completed. The 'decisions' argument+-- specifies the list of decisions made while processing the task. ----- A 'DecisionTaskCompleted' event is added to the workflow history. The 'executionContext' specified is attached to the event in the workflow execution history.+-- A 'DecisionTaskCompleted' event is added to the workflow history. The+-- 'executionContext' specified is attached to the event in the workflow+-- execution history. ----- Access Control+-- __Access Control__ ----- If an IAM policy grants permission to use 'RespondDecisionTaskCompleted', it--- can express permissions for the list of decisions in the 'decisions' parameter.--- Each of the decisions has one or more parameters, much like a regular API--- call. To allow for policies to be as readable as possible, you can express--- permissions on decisions as if they were actual API calls, including applying--- conditions to some parameters. For more information, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to ManageAccess to Amazon SWF Workflows>.+-- If an IAM policy grants permission to use+-- 'RespondDecisionTaskCompleted', it can express permissions for the list+-- of decisions in the 'decisions' parameter. Each of the decisions has one+-- or more parameters, much like a regular API call. To allow for policies+-- to be as readable as possible, you can express permissions on decisions+-- as if they were actual API calls, including applying conditions to some+-- parameters. For more information, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondDecisionTaskCompleted.html>+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_RespondDecisionTaskCompleted.html AWS API Reference> for RespondDecisionTaskCompleted. module Network.AWS.SWF.RespondDecisionTaskCompleted     (-    -- * Request-      RespondDecisionTaskCompleted-    -- ** Request constructor-    , respondDecisionTaskCompleted-    -- ** Request lenses+    -- * Creating a Request+      respondDecisionTaskCompleted+    , RespondDecisionTaskCompleted+    -- * Request Lenses     , rdtcDecisions     , rdtcExecutionContext     , rdtcTaskToken -    -- * Response-    , RespondDecisionTaskCompletedResponse-    -- ** Response constructor+    -- * Destructuring the Response     , respondDecisionTaskCompletedResponse+    , RespondDecisionTaskCompletedResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data RespondDecisionTaskCompleted = RespondDecisionTaskCompleted-    { _rdtcDecisions        :: List "decisions" Decision-    , _rdtcExecutionContext :: Maybe Text-    , _rdtcTaskToken        :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'respondDecisionTaskCompleted' smart constructor.+data RespondDecisionTaskCompleted = RespondDecisionTaskCompleted'+    { _rdtcDecisions        :: !(Maybe [Decision])+    , _rdtcExecutionContext :: !(Maybe Text)+    , _rdtcTaskToken        :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'RespondDecisionTaskCompleted' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'RespondDecisionTaskCompleted' with the minimum fields required to make a request. ----- * 'rdtcDecisions' @::@ ['Decision']+-- Use one of the following lenses to modify other fields as desired: ----- * 'rdtcExecutionContext' @::@ 'Maybe' 'Text'+-- * 'rdtcDecisions' ----- * 'rdtcTaskToken' @::@ 'Text'+-- * 'rdtcExecutionContext' ---respondDecisionTaskCompleted :: Text -- ^ 'rdtcTaskToken'-                             -> RespondDecisionTaskCompleted-respondDecisionTaskCompleted p1 = RespondDecisionTaskCompleted-    { _rdtcTaskToken        = p1-    , _rdtcDecisions        = mempty+-- * 'rdtcTaskToken'+respondDecisionTaskCompleted+    :: Text -- ^ 'rdtcTaskToken'+    -> RespondDecisionTaskCompleted+respondDecisionTaskCompleted pTaskToken_ =+    RespondDecisionTaskCompleted'+    { _rdtcDecisions = Nothing     , _rdtcExecutionContext = Nothing+    , _rdtcTaskToken = pTaskToken_     } --- | The list of decisions (possibly empty) made by the decider while processing--- this decision task. See the docs for the 'Decision' structure for details.+-- | The list of decisions (possibly empty) made by the decider while+-- processing this decision task. See the docs for the decision structure+-- for details. rdtcDecisions :: Lens' RespondDecisionTaskCompleted [Decision]-rdtcDecisions = lens _rdtcDecisions (\s a -> s { _rdtcDecisions = a }) . _List+rdtcDecisions = lens _rdtcDecisions (\ s a -> s{_rdtcDecisions = a}) . _Default . _Coerce;  -- | User defined context to add to workflow execution. rdtcExecutionContext :: Lens' RespondDecisionTaskCompleted (Maybe Text)-rdtcExecutionContext =-    lens _rdtcExecutionContext (\s a -> s { _rdtcExecutionContext = a })+rdtcExecutionContext = lens _rdtcExecutionContext (\ s a -> s{_rdtcExecutionContext = a}); --- | The 'taskToken' from the 'DecisionTask'.+-- | The 'taskToken' from the DecisionTask. ----- 'taskToken' is generated by the service and should be treated as an opaque--- value. If the task is passed to another process, its 'taskToken' must also be--- passed. This enables it to provide its progress and respond with results.+-- 'taskToken' is generated by the service and should be treated as an+-- opaque value. If the task is passed to another process, its 'taskToken'+-- must also be passed. This enables it to provide its progress and respond+-- with results. rdtcTaskToken :: Lens' RespondDecisionTaskCompleted Text-rdtcTaskToken = lens _rdtcTaskToken (\s a -> s { _rdtcTaskToken = a })+rdtcTaskToken = lens _rdtcTaskToken (\ s a -> s{_rdtcTaskToken = a}); -data RespondDecisionTaskCompletedResponse = RespondDecisionTaskCompletedResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest RespondDecisionTaskCompleted+         where+        type Sv RespondDecisionTaskCompleted = SWF+        type Rs RespondDecisionTaskCompleted =+             RespondDecisionTaskCompletedResponse+        request = postJSON+        response+          = receiveNull RespondDecisionTaskCompletedResponse' --- | 'RespondDecisionTaskCompletedResponse' constructor.-respondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse-respondDecisionTaskCompletedResponse = RespondDecisionTaskCompletedResponse+instance ToHeaders RespondDecisionTaskCompleted where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.RespondDecisionTaskCompleted"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON RespondDecisionTaskCompleted where+        toJSON RespondDecisionTaskCompleted'{..}+          = object+              ["decisions" .= _rdtcDecisions,+               "executionContext" .= _rdtcExecutionContext,+               "taskToken" .= _rdtcTaskToken]+ instance ToPath RespondDecisionTaskCompleted where-    toPath = const "/"+        toPath = const "/"  instance ToQuery RespondDecisionTaskCompleted where-    toQuery = const mempty--instance ToHeaders RespondDecisionTaskCompleted--instance ToJSON RespondDecisionTaskCompleted where-    toJSON RespondDecisionTaskCompleted{..} = object-        [ "taskToken"        .= _rdtcTaskToken-        , "decisions"        .= _rdtcDecisions-        , "executionContext" .= _rdtcExecutionContext-        ]+        toQuery = const mempty -instance AWSRequest RespondDecisionTaskCompleted where-    type Sv RespondDecisionTaskCompleted = SWF-    type Rs RespondDecisionTaskCompleted = RespondDecisionTaskCompletedResponse+-- | /See:/ 'respondDecisionTaskCompletedResponse' smart constructor.+data RespondDecisionTaskCompletedResponse =+    RespondDecisionTaskCompletedResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "RespondDecisionTaskCompleted"-    response = nullResponse RespondDecisionTaskCompletedResponse+-- | Creates a value of 'RespondDecisionTaskCompletedResponse' with the minimum fields required to make a request.+--+respondDecisionTaskCompletedResponse+    :: RespondDecisionTaskCompletedResponse+respondDecisionTaskCompletedResponse = RespondDecisionTaskCompletedResponse'
gen/Network/AWS/SWF/SignalWorkflowExecution.hs view
@@ -1,156 +1,175 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.SignalWorkflowExecution--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Records a 'WorkflowExecutionSignaled' event in the workflow execution history--- and creates a decision task for the workflow execution identified by the--- given domain, workflowId and runId. The event is recorded with the specified--- user defined signalName and input (if provided).+-- Records a 'WorkflowExecutionSignaled' event in the workflow execution+-- history and creates a decision task for the workflow execution+-- identified by the given domain, workflowId and runId. The event is+-- recorded with the specified user defined signalName and input (if+-- provided). ----- If a runId is not specified, then the 'WorkflowExecutionSignaled' event is--- recorded in the history of the current open workflow with the matching--- workflowId in the domain.  If the specified workflow execution is not open,--- this method fails with 'UnknownResource'. Access Control+-- If a runId is not specified, then the 'WorkflowExecutionSignaled' event+-- is recorded in the history of the current open workflow with the+-- matching workflowId in the domain. ----- You can use IAM policies to control this action's access to Amazon SWF+-- If the specified workflow execution is not open, this method fails with+-- 'UnknownResource'.+--+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_SignalWorkflowExecution.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_SignalWorkflowExecution.html AWS API Reference> for SignalWorkflowExecution. module Network.AWS.SWF.SignalWorkflowExecution     (-    -- * Request-      SignalWorkflowExecution-    -- ** Request constructor-    , signalWorkflowExecution-    -- ** Request lenses-    , sweDomain+    -- * Creating a Request+      signalWorkflowExecution+    , SignalWorkflowExecution+    -- * Request Lenses     , sweInput     , sweRunId-    , sweSignalName+    , sweDomain     , sweWorkflowId+    , sweSignalName -    -- * Response-    , SignalWorkflowExecutionResponse-    -- ** Response constructor+    -- * Destructuring the Response     , signalWorkflowExecutionResponse+    , SignalWorkflowExecutionResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data SignalWorkflowExecution = SignalWorkflowExecution-    { _sweDomain     :: Text-    , _sweInput      :: Maybe Text-    , _sweRunId      :: Maybe Text-    , _sweSignalName :: Text-    , _sweWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show)+-- | /See:/ 'signalWorkflowExecution' smart constructor.+data SignalWorkflowExecution = SignalWorkflowExecution'+    { _sweInput      :: !(Maybe Text)+    , _sweRunId      :: !(Maybe Text)+    , _sweDomain     :: !Text+    , _sweWorkflowId :: !Text+    , _sweSignalName :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'SignalWorkflowExecution' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'SignalWorkflowExecution' with the minimum fields required to make a request. ----- * 'sweDomain' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'sweInput' @::@ 'Maybe' 'Text'+-- * 'sweInput' ----- * 'sweRunId' @::@ 'Maybe' 'Text'+-- * 'sweRunId' ----- * 'sweSignalName' @::@ 'Text'+-- * 'sweDomain' ----- * 'sweWorkflowId' @::@ 'Text'+-- * 'sweWorkflowId' ---signalWorkflowExecution :: Text -- ^ 'sweDomain'-                        -> Text -- ^ 'sweWorkflowId'-                        -> Text -- ^ 'sweSignalName'-                        -> SignalWorkflowExecution-signalWorkflowExecution p1 p2 p3 = SignalWorkflowExecution-    { _sweDomain     = p1-    , _sweWorkflowId = p2-    , _sweSignalName = p3-    , _sweRunId      = Nothing-    , _sweInput      = Nothing+-- * 'sweSignalName'+signalWorkflowExecution+    :: Text -- ^ 'sweDomain'+    -> Text -- ^ 'sweWorkflowId'+    -> Text -- ^ 'sweSignalName'+    -> SignalWorkflowExecution+signalWorkflowExecution pDomain_ pWorkflowId_ pSignalName_ =+    SignalWorkflowExecution'+    { _sweInput = Nothing+    , _sweRunId = Nothing+    , _sweDomain = pDomain_+    , _sweWorkflowId = pWorkflowId_+    , _sweSignalName = pSignalName_     } --- | The name of the domain containing the workflow execution to signal.-sweDomain :: Lens' SignalWorkflowExecution Text-sweDomain = lens _sweDomain (\s a -> s { _sweDomain = a })---- | Data to attach to the 'WorkflowExecutionSignaled' event in the target workflow--- execution's history.+-- | Data to attach to the 'WorkflowExecutionSignaled' event in the target+-- workflow execution\'s history. sweInput :: Lens' SignalWorkflowExecution (Maybe Text)-sweInput = lens _sweInput (\s a -> s { _sweInput = a })+sweInput = lens _sweInput (\ s a -> s{_sweInput = a});  -- | The runId of the workflow execution to signal. sweRunId :: Lens' SignalWorkflowExecution (Maybe Text)-sweRunId = lens _sweRunId (\s a -> s { _sweRunId = a })+sweRunId = lens _sweRunId (\ s a -> s{_sweRunId = a}); --- | The name of the signal. This name must be meaningful to the target workflow.-sweSignalName :: Lens' SignalWorkflowExecution Text-sweSignalName = lens _sweSignalName (\s a -> s { _sweSignalName = a })+-- | The name of the domain containing the workflow execution to signal.+sweDomain :: Lens' SignalWorkflowExecution Text+sweDomain = lens _sweDomain (\ s a -> s{_sweDomain = a});  -- | The workflowId of the workflow execution to signal. sweWorkflowId :: Lens' SignalWorkflowExecution Text-sweWorkflowId = lens _sweWorkflowId (\s a -> s { _sweWorkflowId = a })+sweWorkflowId = lens _sweWorkflowId (\ s a -> s{_sweWorkflowId = a}); -data SignalWorkflowExecutionResponse = SignalWorkflowExecutionResponse-    deriving (Eq, Ord, Read, Show, Generic)+-- | The name of the signal. This name must be meaningful to the target+-- workflow.+sweSignalName :: Lens' SignalWorkflowExecution Text+sweSignalName = lens _sweSignalName (\ s a -> s{_sweSignalName = a}); --- | 'SignalWorkflowExecutionResponse' constructor.-signalWorkflowExecutionResponse :: SignalWorkflowExecutionResponse-signalWorkflowExecutionResponse = SignalWorkflowExecutionResponse+instance AWSRequest SignalWorkflowExecution where+        type Sv SignalWorkflowExecution = SWF+        type Rs SignalWorkflowExecution =+             SignalWorkflowExecutionResponse+        request = postJSON+        response+          = receiveNull SignalWorkflowExecutionResponse' -instance ToPath SignalWorkflowExecution where-    toPath = const "/"+instance ToHeaders SignalWorkflowExecution where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.SignalWorkflowExecution" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) -instance ToQuery SignalWorkflowExecution where-    toQuery = const mempty+instance ToJSON SignalWorkflowExecution where+        toJSON SignalWorkflowExecution'{..}+          = object+              ["input" .= _sweInput, "runId" .= _sweRunId,+               "domain" .= _sweDomain,+               "workflowId" .= _sweWorkflowId,+               "signalName" .= _sweSignalName] -instance ToHeaders SignalWorkflowExecution+instance ToPath SignalWorkflowExecution where+        toPath = const "/" -instance ToJSON SignalWorkflowExecution where-    toJSON SignalWorkflowExecution{..} = object-        [ "domain"     .= _sweDomain-        , "workflowId" .= _sweWorkflowId-        , "runId"      .= _sweRunId-        , "signalName" .= _sweSignalName-        , "input"      .= _sweInput-        ]+instance ToQuery SignalWorkflowExecution where+        toQuery = const mempty -instance AWSRequest SignalWorkflowExecution where-    type Sv SignalWorkflowExecution = SWF-    type Rs SignalWorkflowExecution = SignalWorkflowExecutionResponse+-- | /See:/ 'signalWorkflowExecutionResponse' smart constructor.+data SignalWorkflowExecutionResponse =+    SignalWorkflowExecutionResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "SignalWorkflowExecution"-    response = nullResponse SignalWorkflowExecutionResponse+-- | Creates a value of 'SignalWorkflowExecutionResponse' with the minimum fields required to make a request.+--+signalWorkflowExecutionResponse+    :: SignalWorkflowExecutionResponse+signalWorkflowExecutionResponse = SignalWorkflowExecutionResponse'
gen/Network/AWS/SWF/StartWorkflowExecution.hs view
@@ -1,299 +1,350 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.StartWorkflowExecution--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Starts an execution of the workflow type in the specified domain using the--- provided 'workflowId' and input data.+-- Starts an execution of the workflow type in the specified domain using+-- the provided 'workflowId' and input data. -- -- This action returns the newly started workflow execution. ----- Access Control+-- __Access Control__ ----- You can use IAM policies to control this action's access to Amazon SWF+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. Constrain the following parameters by using a 'Condition' element--- with the appropriate keys.   'tagList.member.0': The key is 'swf:tagList.member.0'--- .  'tagList.member.1': The key is 'swf:tagList.member.1'.  'tagList.member.2': The--- key is 'swf:tagList.member.2'.  'tagList.member.3': The key is 'swf:tagList.member.3'.  'tagList.member.4': The key is 'swf:tagList.member.4'. 'taskList': String--- constraint. The key is 'swf:taskList.name'. 'workflowType.name': String--- constraint. The key is 'swf:workflowType.name'. 'workflowType.version': String--- constraint. The key is 'swf:workflowType.version'.    If the caller does not--- have sufficient permissions to invoke the action, or the parameter values--- fall outside the specified constraints, the action fails. The associated--- event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For--- details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to AmazonSWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagList.member.0': The key is 'swf:tagList.member.0'.+--     -   'tagList.member.1': The key is 'swf:tagList.member.1'.+--     -   'tagList.member.2': The key is 'swf:tagList.member.2'.+--     -   'tagList.member.3': The key is 'swf:tagList.member.3'.+--     -   'tagList.member.4': The key is 'swf:tagList.member.4'.+--     -   'taskList': String constraint. The key is 'swf:taskList.name'.+--     -   'workflowType.name': String constraint. The key is+--         'swf:workflowType.name'.+--     -   'workflowType.version': String constraint. The key is+--         'swf:workflowType.version'. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_StartWorkflowExecution.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_StartWorkflowExecution.html AWS API Reference> for StartWorkflowExecution. module Network.AWS.SWF.StartWorkflowExecution     (-    -- * Request-      StartWorkflowExecution-    -- ** Request constructor-    , startWorkflowExecution-    -- ** Request lenses-    , swe1ChildPolicy-    , swe1Domain-    , swe1ExecutionStartToCloseTimeout-    , swe1Input-    , swe1TagList-    , swe1TaskList-    , swe1TaskPriority-    , swe1TaskStartToCloseTimeout-    , swe1WorkflowId-    , swe1WorkflowType+    -- * Creating a Request+      startWorkflowExecution+    , StartWorkflowExecution+    -- * Request Lenses+    , sTagList+    , sTaskStartToCloseTimeout+    , sLambdaRole+    , sInput+    , sExecutionStartToCloseTimeout+    , sTaskList+    , sTaskPriority+    , sChildPolicy+    , sDomain+    , sWorkflowId+    , sWorkflowType -    -- * Response-    , StartWorkflowExecutionResponse-    -- ** Response constructor+    -- * Destructuring the Response     , startWorkflowExecutionResponse-    -- ** Response lenses-    , swerRunId+    , StartWorkflowExecutionResponse+    -- * Response Lenses+    , swersRunId+    , swersStatus     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data StartWorkflowExecution = StartWorkflowExecution-    { _swe1ChildPolicy                  :: Maybe ChildPolicy-    , _swe1Domain                       :: Text-    , _swe1ExecutionStartToCloseTimeout :: Maybe Text-    , _swe1Input                        :: Maybe Text-    , _swe1TagList                      :: List "tagList" Text-    , _swe1TaskList                     :: Maybe TaskList-    , _swe1TaskPriority                 :: Maybe Text-    , _swe1TaskStartToCloseTimeout      :: Maybe Text-    , _swe1WorkflowId                   :: Text-    , _swe1WorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)+-- | /See:/ 'startWorkflowExecution' smart constructor.+data StartWorkflowExecution = StartWorkflowExecution'+    { _sTagList                      :: !(Maybe [Text])+    , _sTaskStartToCloseTimeout      :: !(Maybe Text)+    , _sLambdaRole                   :: !(Maybe Text)+    , _sInput                        :: !(Maybe Text)+    , _sExecutionStartToCloseTimeout :: !(Maybe Text)+    , _sTaskList                     :: !(Maybe TaskList)+    , _sTaskPriority                 :: !(Maybe Text)+    , _sChildPolicy                  :: !(Maybe ChildPolicy)+    , _sDomain                       :: !Text+    , _sWorkflowId                   :: !Text+    , _sWorkflowType                 :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'StartWorkflowExecution' constructor.+-- | Creates a value of 'StartWorkflowExecution' with the minimum fields required to make a request. ----- The fields accessible through corresponding lenses are:+-- Use one of the following lenses to modify other fields as desired: ----- * 'swe1ChildPolicy' @::@ 'Maybe' 'ChildPolicy'+-- * 'sTagList' ----- * 'swe1Domain' @::@ 'Text'+-- * 'sTaskStartToCloseTimeout' ----- * 'swe1ExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'sLambdaRole' ----- * 'swe1Input' @::@ 'Maybe' 'Text'+-- * 'sInput' ----- * 'swe1TagList' @::@ ['Text']+-- * 'sExecutionStartToCloseTimeout' ----- * 'swe1TaskList' @::@ 'Maybe' 'TaskList'+-- * 'sTaskList' ----- * 'swe1TaskPriority' @::@ 'Maybe' 'Text'+-- * 'sTaskPriority' ----- * 'swe1TaskStartToCloseTimeout' @::@ 'Maybe' 'Text'+-- * 'sChildPolicy' ----- * 'swe1WorkflowId' @::@ 'Text'+-- * 'sDomain' ----- * 'swe1WorkflowType' @::@ 'WorkflowType'+-- * 'sWorkflowId' ---startWorkflowExecution :: Text -- ^ 'swe1Domain'-                       -> Text -- ^ 'swe1WorkflowId'-                       -> WorkflowType -- ^ 'swe1WorkflowType'-                       -> StartWorkflowExecution-startWorkflowExecution p1 p2 p3 = StartWorkflowExecution-    { _swe1Domain                       = p1-    , _swe1WorkflowId                   = p2-    , _swe1WorkflowType                 = p3-    , _swe1TaskList                     = Nothing-    , _swe1TaskPriority                 = Nothing-    , _swe1Input                        = Nothing-    , _swe1ExecutionStartToCloseTimeout = Nothing-    , _swe1TagList                      = mempty-    , _swe1TaskStartToCloseTimeout      = Nothing-    , _swe1ChildPolicy                  = Nothing+-- * 'sWorkflowType'+startWorkflowExecution+    :: Text -- ^ 'sDomain'+    -> Text -- ^ 'sWorkflowId'+    -> WorkflowType -- ^ 'sWorkflowType'+    -> StartWorkflowExecution+startWorkflowExecution pDomain_ pWorkflowId_ pWorkflowType_ =+    StartWorkflowExecution'+    { _sTagList = Nothing+    , _sTaskStartToCloseTimeout = Nothing+    , _sLambdaRole = Nothing+    , _sInput = Nothing+    , _sExecutionStartToCloseTimeout = Nothing+    , _sTaskList = Nothing+    , _sTaskPriority = Nothing+    , _sChildPolicy = Nothing+    , _sDomain = pDomain_+    , _sWorkflowId = pWorkflowId_+    , _sWorkflowType = pWorkflowType_     } --- | If set, specifies the policy to use for the child workflow executions of this--- workflow execution if it is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the--- default child policy specified when registering the workflow type using 'RegisterWorkflowType'.+-- | The list of tags to associate with the workflow execution. You can+-- specify a maximum of 5 tags. You can list workflow executions with a+-- specific tag by calling ListOpenWorkflowExecutions or+-- ListClosedWorkflowExecutions and specifying a TagFilter.+sTagList :: Lens' StartWorkflowExecution [Text]+sTagList = lens _sTagList (\ s a -> s{_sTagList = a}) . _Default . _Coerce;++-- | Specifies the maximum duration of decision tasks for this workflow+-- execution. This parameter overrides the 'defaultTaskStartToCloseTimout'+-- specified when registering the workflow type using RegisterWorkflowType. ----- The supported child policies are:+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration. ----- TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.  A child policy for--- this workflow execution must be specified either as a default for the--- workflow type or through this parameter. If neither this parameter is set nor--- a default child policy was specified at registration time then a fault will--- be returned.-swe1ChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy)-swe1ChildPolicy = lens _swe1ChildPolicy (\s a -> s { _swe1ChildPolicy = a })+-- A task start-to-close timeout for this workflow execution must be+-- specified either as a default for the workflow type or through this+-- parameter. If neither this parameter is set nor a default task+-- start-to-close timeout was specified at registration time then a fault+-- will be returned.+sTaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)+sTaskStartToCloseTimeout = lens _sTaskStartToCloseTimeout (\ s a -> s{_sTaskStartToCloseTimeout = a}); --- | The name of the domain in which the workflow execution is created.-swe1Domain :: Lens' StartWorkflowExecution Text-swe1Domain = lens _swe1Domain (\s a -> s { _swe1Domain = a })+-- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda+-- functions.+--+-- In order for this workflow execution to invoke AWS Lambda functions, an+-- appropriate IAM role must be specified either as a default for the+-- workflow type or through this field.+sLambdaRole :: Lens' StartWorkflowExecution (Maybe Text)+sLambdaRole = lens _sLambdaRole (\ s a -> s{_sLambdaRole = a}); +-- | The input for the workflow execution. This is a free form string which+-- should be meaningful to the workflow you are starting. This 'input' is+-- made available to the new workflow execution in the+-- 'WorkflowExecutionStarted' history event.+sInput :: Lens' StartWorkflowExecution (Maybe Text)+sInput = lens _sInput (\ s a -> s{_sInput = a});+ -- | The total duration for this workflow execution. This overrides the--- defaultExecutionStartToCloseTimeout specified when registering the workflow--- type.+-- defaultExecutionStartToCloseTimeout specified when registering the+-- workflow type. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- Exceeding this limit will cause the workflow execution to time out. Unlike--- some of the other timeout parameters in Amazon SWF, you cannot specify a--- value of "NONE" for this timeout; there is a one-year max limit on the time--- that a workflow execution can run.+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. Exceeding this limit will cause the workflow execution to time+-- out. Unlike some of the other timeout parameters in Amazon SWF, you+-- cannot specify a value of \"NONE\" for this timeout; there is a one-year+-- max limit on the time that a workflow execution can run. ----- An execution start-to-close timeout must be specified either through this--- parameter or as a default when the workflow type is registered. If neither--- this parameter nor a default execution start-to-close timeout is specified, a--- fault is returned.-swe1ExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)-swe1ExecutionStartToCloseTimeout =-    lens _swe1ExecutionStartToCloseTimeout-        (\s a -> s { _swe1ExecutionStartToCloseTimeout = a })---- | The input for the workflow execution. This is a free form string which should--- be meaningful to the workflow you are starting. This 'input' is made available--- to the new workflow execution in the 'WorkflowExecutionStarted' history event.-swe1Input :: Lens' StartWorkflowExecution (Maybe Text)-swe1Input = lens _swe1Input (\s a -> s { _swe1Input = a })---- | The list of tags to associate with the workflow execution. You can specify a--- maximum of 5 tags. You can list workflow executions with a specific tag by--- calling 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and--- specifying a 'TagFilter'.-swe1TagList :: Lens' StartWorkflowExecution [Text]-swe1TagList = lens _swe1TagList (\s a -> s { _swe1TagList = a }) . _List+-- An execution start-to-close timeout must be specified either through+-- this parameter or as a default when the workflow type is registered. If+-- neither this parameter nor a default execution start-to-close timeout is+-- specified, a fault is returned.+sExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)+sExecutionStartToCloseTimeout = lens _sExecutionStartToCloseTimeout (\ s a -> s{_sExecutionStartToCloseTimeout = a});  -- | The task list to use for the decision tasks generated for this workflow--- execution. This overrides the 'defaultTaskList' specified when registering the--- workflow type.+-- execution. This overrides the 'defaultTaskList' specified when+-- registering the workflow type. -- -- A task list for this workflow execution must be specified either as a -- default for the workflow type or through this parameter. If neither this--- parameter is set nor a default task list was specified at registration time--- then a fault will be returned. The specified string must not start or end--- with whitespace. It must not contain a ':' (colon), '/' (slash), '|' (vertical--- bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it--- must not contain the literal string quotarnquot.-swe1TaskList :: Lens' StartWorkflowExecution (Maybe TaskList)-swe1TaskList = lens _swe1TaskList (\s a -> s { _swe1TaskList = a })+-- parameter is set nor a default task list was specified at registration+-- time then a fault will be returned.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+sTaskList :: Lens' StartWorkflowExecution (Maybe TaskList)+sTaskList = lens _sTaskList (\ s a -> s{_sTaskList = a}); --- | The task priority to use for this workflow execution. This will override any--- default priority that was assigned when the workflow type was registered. If--- not set, then the default task priority for the workflow type will be used.--- Valid values are integers that range from Java's 'Integer.MIN_VALUE'--- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.+-- | The task priority to use for this workflow execution. This will override+-- any default priority that was assigned when the workflow type was+-- registered. If not set, then the default task priority for the workflow+-- type will be used. Valid values are integers that range from Java\'s+-- 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647).+-- Higher numbers indicate higher priority. ----- For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> -- in the /Amazon Simple Workflow Developer Guide/.-swe1TaskPriority :: Lens' StartWorkflowExecution (Maybe Text)-swe1TaskPriority = lens _swe1TaskPriority (\s a -> s { _swe1TaskPriority = a })+sTaskPriority :: Lens' StartWorkflowExecution (Maybe Text)+sTaskPriority = lens _sTaskPriority (\ s a -> s{_sTaskPriority = a}); --- | Specifies the maximum duration of decision tasks for this workflow execution.--- This parameter overrides the 'defaultTaskStartToCloseTimout' specified when--- registering the workflow type using 'RegisterWorkflowType'.+-- | If set, specifies the policy to use for the child workflow executions of+-- this workflow execution if it is terminated, by calling the+-- TerminateWorkflowExecution action explicitly or due to an expired+-- timeout. This policy overrides the default child policy specified when+-- registering the workflow type using RegisterWorkflowType. ----- The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.+-- The supported child policies are: ----- A task start-to-close timeout for this workflow execution must be specified--- either as a default for the workflow type or through this parameter. If--- neither this parameter is set nor a default task start-to-close timeout was--- specified at registration time then a fault will be returned.-swe1TaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)-swe1TaskStartToCloseTimeout =-    lens _swe1TaskStartToCloseTimeout-        (\s a -> s { _swe1TaskStartToCloseTimeout = a })+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+--+-- A child policy for this workflow execution must be specified either as a+-- default for the workflow type or through this parameter. If neither this+-- parameter is set nor a default child policy was specified at+-- registration time then a fault will be returned.+sChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy)+sChildPolicy = lens _sChildPolicy (\ s a -> s{_sChildPolicy = a}); --- | The user defined identifier associated with the workflow execution. You can--- use this to associate a custom identifier with the workflow execution. You--- may specify the same identifier if a workflow execution is logically a /restart/--- of a previous execution. You cannot have two open workflow executions with--- the same 'workflowId' at the same time.+-- | The name of the domain in which the workflow execution is created.+sDomain :: Lens' StartWorkflowExecution Text+sDomain = lens _sDomain (\ s a -> s{_sDomain = a});++-- | The user defined identifier associated with the workflow execution. You+-- can use this to associate a custom identifier with the workflow+-- execution. You may specify the same identifier if a workflow execution+-- is logically a /restart/ of a previous execution. You cannot have two+-- open workflow executions with the same 'workflowId' at the same time. -- -- The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.-swe1WorkflowId :: Lens' StartWorkflowExecution Text-swe1WorkflowId = lens _swe1WorkflowId (\s a -> s { _swe1WorkflowId = a })+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+sWorkflowId :: Lens' StartWorkflowExecution Text+sWorkflowId = lens _sWorkflowId (\ s a -> s{_sWorkflowId = a});  -- | The type of the workflow to start.-swe1WorkflowType :: Lens' StartWorkflowExecution WorkflowType-swe1WorkflowType = lens _swe1WorkflowType (\s a -> s { _swe1WorkflowType = a })+sWorkflowType :: Lens' StartWorkflowExecution WorkflowType+sWorkflowType = lens _sWorkflowType (\ s a -> s{_sWorkflowType = a}); -newtype StartWorkflowExecutionResponse = StartWorkflowExecutionResponse-    { _swerRunId :: Maybe Text-    } deriving (Eq, Ord, Read, Show, Monoid)+instance AWSRequest StartWorkflowExecution where+        type Sv StartWorkflowExecution = SWF+        type Rs StartWorkflowExecution =+             StartWorkflowExecutionResponse+        request = postJSON+        response+          = receiveJSON+              (\ s h x ->+                 StartWorkflowExecutionResponse' <$>+                   (x .?> "runId") <*> (pure (fromEnum s))) --- | 'StartWorkflowExecutionResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'swerRunId' @::@ 'Maybe' 'Text'----startWorkflowExecutionResponse :: StartWorkflowExecutionResponse-startWorkflowExecutionResponse = StartWorkflowExecutionResponse-    { _swerRunId = Nothing-    }+instance ToHeaders StartWorkflowExecution where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.StartWorkflowExecution" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) --- | The 'runId' of a workflow execution. This Id is generated by the service and--- can be used to uniquely identify the workflow execution within a domain.-swerRunId :: Lens' StartWorkflowExecutionResponse (Maybe Text)-swerRunId = lens _swerRunId (\s a -> s { _swerRunId = a })+instance ToJSON StartWorkflowExecution where+        toJSON StartWorkflowExecution'{..}+          = object+              ["tagList" .= _sTagList,+               "taskStartToCloseTimeout" .=+                 _sTaskStartToCloseTimeout,+               "lambdaRole" .= _sLambdaRole, "input" .= _sInput,+               "executionStartToCloseTimeout" .=+                 _sExecutionStartToCloseTimeout,+               "taskList" .= _sTaskList,+               "taskPriority" .= _sTaskPriority,+               "childPolicy" .= _sChildPolicy, "domain" .= _sDomain,+               "workflowId" .= _sWorkflowId,+               "workflowType" .= _sWorkflowType]  instance ToPath StartWorkflowExecution where-    toPath = const "/"+        toPath = const "/"  instance ToQuery StartWorkflowExecution where-    toQuery = const mempty--instance ToHeaders StartWorkflowExecution+        toQuery = const mempty -instance ToJSON StartWorkflowExecution where-    toJSON StartWorkflowExecution{..} = object-        [ "domain"                       .= _swe1Domain-        , "workflowId"                   .= _swe1WorkflowId-        , "workflowType"                 .= _swe1WorkflowType-        , "taskList"                     .= _swe1TaskList-        , "taskPriority"                 .= _swe1TaskPriority-        , "input"                        .= _swe1Input-        , "executionStartToCloseTimeout" .= _swe1ExecutionStartToCloseTimeout-        , "tagList"                      .= _swe1TagList-        , "taskStartToCloseTimeout"      .= _swe1TaskStartToCloseTimeout-        , "childPolicy"                  .= _swe1ChildPolicy-        ]+-- | Specifies the 'runId' of a workflow execution.+--+-- /See:/ 'startWorkflowExecutionResponse' smart constructor.+data StartWorkflowExecutionResponse = StartWorkflowExecutionResponse'+    { _swersRunId  :: !(Maybe Text)+    , _swersStatus :: !Int+    } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest StartWorkflowExecution where-    type Sv StartWorkflowExecution = SWF-    type Rs StartWorkflowExecution = StartWorkflowExecutionResponse+-- | Creates a value of 'StartWorkflowExecutionResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'swersRunId'+--+-- * 'swersStatus'+startWorkflowExecutionResponse+    :: Int -- ^ 'swersStatus'+    -> StartWorkflowExecutionResponse+startWorkflowExecutionResponse pStatus_ =+    StartWorkflowExecutionResponse'+    { _swersRunId = Nothing+    , _swersStatus = pStatus_+    } -    request  = post "StartWorkflowExecution"-    response = jsonResponse+-- | The 'runId' of a workflow execution. This ID is generated by the service+-- and can be used to uniquely identify the workflow execution within a+-- domain.+swersRunId :: Lens' StartWorkflowExecutionResponse (Maybe Text)+swersRunId = lens _swersRunId (\ s a -> s{_swersRunId = a}); -instance FromJSON StartWorkflowExecutionResponse where-    parseJSON = withObject "StartWorkflowExecutionResponse" $ \o -> StartWorkflowExecutionResponse-        <$> o .:? "runId"+-- | The response status code.+swersStatus :: Lens' StartWorkflowExecutionResponse Int+swersStatus = lens _swersStatus (\ s a -> s{_swersStatus = a});
gen/Network/AWS/SWF/TerminateWorkflowExecution.hs view
@@ -1,178 +1,204 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}  {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module      : Network.AWS.SWF.TerminateWorkflowExecution--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental+-- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Records a 'WorkflowExecutionTerminated' event and forces closure of the--- workflow execution identified by the given domain, runId, and workflowId. The--- child policy, registered with the workflow type or specified when starting--- this execution, is applied to any open child workflow executions of this--- workflow execution.+-- Records a 'WorkflowExecutionTerminated' event and forces closure of the+-- workflow execution identified by the given domain, runId, and+-- workflowId. The child policy, registered with the workflow type or+-- specified when starting this execution, is applied to any open child+-- workflow executions of this workflow execution. -- -- If the identified workflow execution was in progress, it is terminated--- immediately.  If a runId is not specified, then the 'WorkflowExecutionTerminated' event is recorded in the history of the current open workflow with the--- matching workflowId in the domain.  You should consider using 'RequestCancelWorkflowExecution' action instead because it allows the workflow to gracefully close while 'TerminateWorkflowExecution' does not. Access Control+-- immediately. ----- You can use IAM policies to control this action's access to Amazon SWF+-- If a runId is not specified, then the 'WorkflowExecutionTerminated'+-- event is recorded in the history of the current open workflow with the+-- matching workflowId in the domain.+--+-- You should consider using RequestCancelWorkflowExecution action instead+-- because it allows the workflow to gracefully close while+-- TerminateWorkflowExecution does not.+--+-- __Access Control__+--+-- You can use IAM policies to control this action\'s access to Amazon SWF -- resources as follows: ----- Use a 'Resource' element with the domain name to limit the action to only--- specified domains. Use an 'Action' element to allow or deny permission to call--- this action. You cannot use an IAM policy to constrain this action's--- parameters.  If the caller does not have sufficient permissions to invoke the--- action, or the parameter values fall outside the specified constraints, the--- action fails. The associated event attribute's cause parameter will be set to--- OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAMto Manage Access to Amazon SWF Workflows>.+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters. ----- <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_TerminateWorkflowExecution.html>+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ <http://docs.aws.amazon.com/amazonswf/latest/apireference/API_TerminateWorkflowExecution.html AWS API Reference> for TerminateWorkflowExecution. module Network.AWS.SWF.TerminateWorkflowExecution     (-    -- * Request-      TerminateWorkflowExecution-    -- ** Request constructor-    , terminateWorkflowExecution-    -- ** Request lenses-    , tweChildPolicy+    -- * Creating a Request+      terminateWorkflowExecution+    , TerminateWorkflowExecution+    -- * Request Lenses+    , tweRunId+    , tweReason     , tweDetails+    , tweChildPolicy     , tweDomain-    , tweReason-    , tweRunId     , tweWorkflowId -    -- * Response-    , TerminateWorkflowExecutionResponse-    -- ** Response constructor+    -- * Destructuring the Response     , terminateWorkflowExecutionResponse+    , TerminateWorkflowExecutionResponse     ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.JSON-import Network.AWS.SWF.Types-import qualified GHC.Exts+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response+import           Network.AWS.SWF.Types+import           Network.AWS.SWF.Types.Product -data TerminateWorkflowExecution = TerminateWorkflowExecution-    { _tweChildPolicy :: Maybe ChildPolicy-    , _tweDetails     :: Maybe Text-    , _tweDomain      :: Text-    , _tweReason      :: Maybe Text-    , _tweRunId       :: Maybe Text-    , _tweWorkflowId  :: Text-    } deriving (Eq, Read, Show)+-- | /See:/ 'terminateWorkflowExecution' smart constructor.+data TerminateWorkflowExecution = TerminateWorkflowExecution'+    { _tweRunId       :: !(Maybe Text)+    , _tweReason      :: !(Maybe Text)+    , _tweDetails     :: !(Maybe Text)+    , _tweChildPolicy :: !(Maybe ChildPolicy)+    , _tweDomain      :: !Text+    , _tweWorkflowId  :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'TerminateWorkflowExecution' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'TerminateWorkflowExecution' with the minimum fields required to make a request. ----- * 'tweChildPolicy' @::@ 'Maybe' 'ChildPolicy'+-- Use one of the following lenses to modify other fields as desired: ----- * 'tweDetails' @::@ 'Maybe' 'Text'+-- * 'tweRunId' ----- * 'tweDomain' @::@ 'Text'+-- * 'tweReason' ----- * 'tweReason' @::@ 'Maybe' 'Text'+-- * 'tweDetails' ----- * 'tweRunId' @::@ 'Maybe' 'Text'+-- * 'tweChildPolicy' ----- * 'tweWorkflowId' @::@ 'Text'+-- * 'tweDomain' ---terminateWorkflowExecution :: Text -- ^ 'tweDomain'-                           -> Text -- ^ 'tweWorkflowId'-                           -> TerminateWorkflowExecution-terminateWorkflowExecution p1 p2 = TerminateWorkflowExecution-    { _tweDomain      = p1-    , _tweWorkflowId  = p2-    , _tweRunId       = Nothing-    , _tweReason      = Nothing-    , _tweDetails     = Nothing+-- * 'tweWorkflowId'+terminateWorkflowExecution+    :: Text -- ^ 'tweDomain'+    -> Text -- ^ 'tweWorkflowId'+    -> TerminateWorkflowExecution+terminateWorkflowExecution pDomain_ pWorkflowId_ =+    TerminateWorkflowExecution'+    { _tweRunId = Nothing+    , _tweReason = Nothing+    , _tweDetails = Nothing     , _tweChildPolicy = Nothing+    , _tweDomain = pDomain_+    , _tweWorkflowId = pWorkflowId_     } --- | If set, specifies the policy to use for the child workflow executions of the--- workflow execution being terminated. This policy overrides the child policy--- specified for the workflow execution at registration time or when starting--- the execution.+-- | The runId of the workflow execution to terminate.+tweRunId :: Lens' TerminateWorkflowExecution (Maybe Text)+tweRunId = lens _tweRunId (\ s a -> s{_tweRunId = a});++-- | /Optional./ A descriptive reason for terminating the workflow execution.+tweReason :: Lens' TerminateWorkflowExecution (Maybe Text)+tweReason = lens _tweReason (\ s a -> s{_tweReason = a});++-- | /Optional./ Details for terminating the workflow execution.+tweDetails :: Lens' TerminateWorkflowExecution (Maybe Text)+tweDetails = lens _tweDetails (\ s a -> s{_tweDetails = a});++-- | If set, specifies the policy to use for the child workflow executions of+-- the workflow execution being terminated. This policy overrides the child+-- policy specified for the workflow execution at registration time or when+-- starting the execution. -- -- The supported child policies are: ----- TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.  A child policy for--- this workflow execution must be specified either as a default for the--- workflow type or through this parameter. If neither this parameter is set nor--- a default child policy was specified at registration time then a fault will--- be returned.+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+--+-- A child policy for this workflow execution must be specified either as a+-- default for the workflow type or through this parameter. If neither this+-- parameter is set nor a default child policy was specified at+-- registration time then a fault will be returned. tweChildPolicy :: Lens' TerminateWorkflowExecution (Maybe ChildPolicy)-tweChildPolicy = lens _tweChildPolicy (\s a -> s { _tweChildPolicy = a })---- | /Optional./ Details for terminating the workflow execution.-tweDetails :: Lens' TerminateWorkflowExecution (Maybe Text)-tweDetails = lens _tweDetails (\s a -> s { _tweDetails = a })+tweChildPolicy = lens _tweChildPolicy (\ s a -> s{_tweChildPolicy = a});  -- | The domain of the workflow execution to terminate. tweDomain :: Lens' TerminateWorkflowExecution Text-tweDomain = lens _tweDomain (\s a -> s { _tweDomain = a })---- | /Optional./ A descriptive reason for terminating the workflow execution.-tweReason :: Lens' TerminateWorkflowExecution (Maybe Text)-tweReason = lens _tweReason (\s a -> s { _tweReason = a })---- | The runId of the workflow execution to terminate.-tweRunId :: Lens' TerminateWorkflowExecution (Maybe Text)-tweRunId = lens _tweRunId (\s a -> s { _tweRunId = a })+tweDomain = lens _tweDomain (\ s a -> s{_tweDomain = a});  -- | The workflowId of the workflow execution to terminate. tweWorkflowId :: Lens' TerminateWorkflowExecution Text-tweWorkflowId = lens _tweWorkflowId (\s a -> s { _tweWorkflowId = a })+tweWorkflowId = lens _tweWorkflowId (\ s a -> s{_tweWorkflowId = a}); -data TerminateWorkflowExecutionResponse = TerminateWorkflowExecutionResponse-    deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest TerminateWorkflowExecution where+        type Sv TerminateWorkflowExecution = SWF+        type Rs TerminateWorkflowExecution =+             TerminateWorkflowExecutionResponse+        request = postJSON+        response+          = receiveNull TerminateWorkflowExecutionResponse' --- | 'TerminateWorkflowExecutionResponse' constructor.-terminateWorkflowExecutionResponse :: TerminateWorkflowExecutionResponse-terminateWorkflowExecutionResponse = TerminateWorkflowExecutionResponse+instance ToHeaders TerminateWorkflowExecution where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("SimpleWorkflowService.TerminateWorkflowExecution"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.0" :: ByteString)]) +instance ToJSON TerminateWorkflowExecution where+        toJSON TerminateWorkflowExecution'{..}+          = object+              ["runId" .= _tweRunId, "reason" .= _tweReason,+               "details" .= _tweDetails,+               "childPolicy" .= _tweChildPolicy,+               "domain" .= _tweDomain,+               "workflowId" .= _tweWorkflowId]+ instance ToPath TerminateWorkflowExecution where-    toPath = const "/"+        toPath = const "/"  instance ToQuery TerminateWorkflowExecution where-    toQuery = const mempty--instance ToHeaders TerminateWorkflowExecution--instance ToJSON TerminateWorkflowExecution where-    toJSON TerminateWorkflowExecution{..} = object-        [ "domain"      .= _tweDomain-        , "workflowId"  .= _tweWorkflowId-        , "runId"       .= _tweRunId-        , "reason"      .= _tweReason-        , "details"     .= _tweDetails-        , "childPolicy" .= _tweChildPolicy-        ]+        toQuery = const mempty -instance AWSRequest TerminateWorkflowExecution where-    type Sv TerminateWorkflowExecution = SWF-    type Rs TerminateWorkflowExecution = TerminateWorkflowExecutionResponse+-- | /See:/ 'terminateWorkflowExecutionResponse' smart constructor.+data TerminateWorkflowExecutionResponse =+    TerminateWorkflowExecutionResponse'+    deriving (Eq,Read,Show,Data,Typeable,Generic) -    request  = post "TerminateWorkflowExecution"-    response = nullResponse TerminateWorkflowExecutionResponse+-- | Creates a value of 'TerminateWorkflowExecutionResponse' with the minimum fields required to make a request.+--+terminateWorkflowExecutionResponse+    :: TerminateWorkflowExecutionResponse+terminateWorkflowExecutionResponse = TerminateWorkflowExecutionResponse'
gen/Network/AWS/SWF/Types.hs view
@@ -1,8120 +1,960 @@-{-# LANGUAGE DataKinds                   #-}-{-# LANGUAGE DeriveGeneric               #-}-{-# LANGUAGE FlexibleInstances           #-}-{-# LANGUAGE GeneralizedNewtypeDeriving  #-}-{-# LANGUAGE LambdaCase                  #-}-{-# LANGUAGE NoImplicitPrelude           #-}-{-# LANGUAGE OverloadedStrings           #-}-{-# LANGUAGE RecordWildCards             #-}-{-# LANGUAGE TypeFamilies                #-}-{-# LANGUAGE ViewPatterns                #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Module      : Network.AWS.SWF.Types--- Copyright   : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental--- Portability : non-portable (GHC extensions)------ Derived from AWS service descriptions, licensed under Apache 2.0.--module Network.AWS.SWF.Types-    (-    -- * Service-      SWF-    -- ** Error-    , JSONError--    -- * WorkflowExecutionCancelRequestedEventAttributes-    , WorkflowExecutionCancelRequestedEventAttributes-    , workflowExecutionCancelRequestedEventAttributes-    , wecreaCause-    , wecreaExternalInitiatedEventId-    , wecreaExternalWorkflowExecution--    -- * RequestCancelExternalWorkflowExecutionDecisionAttributes-    , RequestCancelExternalWorkflowExecutionDecisionAttributes-    , requestCancelExternalWorkflowExecutionDecisionAttributes-    , rcewedaControl-    , rcewedaRunId-    , rcewedaWorkflowId--    -- * DecisionTaskScheduledEventAttributes-    , DecisionTaskScheduledEventAttributes-    , decisionTaskScheduledEventAttributes-    , dtseaStartToCloseTimeout-    , dtseaTaskList-    , dtseaTaskPriority--    -- * WorkflowExecutionCompletedEventAttributes-    , WorkflowExecutionCompletedEventAttributes-    , workflowExecutionCompletedEventAttributes-    , weceaDecisionTaskCompletedEventId-    , weceaResult--    -- * ExecutionTimeFilter-    , ExecutionTimeFilter-    , executionTimeFilter-    , etfLatestDate-    , etfOldestDate--    -- * StartTimerFailedEventAttributes-    , StartTimerFailedEventAttributes-    , startTimerFailedEventAttributes-    , stfeaCause-    , stfeaDecisionTaskCompletedEventId-    , stfeaTimerId--    -- * RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    , RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    , requestCancelExternalWorkflowExecutionInitiatedEventAttributes-    , rceweieaControl-    , rceweieaDecisionTaskCompletedEventId-    , rceweieaRunId-    , rceweieaWorkflowId--    -- * RecordMarkerFailedEventAttributes-    , RecordMarkerFailedEventAttributes-    , recordMarkerFailedEventAttributes-    , rmfeaCause-    , rmfeaDecisionTaskCompletedEventId-    , rmfeaMarkerName--    -- * WorkflowExecutionCount-    , WorkflowExecutionCount-    , workflowExecutionCount-    , wecCount-    , wecTruncated--    -- * ActivityTaskScheduledEventAttributes-    , ActivityTaskScheduledEventAttributes-    , activityTaskScheduledEventAttributes-    , atseaActivityId-    , atseaActivityType-    , atseaControl-    , atseaDecisionTaskCompletedEventId-    , atseaHeartbeatTimeout-    , atseaInput-    , atseaScheduleToCloseTimeout-    , atseaScheduleToStartTimeout-    , atseaStartToCloseTimeout-    , atseaTaskList-    , atseaTaskPriority--    -- * CloseStatusFilter-    , CloseStatusFilter-    , closeStatusFilter-    , csfStatus--    -- * WorkflowExecutionTimeoutType-    , WorkflowExecutionTimeoutType (..)--    -- * ScheduleActivityTaskDecisionAttributes-    , ScheduleActivityTaskDecisionAttributes-    , scheduleActivityTaskDecisionAttributes-    , satdaActivityId-    , satdaActivityType-    , satdaControl-    , satdaHeartbeatTimeout-    , satdaInput-    , satdaScheduleToCloseTimeout-    , satdaScheduleToStartTimeout-    , satdaStartToCloseTimeout-    , satdaTaskList-    , satdaTaskPriority--    -- * ActivityTypeConfiguration-    , ActivityTypeConfiguration-    , activityTypeConfiguration-    , atcDefaultTaskHeartbeatTimeout-    , atcDefaultTaskList-    , atcDefaultTaskPriority-    , atcDefaultTaskScheduleToCloseTimeout-    , atcDefaultTaskScheduleToStartTimeout-    , atcDefaultTaskStartToCloseTimeout--    -- * ActivityType-    , ActivityType-    , activityType-    , atName-    , atVersion--    -- * WorkflowTypeInfo-    , WorkflowTypeInfo-    , workflowTypeInfo-    , wtiCreationDate-    , wtiDeprecationDate-    , wtiDescription-    , wtiStatus-    , wtiWorkflowType--    -- * ChildWorkflowExecutionCompletedEventAttributes-    , ChildWorkflowExecutionCompletedEventAttributes-    , childWorkflowExecutionCompletedEventAttributes-    , cweceaInitiatedEventId-    , cweceaResult-    , cweceaStartedEventId-    , cweceaWorkflowExecution-    , cweceaWorkflowType--    -- * WorkflowExecutionOpenCounts-    , WorkflowExecutionOpenCounts-    , workflowExecutionOpenCounts-    , weocOpenActivityTasks-    , weocOpenChildWorkflowExecutions-    , weocOpenDecisionTasks-    , weocOpenTimers--    -- * RequestCancelActivityTaskFailedCause-    , RequestCancelActivityTaskFailedCause (..)--    -- * ScheduleActivityTaskFailedEventAttributes-    , ScheduleActivityTaskFailedEventAttributes-    , scheduleActivityTaskFailedEventAttributes-    , satfeaActivityId-    , satfeaActivityType-    , satfeaCause-    , satfeaDecisionTaskCompletedEventId--    -- * MarkerRecordedEventAttributes-    , MarkerRecordedEventAttributes-    , markerRecordedEventAttributes-    , mreaDecisionTaskCompletedEventId-    , mreaDetails-    , mreaMarkerName--    -- * SignalExternalWorkflowExecutionDecisionAttributes-    , SignalExternalWorkflowExecutionDecisionAttributes-    , signalExternalWorkflowExecutionDecisionAttributes-    , sewedaControl-    , sewedaInput-    , sewedaRunId-    , sewedaSignalName-    , sewedaWorkflowId--    -- * WorkflowExecutionTerminatedCause-    , WorkflowExecutionTerminatedCause (..)--    -- * CancelWorkflowExecutionFailedCause-    , CancelWorkflowExecutionFailedCause (..)--    -- * SignalExternalWorkflowExecutionFailedCause-    , SignalExternalWorkflowExecutionFailedCause (..)--    -- * RecordMarkerDecisionAttributes-    , RecordMarkerDecisionAttributes-    , recordMarkerDecisionAttributes-    , rmdaDetails-    , rmdaMarkerName--    -- * CompleteWorkflowExecutionFailedEventAttributes-    , CompleteWorkflowExecutionFailedEventAttributes-    , completeWorkflowExecutionFailedEventAttributes-    , cwefeaCause-    , cwefeaDecisionTaskCompletedEventId--    -- * StartTimerDecisionAttributes-    , StartTimerDecisionAttributes-    , startTimerDecisionAttributes-    , stdaControl-    , stdaStartToFireTimeout-    , stdaTimerId--    -- * DecisionType-    , DecisionType (..)--    -- * RequestCancelExternalWorkflowExecutionFailedEventAttributes-    , RequestCancelExternalWorkflowExecutionFailedEventAttributes-    , requestCancelExternalWorkflowExecutionFailedEventAttributes-    , rcewefeaCause-    , rcewefeaControl-    , rcewefeaDecisionTaskCompletedEventId-    , rcewefeaInitiatedEventId-    , rcewefeaRunId-    , rcewefeaWorkflowId--    -- * ActivityTypeInfo-    , ActivityTypeInfo-    , activityTypeInfo-    , atiActivityType-    , atiCreationDate-    , atiDeprecationDate-    , atiDescription-    , atiStatus--    -- * TimerCanceledEventAttributes-    , TimerCanceledEventAttributes-    , timerCanceledEventAttributes-    , tceaDecisionTaskCompletedEventId-    , tceaStartedEventId-    , tceaTimerId--    -- * WorkflowExecutionStartedEventAttributes-    , WorkflowExecutionStartedEventAttributes-    , workflowExecutionStartedEventAttributes-    , weseaChildPolicy-    , weseaContinuedExecutionRunId-    , weseaExecutionStartToCloseTimeout-    , weseaInput-    , weseaParentInitiatedEventId-    , weseaParentWorkflowExecution-    , weseaTagList-    , weseaTaskList-    , weseaTaskPriority-    , weseaTaskStartToCloseTimeout-    , weseaWorkflowType--    -- * WorkflowTypeConfiguration-    , WorkflowTypeConfiguration-    , workflowTypeConfiguration-    , wtcDefaultChildPolicy-    , wtcDefaultExecutionStartToCloseTimeout-    , wtcDefaultTaskList-    , wtcDefaultTaskPriority-    , wtcDefaultTaskStartToCloseTimeout--    -- * ActivityTaskTimeoutType-    , ActivityTaskTimeoutType (..)--    -- * WorkflowType-    , WorkflowType-    , workflowType-    , wtName-    , wtVersion--    -- * ActivityTaskCompletedEventAttributes-    , ActivityTaskCompletedEventAttributes-    , activityTaskCompletedEventAttributes-    , atceaResult-    , atceaScheduledEventId-    , atceaStartedEventId--    -- * ExecutionStatus-    , ExecutionStatus (..)--    -- * DecisionTaskTimeoutType-    , DecisionTaskTimeoutType (..)--    -- * WorkflowExecutionCancelRequestedCause-    , WorkflowExecutionCancelRequestedCause (..)--    -- * StartChildWorkflowExecutionFailedCause-    , StartChildWorkflowExecutionFailedCause (..)--    -- * DecisionTaskTimedOutEventAttributes-    , DecisionTaskTimedOutEventAttributes-    , decisionTaskTimedOutEventAttributes-    , dttoeaScheduledEventId-    , dttoeaStartedEventId-    , dttoeaTimeoutType--    -- * ChildWorkflowExecutionStartedEventAttributes-    , ChildWorkflowExecutionStartedEventAttributes-    , childWorkflowExecutionStartedEventAttributes-    , cweseaInitiatedEventId-    , cweseaWorkflowExecution-    , cweseaWorkflowType--    -- * CancelTimerFailedEventAttributes-    , CancelTimerFailedEventAttributes-    , cancelTimerFailedEventAttributes-    , ctfeaCause-    , ctfeaDecisionTaskCompletedEventId-    , ctfeaTimerId--    -- * FailWorkflowExecutionFailedCause-    , FailWorkflowExecutionFailedCause (..)--    -- * WorkflowExecutionFilter-    , WorkflowExecutionFilter-    , workflowExecutionFilter-    , wefWorkflowId--    -- * ActivityTaskCanceledEventAttributes-    , ActivityTaskCanceledEventAttributes-    , activityTaskCanceledEventAttributes-    , atcea1Details-    , atcea1LatestCancelRequestedEventId-    , atcea1ScheduledEventId-    , atcea1StartedEventId--    -- * WorkflowExecutionInfos-    , WorkflowExecutionInfos-    , workflowExecutionInfos-    , weiExecutionInfos-    , weiNextPageToken--    -- * StartChildWorkflowExecutionDecisionAttributes-    , StartChildWorkflowExecutionDecisionAttributes-    , startChildWorkflowExecutionDecisionAttributes-    , scwedaChildPolicy-    , scwedaControl-    , scwedaExecutionStartToCloseTimeout-    , scwedaInput-    , scwedaTagList-    , scwedaTaskList-    , scwedaTaskPriority-    , scwedaTaskStartToCloseTimeout-    , scwedaWorkflowId-    , scwedaWorkflowType--    -- * ContinueAsNewWorkflowExecutionFailedCause-    , ContinueAsNewWorkflowExecutionFailedCause (..)--    -- * FailWorkflowExecutionDecisionAttributes-    , FailWorkflowExecutionDecisionAttributes-    , failWorkflowExecutionDecisionAttributes-    , fwedaDetails-    , fwedaReason--    -- * EventType-    , EventType (..)--    -- * ActivityTaskTimedOutEventAttributes-    , ActivityTaskTimedOutEventAttributes-    , activityTaskTimedOutEventAttributes-    , attoeaDetails-    , attoeaScheduledEventId-    , attoeaStartedEventId-    , attoeaTimeoutType--    -- * RequestCancelActivityTaskFailedEventAttributes-    , RequestCancelActivityTaskFailedEventAttributes-    , requestCancelActivityTaskFailedEventAttributes-    , rcatfeaActivityId-    , rcatfeaCause-    , rcatfeaDecisionTaskCompletedEventId--    -- * CompleteWorkflowExecutionDecisionAttributes-    , CompleteWorkflowExecutionDecisionAttributes-    , completeWorkflowExecutionDecisionAttributes-    , cwedaResult--    -- * DecisionTaskStartedEventAttributes-    , DecisionTaskStartedEventAttributes-    , decisionTaskStartedEventAttributes-    , dtseaIdentity-    , dtseaScheduledEventId--    -- * ChildWorkflowExecutionTimedOutEventAttributes-    , ChildWorkflowExecutionTimedOutEventAttributes-    , childWorkflowExecutionTimedOutEventAttributes-    , cwetoeaInitiatedEventId-    , cwetoeaStartedEventId-    , cwetoeaTimeoutType-    , cwetoeaWorkflowExecution-    , cwetoeaWorkflowType--    -- * StartChildWorkflowExecutionInitiatedEventAttributes-    , StartChildWorkflowExecutionInitiatedEventAttributes-    , startChildWorkflowExecutionInitiatedEventAttributes-    , scweieaChildPolicy-    , scweieaControl-    , scweieaDecisionTaskCompletedEventId-    , scweieaExecutionStartToCloseTimeout-    , scweieaInput-    , scweieaTagList-    , scweieaTaskList-    , scweieaTaskPriority-    , scweieaTaskStartToCloseTimeout-    , scweieaWorkflowId-    , scweieaWorkflowType--    -- * CancelWorkflowExecutionFailedEventAttributes-    , CancelWorkflowExecutionFailedEventAttributes-    , cancelWorkflowExecutionFailedEventAttributes-    , cwefea1Cause-    , cwefea1DecisionTaskCompletedEventId--    -- * WorkflowExecutionTerminatedEventAttributes-    , WorkflowExecutionTerminatedEventAttributes-    , workflowExecutionTerminatedEventAttributes-    , weteaCause-    , weteaChildPolicy-    , weteaDetails-    , weteaReason--    -- * TaskList-    , TaskList-    , taskList-    , tlName--    -- * ScheduleActivityTaskFailedCause-    , ScheduleActivityTaskFailedCause (..)--    -- * ChildWorkflowExecutionCanceledEventAttributes-    , ChildWorkflowExecutionCanceledEventAttributes-    , childWorkflowExecutionCanceledEventAttributes-    , cwecea1Details-    , cwecea1InitiatedEventId-    , cwecea1StartedEventId-    , cwecea1WorkflowExecution-    , cwecea1WorkflowType--    -- * WorkflowExecutionInfo-    , WorkflowExecutionInfo-    , workflowExecutionInfo-    , weiCancelRequested-    , weiCloseStatus-    , weiCloseTimestamp-    , weiExecution-    , weiExecutionStatus-    , weiParent-    , weiStartTimestamp-    , weiTagList-    , weiWorkflowType--    -- * SignalExternalWorkflowExecutionFailedEventAttributes-    , SignalExternalWorkflowExecutionFailedEventAttributes-    , signalExternalWorkflowExecutionFailedEventAttributes-    , sewefeaCause-    , sewefeaControl-    , sewefeaDecisionTaskCompletedEventId-    , sewefeaInitiatedEventId-    , sewefeaRunId-    , sewefeaWorkflowId--    -- * TagFilter-    , TagFilter-    , tagFilter-    , tfTag--    -- * ChildPolicy-    , ChildPolicy (..)--    -- * ActivityTaskStartedEventAttributes-    , ActivityTaskStartedEventAttributes-    , activityTaskStartedEventAttributes-    , atseaIdentity-    , atseaScheduledEventId--    -- * CloseStatus-    , CloseStatus (..)--    -- * CompleteWorkflowExecutionFailedCause-    , CompleteWorkflowExecutionFailedCause (..)--    -- * StartTimerFailedCause-    , StartTimerFailedCause (..)--    -- * ActivityTaskCancelRequestedEventAttributes-    , ActivityTaskCancelRequestedEventAttributes-    , activityTaskCancelRequestedEventAttributes-    , atcreaActivityId-    , atcreaDecisionTaskCompletedEventId--    -- * WorkflowExecutionTimedOutEventAttributes-    , WorkflowExecutionTimedOutEventAttributes-    , workflowExecutionTimedOutEventAttributes-    , wetoeaChildPolicy-    , wetoeaTimeoutType--    -- * ChildWorkflowExecutionTerminatedEventAttributes-    , ChildWorkflowExecutionTerminatedEventAttributes-    , childWorkflowExecutionTerminatedEventAttributes-    , cweteaInitiatedEventId-    , cweteaStartedEventId-    , cweteaWorkflowExecution-    , cweteaWorkflowType--    -- * WorkflowExecutionCanceledEventAttributes-    , WorkflowExecutionCanceledEventAttributes-    , workflowExecutionCanceledEventAttributes-    , wecea1DecisionTaskCompletedEventId-    , wecea1Details--    -- * WorkflowExecutionSignaledEventAttributes-    , WorkflowExecutionSignaledEventAttributes-    , workflowExecutionSignaledEventAttributes-    , wesea1ExternalInitiatedEventId-    , wesea1ExternalWorkflowExecution-    , wesea1Input-    , wesea1SignalName--    -- * RecordMarkerFailedCause-    , RecordMarkerFailedCause (..)--    -- * RegistrationStatus-    , RegistrationStatus (..)--    -- * TimerStartedEventAttributes-    , TimerStartedEventAttributes-    , timerStartedEventAttributes-    , tseaControl-    , tseaDecisionTaskCompletedEventId-    , tseaStartToFireTimeout-    , tseaTimerId--    -- * RequestCancelActivityTaskDecisionAttributes-    , RequestCancelActivityTaskDecisionAttributes-    , requestCancelActivityTaskDecisionAttributes-    , rcatdaActivityId--    -- * Decision-    , Decision-    , decision-    , dCancelTimerDecisionAttributes-    , dCancelWorkflowExecutionDecisionAttributes-    , dCompleteWorkflowExecutionDecisionAttributes-    , dContinueAsNewWorkflowExecutionDecisionAttributes-    , dDecisionType-    , dFailWorkflowExecutionDecisionAttributes-    , dRecordMarkerDecisionAttributes-    , dRequestCancelActivityTaskDecisionAttributes-    , dRequestCancelExternalWorkflowExecutionDecisionAttributes-    , dScheduleActivityTaskDecisionAttributes-    , dSignalExternalWorkflowExecutionDecisionAttributes-    , dStartChildWorkflowExecutionDecisionAttributes-    , dStartTimerDecisionAttributes--    -- * TimerFiredEventAttributes-    , TimerFiredEventAttributes-    , timerFiredEventAttributes-    , tfeaStartedEventId-    , tfeaTimerId--    -- * DomainConfiguration-    , DomainConfiguration-    , domainConfiguration-    , dcWorkflowExecutionRetentionPeriodInDays--    -- * ExternalWorkflowExecutionSignaledEventAttributes-    , ExternalWorkflowExecutionSignaledEventAttributes-    , externalWorkflowExecutionSignaledEventAttributes-    , eweseaInitiatedEventId-    , eweseaWorkflowExecution--    -- * CancelWorkflowExecutionDecisionAttributes-    , CancelWorkflowExecutionDecisionAttributes-    , cancelWorkflowExecutionDecisionAttributes-    , cwedaDetails--    -- * ActivityTaskFailedEventAttributes-    , ActivityTaskFailedEventAttributes-    , activityTaskFailedEventAttributes-    , atfeaDetails-    , atfeaReason-    , atfeaScheduledEventId-    , atfeaStartedEventId--    -- * FailWorkflowExecutionFailedEventAttributes-    , FailWorkflowExecutionFailedEventAttributes-    , failWorkflowExecutionFailedEventAttributes-    , fwefeaCause-    , fwefeaDecisionTaskCompletedEventId--    -- * StartChildWorkflowExecutionFailedEventAttributes-    , StartChildWorkflowExecutionFailedEventAttributes-    , startChildWorkflowExecutionFailedEventAttributes-    , scwefeaCause-    , scwefeaControl-    , scwefeaDecisionTaskCompletedEventId-    , scwefeaInitiatedEventId-    , scwefeaWorkflowId-    , scwefeaWorkflowType--    -- * WorkflowTypeFilter-    , WorkflowTypeFilter-    , workflowTypeFilter-    , wtfName-    , wtfVersion--    -- * CancelTimerFailedCause-    , CancelTimerFailedCause (..)--    -- * DecisionTaskCompletedEventAttributes-    , DecisionTaskCompletedEventAttributes-    , decisionTaskCompletedEventAttributes-    , dtceaExecutionContext-    , dtceaScheduledEventId-    , dtceaStartedEventId--    -- * ChildWorkflowExecutionFailedEventAttributes-    , ChildWorkflowExecutionFailedEventAttributes-    , childWorkflowExecutionFailedEventAttributes-    , cwefeaDetails-    , cwefeaInitiatedEventId-    , cwefeaReason-    , cwefeaStartedEventId-    , cwefeaWorkflowExecution-    , cwefeaWorkflowType--    -- * DomainInfo-    , DomainInfo-    , domainInfo-    , diDescription-    , diName-    , diStatus--    -- * HistoryEvent-    , HistoryEvent-    , historyEvent-    , heActivityTaskCancelRequestedEventAttributes-    , heActivityTaskCanceledEventAttributes-    , heActivityTaskCompletedEventAttributes-    , heActivityTaskFailedEventAttributes-    , heActivityTaskScheduledEventAttributes-    , heActivityTaskStartedEventAttributes-    , heActivityTaskTimedOutEventAttributes-    , heCancelTimerFailedEventAttributes-    , heCancelWorkflowExecutionFailedEventAttributes-    , heChildWorkflowExecutionCanceledEventAttributes-    , heChildWorkflowExecutionCompletedEventAttributes-    , heChildWorkflowExecutionFailedEventAttributes-    , heChildWorkflowExecutionStartedEventAttributes-    , heChildWorkflowExecutionTerminatedEventAttributes-    , heChildWorkflowExecutionTimedOutEventAttributes-    , heCompleteWorkflowExecutionFailedEventAttributes-    , heContinueAsNewWorkflowExecutionFailedEventAttributes-    , heDecisionTaskCompletedEventAttributes-    , heDecisionTaskScheduledEventAttributes-    , heDecisionTaskStartedEventAttributes-    , heDecisionTaskTimedOutEventAttributes-    , heEventId-    , heEventTimestamp-    , heEventType-    , heExternalWorkflowExecutionCancelRequestedEventAttributes-    , heExternalWorkflowExecutionSignaledEventAttributes-    , heFailWorkflowExecutionFailedEventAttributes-    , heMarkerRecordedEventAttributes-    , heRecordMarkerFailedEventAttributes-    , heRequestCancelActivityTaskFailedEventAttributes-    , heRequestCancelExternalWorkflowExecutionFailedEventAttributes-    , heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    , heScheduleActivityTaskFailedEventAttributes-    , heSignalExternalWorkflowExecutionFailedEventAttributes-    , heSignalExternalWorkflowExecutionInitiatedEventAttributes-    , heStartChildWorkflowExecutionFailedEventAttributes-    , heStartChildWorkflowExecutionInitiatedEventAttributes-    , heStartTimerFailedEventAttributes-    , heTimerCanceledEventAttributes-    , heTimerFiredEventAttributes-    , heTimerStartedEventAttributes-    , heWorkflowExecutionCancelRequestedEventAttributes-    , heWorkflowExecutionCanceledEventAttributes-    , heWorkflowExecutionCompletedEventAttributes-    , heWorkflowExecutionContinuedAsNewEventAttributes-    , heWorkflowExecutionFailedEventAttributes-    , heWorkflowExecutionSignaledEventAttributes-    , heWorkflowExecutionStartedEventAttributes-    , heWorkflowExecutionTerminatedEventAttributes-    , heWorkflowExecutionTimedOutEventAttributes--    -- * ContinueAsNewWorkflowExecutionFailedEventAttributes-    , ContinueAsNewWorkflowExecutionFailedEventAttributes-    , continueAsNewWorkflowExecutionFailedEventAttributes-    , canwefeaCause-    , canwefeaDecisionTaskCompletedEventId--    -- * SignalExternalWorkflowExecutionInitiatedEventAttributes-    , SignalExternalWorkflowExecutionInitiatedEventAttributes-    , signalExternalWorkflowExecutionInitiatedEventAttributes-    , seweieaControl-    , seweieaDecisionTaskCompletedEventId-    , seweieaInput-    , seweieaRunId-    , seweieaSignalName-    , seweieaWorkflowId--    -- * CancelTimerDecisionAttributes-    , CancelTimerDecisionAttributes-    , cancelTimerDecisionAttributes-    , ctdaTimerId--    -- * WorkflowExecutionFailedEventAttributes-    , WorkflowExecutionFailedEventAttributes-    , workflowExecutionFailedEventAttributes-    , wefeaDecisionTaskCompletedEventId-    , wefeaDetails-    , wefeaReason--    -- * WorkflowExecutionConfiguration-    , WorkflowExecutionConfiguration-    , workflowExecutionConfiguration-    , wecChildPolicy-    , wecExecutionStartToCloseTimeout-    , wecTaskList-    , wecTaskPriority-    , wecTaskStartToCloseTimeout--    -- * WorkflowExecution-    , WorkflowExecution-    , workflowExecution-    , weRunId-    , weWorkflowId--    -- * RequestCancelExternalWorkflowExecutionFailedCause-    , RequestCancelExternalWorkflowExecutionFailedCause (..)--    -- * ContinueAsNewWorkflowExecutionDecisionAttributes-    , ContinueAsNewWorkflowExecutionDecisionAttributes-    , continueAsNewWorkflowExecutionDecisionAttributes-    , canwedaChildPolicy-    , canwedaExecutionStartToCloseTimeout-    , canwedaInput-    , canwedaTagList-    , canwedaTaskList-    , canwedaTaskPriority-    , canwedaTaskStartToCloseTimeout-    , canwedaWorkflowTypeVersion--    -- * ExternalWorkflowExecutionCancelRequestedEventAttributes-    , ExternalWorkflowExecutionCancelRequestedEventAttributes-    , externalWorkflowExecutionCancelRequestedEventAttributes-    , ewecreaInitiatedEventId-    , ewecreaWorkflowExecution--    -- * PendingTaskCount-    , PendingTaskCount-    , pendingTaskCount-    , ptcCount-    , ptcTruncated--    -- * WorkflowExecutionContinuedAsNewEventAttributes-    , WorkflowExecutionContinuedAsNewEventAttributes-    , workflowExecutionContinuedAsNewEventAttributes-    , wecaneaChildPolicy-    , wecaneaDecisionTaskCompletedEventId-    , wecaneaExecutionStartToCloseTimeout-    , wecaneaInput-    , wecaneaNewExecutionRunId-    , wecaneaTagList-    , wecaneaTaskList-    , wecaneaTaskPriority-    , wecaneaTaskStartToCloseTimeout-    , wecaneaWorkflowType-    ) where--import Network.AWS.Prelude-import Network.AWS.Signing-import qualified GHC.Exts---- | Version @2012-01-25@ of the Amazon Simple Workflow Service service.-data SWF--instance AWSService SWF where-    type Sg SWF = V4-    type Er SWF = JSONError--    service = service'-      where-        service' :: Service SWF-        service' = Service-            { _svcAbbrev       = "SWF"-            , _svcPrefix       = "swf"-            , _svcVersion      = "2012-01-25"-            , _svcTargetPrefix = Just "SimpleWorkflowService"-            , _svcJSONVersion  = Just "1.0"-            , _svcHandle       = handle-            , _svcRetry        = retry-            }--        handle :: Status-               -> Maybe (LazyByteString -> ServiceError JSONError)-        handle = jsonError statusSuccess service'--        retry :: Retry SWF-        retry = Exponential-            { _retryBase     = 0.05-            , _retryGrowth   = 2-            , _retryAttempts = 5-            , _retryCheck    = check-            }--        check :: Status-              -> JSONError-              -> Bool-        check (statusCode -> s) (awsErrorCode -> e)-            | s == 400 && (Just "Throttling") == e = True -- Throttling-            | s == 500  = True -- General Server Error-            | s == 509  = True -- Limit Exceeded-            | s == 503  = True -- Service Unavailable-            | otherwise = False--data WorkflowExecutionCancelRequestedEventAttributes = WorkflowExecutionCancelRequestedEventAttributes-    { _wecreaCause                     :: Maybe WorkflowExecutionCancelRequestedCause-    , _wecreaExternalInitiatedEventId  :: Maybe Integer-    , _wecreaExternalWorkflowExecution :: Maybe WorkflowExecution-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionCancelRequestedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wecreaCause' @::@ 'Maybe' 'WorkflowExecutionCancelRequestedCause'------ * 'wecreaExternalInitiatedEventId' @::@ 'Maybe' 'Integer'------ * 'wecreaExternalWorkflowExecution' @::@ 'Maybe' 'WorkflowExecution'----workflowExecutionCancelRequestedEventAttributes :: WorkflowExecutionCancelRequestedEventAttributes-workflowExecutionCancelRequestedEventAttributes = WorkflowExecutionCancelRequestedEventAttributes-    { _wecreaExternalWorkflowExecution = Nothing-    , _wecreaExternalInitiatedEventId  = Nothing-    , _wecreaCause                     = Nothing-    }---- | If set, indicates that the request to cancel the workflow execution was--- automatically generated, and specifies the cause. This happens if the parent--- workflow execution times out or is terminated, and the child policy is set to--- cancel child executions.-wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)-wecreaCause = lens _wecreaCause (\s a -> s { _wecreaCause = a })---- | The id of the 'RequestCancelExternalWorkflowExecutionInitiated' event--- corresponding to the 'RequestCancelExternalWorkflowExecution' decision to--- cancel this workflow execution.The source event with this Id can be found in--- the history of the source workflow execution. This information can be useful--- for diagnosing problems by tracing back the chain of events leading up to--- this event.-wecreaExternalInitiatedEventId :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe Integer)-wecreaExternalInitiatedEventId =-    lens _wecreaExternalInitiatedEventId-        (\s a -> s { _wecreaExternalInitiatedEventId = a })---- | The external workflow execution for which the cancellation was requested.-wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)-wecreaExternalWorkflowExecution =-    lens _wecreaExternalWorkflowExecution-        (\s a -> s { _wecreaExternalWorkflowExecution = a })--instance FromJSON WorkflowExecutionCancelRequestedEventAttributes where-    parseJSON = withObject "WorkflowExecutionCancelRequestedEventAttributes" $ \o -> WorkflowExecutionCancelRequestedEventAttributes-        <$> o .:? "cause"-        <*> o .:? "externalInitiatedEventId"-        <*> o .:? "externalWorkflowExecution"--instance ToJSON WorkflowExecutionCancelRequestedEventAttributes where-    toJSON WorkflowExecutionCancelRequestedEventAttributes{..} = object-        [ "externalWorkflowExecution" .= _wecreaExternalWorkflowExecution-        , "externalInitiatedEventId"  .= _wecreaExternalInitiatedEventId-        , "cause"                     .= _wecreaCause-        ]--data RequestCancelExternalWorkflowExecutionDecisionAttributes = RequestCancelExternalWorkflowExecutionDecisionAttributes-    { _rcewedaControl    :: Maybe Text-    , _rcewedaRunId      :: Maybe Text-    , _rcewedaWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'RequestCancelExternalWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rcewedaControl' @::@ 'Maybe' 'Text'------ * 'rcewedaRunId' @::@ 'Maybe' 'Text'------ * 'rcewedaWorkflowId' @::@ 'Text'----requestCancelExternalWorkflowExecutionDecisionAttributes :: Text -- ^ 'rcewedaWorkflowId'-                                                         -> RequestCancelExternalWorkflowExecutionDecisionAttributes-requestCancelExternalWorkflowExecutionDecisionAttributes p1 = RequestCancelExternalWorkflowExecutionDecisionAttributes-    { _rcewedaWorkflowId = p1-    , _rcewedaRunId      = Nothing-    , _rcewedaControl    = Nothing-    }---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks.-rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)-rcewedaControl = lens _rcewedaControl (\s a -> s { _rcewedaControl = a })---- | The 'runId' of the external workflow execution to cancel.-rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)-rcewedaRunId = lens _rcewedaRunId (\s a -> s { _rcewedaRunId = a })---- | Required. The 'workflowId' of the external workflow execution to cancel.-rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text-rcewedaWorkflowId =-    lens _rcewedaWorkflowId (\s a -> s { _rcewedaWorkflowId = a })--instance FromJSON RequestCancelExternalWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "RequestCancelExternalWorkflowExecutionDecisionAttributes" $ \o -> RequestCancelExternalWorkflowExecutionDecisionAttributes-        <$> o .:? "control"-        <*> o .:? "runId"-        <*> o .:  "workflowId"--instance ToJSON RequestCancelExternalWorkflowExecutionDecisionAttributes where-    toJSON RequestCancelExternalWorkflowExecutionDecisionAttributes{..} = object-        [ "workflowId" .= _rcewedaWorkflowId-        , "runId"      .= _rcewedaRunId-        , "control"    .= _rcewedaControl-        ]--data DecisionTaskScheduledEventAttributes = DecisionTaskScheduledEventAttributes-    { _dtseaStartToCloseTimeout :: Maybe Text-    , _dtseaTaskList            :: TaskList-    , _dtseaTaskPriority        :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'DecisionTaskScheduledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'dtseaStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'dtseaTaskList' @::@ 'TaskList'------ * 'dtseaTaskPriority' @::@ 'Maybe' 'Text'----decisionTaskScheduledEventAttributes :: TaskList -- ^ 'dtseaTaskList'-                                     -> DecisionTaskScheduledEventAttributes-decisionTaskScheduledEventAttributes p1 = DecisionTaskScheduledEventAttributes-    { _dtseaTaskList            = p1-    , _dtseaTaskPriority        = Nothing-    , _dtseaStartToCloseTimeout = Nothing-    }---- | The maximum duration for this decision task. The task is considered timed out--- if it does not completed within this duration.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)-dtseaStartToCloseTimeout =-    lens _dtseaStartToCloseTimeout-        (\s a -> s { _dtseaStartToCloseTimeout = a })---- | The name of the task list in which the decision task was scheduled.-dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList-dtseaTaskList = lens _dtseaTaskList (\s a -> s { _dtseaTaskList = a })---- | /Optional./ A task priority that, if set, specifies the priority for this--- decision task. Valid values are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)-dtseaTaskPriority =-    lens _dtseaTaskPriority (\s a -> s { _dtseaTaskPriority = a })--instance FromJSON DecisionTaskScheduledEventAttributes where-    parseJSON = withObject "DecisionTaskScheduledEventAttributes" $ \o -> DecisionTaskScheduledEventAttributes-        <$> o .:? "startToCloseTimeout"-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"--instance ToJSON DecisionTaskScheduledEventAttributes where-    toJSON DecisionTaskScheduledEventAttributes{..} = object-        [ "taskList"            .= _dtseaTaskList-        , "taskPriority"        .= _dtseaTaskPriority-        , "startToCloseTimeout" .= _dtseaStartToCloseTimeout-        ]--data WorkflowExecutionCompletedEventAttributes = WorkflowExecutionCompletedEventAttributes-    { _weceaDecisionTaskCompletedEventId :: Integer-    , _weceaResult                       :: Maybe Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecutionCompletedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'weceaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'weceaResult' @::@ 'Maybe' 'Text'----workflowExecutionCompletedEventAttributes :: Integer -- ^ 'weceaDecisionTaskCompletedEventId'-                                          -> WorkflowExecutionCompletedEventAttributes-workflowExecutionCompletedEventAttributes p1 = WorkflowExecutionCompletedEventAttributes-    { _weceaDecisionTaskCompletedEventId = p1-    , _weceaResult                       = Nothing-    }---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CompleteWorkflowExecution' decision to complete this--- execution. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-weceaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCompletedEventAttributes Integer-weceaDecisionTaskCompletedEventId =-    lens _weceaDecisionTaskCompletedEventId-        (\s a -> s { _weceaDecisionTaskCompletedEventId = a })---- | The result produced by the workflow execution upon successful completion.-weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)-weceaResult = lens _weceaResult (\s a -> s { _weceaResult = a })--instance FromJSON WorkflowExecutionCompletedEventAttributes where-    parseJSON = withObject "WorkflowExecutionCompletedEventAttributes" $ \o -> WorkflowExecutionCompletedEventAttributes-        <$> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "result"--instance ToJSON WorkflowExecutionCompletedEventAttributes where-    toJSON WorkflowExecutionCompletedEventAttributes{..} = object-        [ "result"                       .= _weceaResult-        , "decisionTaskCompletedEventId" .= _weceaDecisionTaskCompletedEventId-        ]--data ExecutionTimeFilter = ExecutionTimeFilter-    { _etfLatestDate :: Maybe POSIX-    , _etfOldestDate :: POSIX-    } deriving (Eq, Ord, Read, Show)---- | 'ExecutionTimeFilter' constructor.------ The fields accessible through corresponding lenses are:------ * 'etfLatestDate' @::@ 'Maybe' 'UTCTime'------ * 'etfOldestDate' @::@ 'UTCTime'----executionTimeFilter :: UTCTime -- ^ 'etfOldestDate'-                    -> ExecutionTimeFilter-executionTimeFilter p1 = ExecutionTimeFilter-    { _etfOldestDate = withIso _Time (const id) p1-    , _etfLatestDate = Nothing-    }---- | Specifies the latest start or close date and time to return.-etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)-etfLatestDate = lens _etfLatestDate (\s a -> s { _etfLatestDate = a }) . mapping _Time---- | Specifies the oldest start or close date and time to return.-etfOldestDate :: Lens' ExecutionTimeFilter UTCTime-etfOldestDate = lens _etfOldestDate (\s a -> s { _etfOldestDate = a }) . _Time--instance FromJSON ExecutionTimeFilter where-    parseJSON = withObject "ExecutionTimeFilter" $ \o -> ExecutionTimeFilter-        <$> o .:? "latestDate"-        <*> o .:  "oldestDate"--instance ToJSON ExecutionTimeFilter where-    toJSON ExecutionTimeFilter{..} = object-        [ "oldestDate" .= _etfOldestDate-        , "latestDate" .= _etfLatestDate-        ]--data StartTimerFailedEventAttributes = StartTimerFailedEventAttributes-    { _stfeaCause                        :: StartTimerFailedCause-    , _stfeaDecisionTaskCompletedEventId :: Integer-    , _stfeaTimerId                      :: Text-    } deriving (Eq, Read, Show)---- | 'StartTimerFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'stfeaCause' @::@ 'StartTimerFailedCause'------ * 'stfeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'stfeaTimerId' @::@ 'Text'----startTimerFailedEventAttributes :: Text -- ^ 'stfeaTimerId'-                                -> StartTimerFailedCause -- ^ 'stfeaCause'-                                -> Integer -- ^ 'stfeaDecisionTaskCompletedEventId'-                                -> StartTimerFailedEventAttributes-startTimerFailedEventAttributes p1 p2 p3 = StartTimerFailedEventAttributes-    { _stfeaTimerId                      = p1-    , _stfeaCause                        = p2-    , _stfeaDecisionTaskCompletedEventId = p3-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause-stfeaCause = lens _stfeaCause (\s a -> s { _stfeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'StartTimer' decision for this activity task. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-stfeaDecisionTaskCompletedEventId :: Lens' StartTimerFailedEventAttributes Integer-stfeaDecisionTaskCompletedEventId =-    lens _stfeaDecisionTaskCompletedEventId-        (\s a -> s { _stfeaDecisionTaskCompletedEventId = a })---- | The timerId provided in the 'StartTimer' decision that failed.-stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text-stfeaTimerId = lens _stfeaTimerId (\s a -> s { _stfeaTimerId = a })--instance FromJSON StartTimerFailedEventAttributes where-    parseJSON = withObject "StartTimerFailedEventAttributes" $ \o -> StartTimerFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "timerId"--instance ToJSON StartTimerFailedEventAttributes where-    toJSON StartTimerFailedEventAttributes{..} = object-        [ "timerId"                      .= _stfeaTimerId-        , "cause"                        .= _stfeaCause-        , "decisionTaskCompletedEventId" .= _stfeaDecisionTaskCompletedEventId-        ]--data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    { _rceweieaControl                      :: Maybe Text-    , _rceweieaDecisionTaskCompletedEventId :: Integer-    , _rceweieaRunId                        :: Maybe Text-    , _rceweieaWorkflowId                   :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rceweieaControl' @::@ 'Maybe' 'Text'------ * 'rceweieaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'rceweieaRunId' @::@ 'Maybe' 'Text'------ * 'rceweieaWorkflowId' @::@ 'Text'----requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Text -- ^ 'rceweieaWorkflowId'-                                                               -> Integer -- ^ 'rceweieaDecisionTaskCompletedEventId'-                                                               -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-requestCancelExternalWorkflowExecutionInitiatedEventAttributes p1 p2 = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    { _rceweieaWorkflowId                   = p1-    , _rceweieaDecisionTaskCompletedEventId = p2-    , _rceweieaRunId                        = Nothing-    , _rceweieaControl                      = Nothing-    }---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks.-rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-rceweieaControl = lens _rceweieaControl (\s a -> s { _rceweieaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RequestCancelExternalWorkflowExecution' decision for this--- cancellation request. This information can be useful for diagnosing problems--- by tracing back the chain of events leading up to this event.-rceweieaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Integer-rceweieaDecisionTaskCompletedEventId =-    lens _rceweieaDecisionTaskCompletedEventId-        (\s a -> s { _rceweieaDecisionTaskCompletedEventId = a })---- | The 'runId' of the external workflow execution to be canceled.-rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-rceweieaRunId = lens _rceweieaRunId (\s a -> s { _rceweieaRunId = a })---- | The 'workflowId' of the external workflow execution to be canceled.-rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text-rceweieaWorkflowId =-    lens _rceweieaWorkflowId (\s a -> s { _rceweieaWorkflowId = a })--instance FromJSON RequestCancelExternalWorkflowExecutionInitiatedEventAttributes where-    parseJSON = withObject "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes" $ \o -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-        <$> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "runId"-        <*> o .:  "workflowId"--instance ToJSON RequestCancelExternalWorkflowExecutionInitiatedEventAttributes where-    toJSON RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{..} = object-        [ "workflowId"                   .= _rceweieaWorkflowId-        , "runId"                        .= _rceweieaRunId-        , "decisionTaskCompletedEventId" .= _rceweieaDecisionTaskCompletedEventId-        , "control"                      .= _rceweieaControl-        ]--data RecordMarkerFailedEventAttributes = RecordMarkerFailedEventAttributes-    { _rmfeaCause                        :: RecordMarkerFailedCause-    , _rmfeaDecisionTaskCompletedEventId :: Integer-    , _rmfeaMarkerName                   :: Text-    } deriving (Eq, Read, Show)---- | 'RecordMarkerFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rmfeaCause' @::@ 'RecordMarkerFailedCause'------ * 'rmfeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'rmfeaMarkerName' @::@ 'Text'----recordMarkerFailedEventAttributes :: Text -- ^ 'rmfeaMarkerName'-                                  -> RecordMarkerFailedCause -- ^ 'rmfeaCause'-                                  -> Integer -- ^ 'rmfeaDecisionTaskCompletedEventId'-                                  -> RecordMarkerFailedEventAttributes-recordMarkerFailedEventAttributes p1 p2 p3 = RecordMarkerFailedEventAttributes-    { _rmfeaMarkerName                   = p1-    , _rmfeaCause                        = p2-    , _rmfeaDecisionTaskCompletedEventId = p3-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause-rmfeaCause = lens _rmfeaCause (\s a -> s { _rmfeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RecordMarkerFailed' decision for this cancellation--- request. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-rmfeaDecisionTaskCompletedEventId :: Lens' RecordMarkerFailedEventAttributes Integer-rmfeaDecisionTaskCompletedEventId =-    lens _rmfeaDecisionTaskCompletedEventId-        (\s a -> s { _rmfeaDecisionTaskCompletedEventId = a })---- | The marker's name.-rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text-rmfeaMarkerName = lens _rmfeaMarkerName (\s a -> s { _rmfeaMarkerName = a })--instance FromJSON RecordMarkerFailedEventAttributes where-    parseJSON = withObject "RecordMarkerFailedEventAttributes" $ \o -> RecordMarkerFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "markerName"--instance ToJSON RecordMarkerFailedEventAttributes where-    toJSON RecordMarkerFailedEventAttributes{..} = object-        [ "markerName"                   .= _rmfeaMarkerName-        , "cause"                        .= _rmfeaCause-        , "decisionTaskCompletedEventId" .= _rmfeaDecisionTaskCompletedEventId-        ]--data WorkflowExecutionCount = WorkflowExecutionCount-    { _wecCount     :: Nat-    , _wecTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecutionCount' constructor.------ The fields accessible through corresponding lenses are:------ * 'wecCount' @::@ 'Natural'------ * 'wecTruncated' @::@ 'Maybe' 'Bool'----workflowExecutionCount :: Natural -- ^ 'wecCount'-                       -> WorkflowExecutionCount-workflowExecutionCount p1 = WorkflowExecutionCount-    { _wecCount     = withIso _Nat (const id) p1-    , _wecTruncated = Nothing-    }---- | The number of workflow executions.-wecCount :: Lens' WorkflowExecutionCount Natural-wecCount = lens _wecCount (\s a -> s { _wecCount = a }) . _Nat---- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)-wecTruncated = lens _wecTruncated (\s a -> s { _wecTruncated = a })--instance FromJSON WorkflowExecutionCount where-    parseJSON = withObject "WorkflowExecutionCount" $ \o -> WorkflowExecutionCount-        <$> o .:  "count"-        <*> o .:? "truncated"--instance ToJSON WorkflowExecutionCount where-    toJSON WorkflowExecutionCount{..} = object-        [ "count"     .= _wecCount-        , "truncated" .= _wecTruncated-        ]--data ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes-    { _atseaActivityId                   :: Text-    , _atseaActivityType                 :: ActivityType-    , _atseaControl                      :: Maybe Text-    , _atseaDecisionTaskCompletedEventId :: Integer-    , _atseaHeartbeatTimeout             :: Maybe Text-    , _atseaInput                        :: Maybe Text-    , _atseaScheduleToCloseTimeout       :: Maybe Text-    , _atseaScheduleToStartTimeout       :: Maybe Text-    , _atseaStartToCloseTimeout          :: Maybe Text-    , _atseaTaskList                     :: TaskList-    , _atseaTaskPriority                 :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'ActivityTaskScheduledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atseaActivityId' @::@ 'Text'------ * 'atseaActivityType' @::@ 'ActivityType'------ * 'atseaControl' @::@ 'Maybe' 'Text'------ * 'atseaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'atseaHeartbeatTimeout' @::@ 'Maybe' 'Text'------ * 'atseaInput' @::@ 'Maybe' 'Text'------ * 'atseaScheduleToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'atseaScheduleToStartTimeout' @::@ 'Maybe' 'Text'------ * 'atseaStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'atseaTaskList' @::@ 'TaskList'------ * 'atseaTaskPriority' @::@ 'Maybe' 'Text'----activityTaskScheduledEventAttributes :: ActivityType -- ^ 'atseaActivityType'-                                     -> Text -- ^ 'atseaActivityId'-                                     -> TaskList -- ^ 'atseaTaskList'-                                     -> Integer -- ^ 'atseaDecisionTaskCompletedEventId'-                                     -> ActivityTaskScheduledEventAttributes-activityTaskScheduledEventAttributes p1 p2 p3 p4 = ActivityTaskScheduledEventAttributes-    { _atseaActivityType                 = p1-    , _atseaActivityId                   = p2-    , _atseaTaskList                     = p3-    , _atseaDecisionTaskCompletedEventId = p4-    , _atseaInput                        = Nothing-    , _atseaControl                      = Nothing-    , _atseaScheduleToStartTimeout       = Nothing-    , _atseaScheduleToCloseTimeout       = Nothing-    , _atseaStartToCloseTimeout          = Nothing-    , _atseaTaskPriority                 = Nothing-    , _atseaHeartbeatTimeout             = Nothing-    }---- | The unique id of the activity task.-atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text-atseaActivityId = lens _atseaActivityId (\s a -> s { _atseaActivityId = a })---- | The type of the activity task.-atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType-atseaActivityType =-    lens _atseaActivityType (\s a -> s { _atseaActivityType = a })---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks. This data is not sent to the activity.-atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaControl = lens _atseaControl (\s a -> s { _atseaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision that--- resulted in the scheduling of this activity task. This information can be--- useful for diagnosing problems by tracing back the chain of events leading up--- to this event.-atseaDecisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer-atseaDecisionTaskCompletedEventId =-    lens _atseaDecisionTaskCompletedEventId-        (\s a -> s { _atseaDecisionTaskCompletedEventId = a })---- | The maximum time before which the worker processing this task must report--- progress by calling 'RecordActivityTaskHeartbeat'. If the timeout is exceeded,--- the activity task is automatically timed out. If the worker subsequently--- attempts to record a heartbeat or return a result, it will be ignored.-atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaHeartbeatTimeout =-    lens _atseaHeartbeatTimeout (\s a -> s { _atseaHeartbeatTimeout = a })---- | The input provided to the activity task.-atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaInput = lens _atseaInput (\s a -> s { _atseaInput = a })---- | The maximum amount of time for this activity task.-atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaScheduleToCloseTimeout =-    lens _atseaScheduleToCloseTimeout-        (\s a -> s { _atseaScheduleToCloseTimeout = a })---- | The maximum amount of time the activity task can wait to be assigned to a--- worker.-atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaScheduleToStartTimeout =-    lens _atseaScheduleToStartTimeout-        (\s a -> s { _atseaScheduleToStartTimeout = a })---- | The maximum amount of time a worker may take to process the activity task.-atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaStartToCloseTimeout =-    lens _atseaStartToCloseTimeout-        (\s a -> s { _atseaStartToCloseTimeout = a })---- | The task list in which the activity task has been scheduled.-atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList-atseaTaskList = lens _atseaTaskList (\s a -> s { _atseaTaskList = a })---- | /Optional./ The priority to assign to the scheduled activity task. This will--- override any default priority that was assigned when the activity type was--- registered. If not set, then the priority set on the activity type is used as--- the task priority.------ Valid values are integers that range from Java's 'Integer.MIN_VALUE'--- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaTaskPriority =-    lens _atseaTaskPriority (\s a -> s { _atseaTaskPriority = a })--instance FromJSON ActivityTaskScheduledEventAttributes where-    parseJSON = withObject "ActivityTaskScheduledEventAttributes" $ \o -> ActivityTaskScheduledEventAttributes-        <$> o .:  "activityId"-        <*> o .:  "activityType"-        <*> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "heartbeatTimeout"-        <*> o .:? "input"-        <*> o .:? "scheduleToCloseTimeout"-        <*> o .:? "scheduleToStartTimeout"-        <*> o .:? "startToCloseTimeout"-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"--instance ToJSON ActivityTaskScheduledEventAttributes where-    toJSON ActivityTaskScheduledEventAttributes{..} = object-        [ "activityType"                 .= _atseaActivityType-        , "activityId"                   .= _atseaActivityId-        , "input"                        .= _atseaInput-        , "control"                      .= _atseaControl-        , "scheduleToStartTimeout"       .= _atseaScheduleToStartTimeout-        , "scheduleToCloseTimeout"       .= _atseaScheduleToCloseTimeout-        , "startToCloseTimeout"          .= _atseaStartToCloseTimeout-        , "taskList"                     .= _atseaTaskList-        , "taskPriority"                 .= _atseaTaskPriority-        , "decisionTaskCompletedEventId" .= _atseaDecisionTaskCompletedEventId-        , "heartbeatTimeout"             .= _atseaHeartbeatTimeout-        ]--newtype CloseStatusFilter = CloseStatusFilter-    { _csfStatus :: CloseStatus-    } deriving (Eq, Read, Show)---- | 'CloseStatusFilter' constructor.------ The fields accessible through corresponding lenses are:------ * 'csfStatus' @::@ 'CloseStatus'----closeStatusFilter :: CloseStatus -- ^ 'csfStatus'-                  -> CloseStatusFilter-closeStatusFilter p1 = CloseStatusFilter-    { _csfStatus = p1-    }---- | Required. The close status that must match the close status of an execution--- for it to meet the criteria of this filter.-csfStatus :: Lens' CloseStatusFilter CloseStatus-csfStatus = lens _csfStatus (\s a -> s { _csfStatus = a })--instance FromJSON CloseStatusFilter where-    parseJSON = withObject "CloseStatusFilter" $ \o -> CloseStatusFilter-        <$> o .:  "status"--instance ToJSON CloseStatusFilter where-    toJSON CloseStatusFilter{..} = object-        [ "status" .= _csfStatus-        ]--data WorkflowExecutionTimeoutType-    = StartToClose -- ^ START_TO_CLOSE-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable WorkflowExecutionTimeoutType--instance FromText WorkflowExecutionTimeoutType where-    parser = takeLowerText >>= \case-        "start_to_close" -> pure StartToClose-        e                -> fail $-            "Failure parsing WorkflowExecutionTimeoutType from " ++ show e--instance ToText WorkflowExecutionTimeoutType where-    toText StartToClose = "START_TO_CLOSE"--instance ToByteString WorkflowExecutionTimeoutType-instance ToHeader     WorkflowExecutionTimeoutType-instance ToQuery      WorkflowExecutionTimeoutType--instance FromJSON WorkflowExecutionTimeoutType where-    parseJSON = parseJSONText "WorkflowExecutionTimeoutType"--instance ToJSON WorkflowExecutionTimeoutType where-    toJSON = toJSONText--data ScheduleActivityTaskDecisionAttributes = ScheduleActivityTaskDecisionAttributes-    { _satdaActivityId             :: Text-    , _satdaActivityType           :: ActivityType-    , _satdaControl                :: Maybe Text-    , _satdaHeartbeatTimeout       :: Maybe Text-    , _satdaInput                  :: Maybe Text-    , _satdaScheduleToCloseTimeout :: Maybe Text-    , _satdaScheduleToStartTimeout :: Maybe Text-    , _satdaStartToCloseTimeout    :: Maybe Text-    , _satdaTaskList               :: Maybe TaskList-    , _satdaTaskPriority           :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'ScheduleActivityTaskDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'satdaActivityId' @::@ 'Text'------ * 'satdaActivityType' @::@ 'ActivityType'------ * 'satdaControl' @::@ 'Maybe' 'Text'------ * 'satdaHeartbeatTimeout' @::@ 'Maybe' 'Text'------ * 'satdaInput' @::@ 'Maybe' 'Text'------ * 'satdaScheduleToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'satdaScheduleToStartTimeout' @::@ 'Maybe' 'Text'------ * 'satdaStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'satdaTaskList' @::@ 'Maybe' 'TaskList'------ * 'satdaTaskPriority' @::@ 'Maybe' 'Text'----scheduleActivityTaskDecisionAttributes :: ActivityType -- ^ 'satdaActivityType'-                                       -> Text -- ^ 'satdaActivityId'-                                       -> ScheduleActivityTaskDecisionAttributes-scheduleActivityTaskDecisionAttributes p1 p2 = ScheduleActivityTaskDecisionAttributes-    { _satdaActivityType           = p1-    , _satdaActivityId             = p2-    , _satdaControl                = Nothing-    , _satdaInput                  = Nothing-    , _satdaScheduleToCloseTimeout = Nothing-    , _satdaTaskList               = Nothing-    , _satdaTaskPriority           = Nothing-    , _satdaScheduleToStartTimeout = Nothing-    , _satdaStartToCloseTimeout    = Nothing-    , _satdaHeartbeatTimeout       = Nothing-    }---- | Required. The 'activityId' of the activity task.------ The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.-satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text-satdaActivityId = lens _satdaActivityId (\s a -> s { _satdaActivityId = a })---- | Required. The type of the activity task to schedule.-satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType-satdaActivityType =-    lens _satdaActivityType (\s a -> s { _satdaActivityType = a })---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks. This data is not sent to the activity.-satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaControl = lens _satdaControl (\s a -> s { _satdaControl = a })---- | If set, specifies the maximum time before which a worker processing a task of--- this type must report progress by calling 'RecordActivityTaskHeartbeat'. If the--- timeout is exceeded, the activity task is automatically timed out. If the--- worker subsequently attempts to record a heartbeat or returns a result, it--- will be ignored. This overrides the default heartbeat timeout specified when--- registering the activity type using 'RegisterActivityType'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaHeartbeatTimeout =-    lens _satdaHeartbeatTimeout (\s a -> s { _satdaHeartbeatTimeout = a })---- | The input provided to the activity task.-satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaInput = lens _satdaInput (\s a -> s { _satdaInput = a })---- | The maximum duration for this activity task.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ A schedule-to-close timeout for this activity task must be specified either--- as a default for the activity type or through this field. If neither this--- field is set nor a default schedule-to-close timeout was specified at--- registration time then a fault will be returned.-satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaScheduleToCloseTimeout =-    lens _satdaScheduleToCloseTimeout-        (\s a -> s { _satdaScheduleToCloseTimeout = a })---- | /Optional./ If set, specifies the maximum duration the activity task can wait--- to be assigned to a worker. This overrides the default schedule-to-start--- timeout specified when registering the activity type using 'RegisterActivityType'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ A schedule-to-start timeout for this activity task must be specified either--- as a default for the activity type or through this field. If neither this--- field is set nor a default schedule-to-start timeout was specified at--- registration time then a fault will be returned.-satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaScheduleToStartTimeout =-    lens _satdaScheduleToStartTimeout-        (\s a -> s { _satdaScheduleToStartTimeout = a })---- | If set, specifies the maximum duration a worker may take to process this--- activity task. This overrides the default start-to-close timeout specified--- when registering the activity type using 'RegisterActivityType'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ A start-to-close timeout for this activity task must be specified either as--- a default for the activity type or through this field. If neither this field--- is set nor a default start-to-close timeout was specified at registration--- time then a fault will be returned.-satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaStartToCloseTimeout =-    lens _satdaStartToCloseTimeout-        (\s a -> s { _satdaStartToCloseTimeout = a })---- | If set, specifies the name of the task list in which to schedule the activity--- task. If not specified, the 'defaultTaskList' registered with the activity type--- will be used.------ A task list for this activity task must be specified either as a default for--- the activity type or through this field. If neither this field is set nor a--- default task list was specified at registration time then a fault will be--- returned. The specified string must not start or end with whitespace. It must--- not contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control--- characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the--- literal string quotarnquot.-satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)-satdaTaskList = lens _satdaTaskList (\s a -> s { _satdaTaskList = a })---- | /Optional./ If set, specifies the priority with which the activity task is to--- be assigned to a worker. This overrides the defaultTaskPriority specified--- when registering the activity type using 'RegisterActivityType'. Valid values--- are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaTaskPriority =-    lens _satdaTaskPriority (\s a -> s { _satdaTaskPriority = a })--instance FromJSON ScheduleActivityTaskDecisionAttributes where-    parseJSON = withObject "ScheduleActivityTaskDecisionAttributes" $ \o -> ScheduleActivityTaskDecisionAttributes-        <$> o .:  "activityId"-        <*> o .:  "activityType"-        <*> o .:? "control"-        <*> o .:? "heartbeatTimeout"-        <*> o .:? "input"-        <*> o .:? "scheduleToCloseTimeout"-        <*> o .:? "scheduleToStartTimeout"-        <*> o .:? "startToCloseTimeout"-        <*> o .:? "taskList"-        <*> o .:? "taskPriority"--instance ToJSON ScheduleActivityTaskDecisionAttributes where-    toJSON ScheduleActivityTaskDecisionAttributes{..} = object-        [ "activityType"           .= _satdaActivityType-        , "activityId"             .= _satdaActivityId-        , "control"                .= _satdaControl-        , "input"                  .= _satdaInput-        , "scheduleToCloseTimeout" .= _satdaScheduleToCloseTimeout-        , "taskList"               .= _satdaTaskList-        , "taskPriority"           .= _satdaTaskPriority-        , "scheduleToStartTimeout" .= _satdaScheduleToStartTimeout-        , "startToCloseTimeout"    .= _satdaStartToCloseTimeout-        , "heartbeatTimeout"       .= _satdaHeartbeatTimeout-        ]--data ActivityTypeConfiguration = ActivityTypeConfiguration-    { _atcDefaultTaskHeartbeatTimeout       :: Maybe Text-    , _atcDefaultTaskList                   :: Maybe TaskList-    , _atcDefaultTaskPriority               :: Maybe Text-    , _atcDefaultTaskScheduleToCloseTimeout :: Maybe Text-    , _atcDefaultTaskScheduleToStartTimeout :: Maybe Text-    , _atcDefaultTaskStartToCloseTimeout    :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'ActivityTypeConfiguration' constructor.------ The fields accessible through corresponding lenses are:------ * 'atcDefaultTaskHeartbeatTimeout' @::@ 'Maybe' 'Text'------ * 'atcDefaultTaskList' @::@ 'Maybe' 'TaskList'------ * 'atcDefaultTaskPriority' @::@ 'Maybe' 'Text'------ * 'atcDefaultTaskScheduleToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'atcDefaultTaskScheduleToStartTimeout' @::@ 'Maybe' 'Text'------ * 'atcDefaultTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'----activityTypeConfiguration :: ActivityTypeConfiguration-activityTypeConfiguration = ActivityTypeConfiguration-    { _atcDefaultTaskStartToCloseTimeout    = Nothing-    , _atcDefaultTaskHeartbeatTimeout       = Nothing-    , _atcDefaultTaskList                   = Nothing-    , _atcDefaultTaskPriority               = Nothing-    , _atcDefaultTaskScheduleToStartTimeout = Nothing-    , _atcDefaultTaskScheduleToCloseTimeout = Nothing-    }---- | /Optional./ The default maximum time, in seconds, before which a worker--- processing a task must report progress by calling 'RecordActivityTaskHeartbeat'.------ You can specify this value only when /registering/ an activity type. The--- registered default value can be overridden when you schedule a task through--- the 'ScheduleActivityTask' 'Decision'. If the activity worker subsequently--- attempts to record a heartbeat or returns a result, the activity worker--- receives an 'UnknownResource' fault. In this case, Amazon SWF no longer--- considers the activity task to be valid; the activity worker should clean up--- the activity task.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskHeartbeatTimeout =-    lens _atcDefaultTaskHeartbeatTimeout-        (\s a -> s { _atcDefaultTaskHeartbeatTimeout = a })---- | /Optional./ The default task list specified for this activity type at--- registration. This default is used if a task list is not provided when a task--- is scheduled through the 'ScheduleActivityTask' 'Decision'. You can override the--- default registered task list when scheduling a task through the 'ScheduleActivityTask' 'Decision'.-atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)-atcDefaultTaskList =-    lens _atcDefaultTaskList (\s a -> s { _atcDefaultTaskList = a })---- | /Optional./ The default task priority for tasks of this activity type,--- specified at registration. If not set, then "0" will be used as the default--- priority. This default can be overridden when scheduling an activity task.------ Valid values are integers that range from Java's 'Integer.MIN_VALUE'--- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskPriority =-    lens _atcDefaultTaskPriority (\s a -> s { _atcDefaultTaskPriority = a })---- | /Optional./ The default maximum duration, specified when registering the--- activity type, for tasks of this activity type. You can override this default--- when scheduling a task through the 'ScheduleActivityTask' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskScheduleToCloseTimeout =-    lens _atcDefaultTaskScheduleToCloseTimeout-        (\s a -> s { _atcDefaultTaskScheduleToCloseTimeout = a })---- | /Optional./ The default maximum duration, specified when registering the--- activity type, that a task of an activity type can wait before being assigned--- to a worker. You can override this default when scheduling a task through the 'ScheduleActivityTask' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskScheduleToStartTimeout =-    lens _atcDefaultTaskScheduleToStartTimeout-        (\s a -> s { _atcDefaultTaskScheduleToStartTimeout = a })---- | /Optional./ The default maximum duration for tasks of an activity type--- specified when registering the activity type. You can override this default--- when scheduling a task through the 'ScheduleActivityTask' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskStartToCloseTimeout =-    lens _atcDefaultTaskStartToCloseTimeout-        (\s a -> s { _atcDefaultTaskStartToCloseTimeout = a })--instance FromJSON ActivityTypeConfiguration where-    parseJSON = withObject "ActivityTypeConfiguration" $ \o -> ActivityTypeConfiguration-        <$> o .:? "defaultTaskHeartbeatTimeout"-        <*> o .:? "defaultTaskList"-        <*> o .:? "defaultTaskPriority"-        <*> o .:? "defaultTaskScheduleToCloseTimeout"-        <*> o .:? "defaultTaskScheduleToStartTimeout"-        <*> o .:? "defaultTaskStartToCloseTimeout"--instance ToJSON ActivityTypeConfiguration where-    toJSON ActivityTypeConfiguration{..} = object-        [ "defaultTaskStartToCloseTimeout"    .= _atcDefaultTaskStartToCloseTimeout-        , "defaultTaskHeartbeatTimeout"       .= _atcDefaultTaskHeartbeatTimeout-        , "defaultTaskList"                   .= _atcDefaultTaskList-        , "defaultTaskPriority"               .= _atcDefaultTaskPriority-        , "defaultTaskScheduleToStartTimeout" .= _atcDefaultTaskScheduleToStartTimeout-        , "defaultTaskScheduleToCloseTimeout" .= _atcDefaultTaskScheduleToCloseTimeout-        ]--data ActivityType = ActivityType-    { _atName    :: Text-    , _atVersion :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityType' constructor.------ The fields accessible through corresponding lenses are:------ * 'atName' @::@ 'Text'------ * 'atVersion' @::@ 'Text'----activityType :: Text -- ^ 'atName'-             -> Text -- ^ 'atVersion'-             -> ActivityType-activityType p1 p2 = ActivityType-    { _atName    = p1-    , _atVersion = p2-    }---- | The name of this activity.------ The combination of activity type name and version must be unique within a--- domain.-atName :: Lens' ActivityType Text-atName = lens _atName (\s a -> s { _atName = a })---- | The version of this activity.------ The combination of activity type name and version must be unique with in a--- domain.-atVersion :: Lens' ActivityType Text-atVersion = lens _atVersion (\s a -> s { _atVersion = a })--instance FromJSON ActivityType where-    parseJSON = withObject "ActivityType" $ \o -> ActivityType-        <$> o .:  "name"-        <*> o .:  "version"--instance ToJSON ActivityType where-    toJSON ActivityType{..} = object-        [ "name"    .= _atName-        , "version" .= _atVersion-        ]--data WorkflowTypeInfo = WorkflowTypeInfo-    { _wtiCreationDate    :: POSIX-    , _wtiDeprecationDate :: Maybe POSIX-    , _wtiDescription     :: Maybe Text-    , _wtiStatus          :: RegistrationStatus-    , _wtiWorkflowType    :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'WorkflowTypeInfo' constructor.------ The fields accessible through corresponding lenses are:------ * 'wtiCreationDate' @::@ 'UTCTime'------ * 'wtiDeprecationDate' @::@ 'Maybe' 'UTCTime'------ * 'wtiDescription' @::@ 'Maybe' 'Text'------ * 'wtiStatus' @::@ 'RegistrationStatus'------ * 'wtiWorkflowType' @::@ 'WorkflowType'----workflowTypeInfo :: WorkflowType -- ^ 'wtiWorkflowType'-                 -> RegistrationStatus -- ^ 'wtiStatus'-                 -> UTCTime -- ^ 'wtiCreationDate'-                 -> WorkflowTypeInfo-workflowTypeInfo p1 p2 p3 = WorkflowTypeInfo-    { _wtiWorkflowType    = p1-    , _wtiStatus          = p2-    , _wtiCreationDate    = withIso _Time (const id) p3-    , _wtiDescription     = Nothing-    , _wtiDeprecationDate = Nothing-    }---- | The date when this type was registered.-wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime-wtiCreationDate = lens _wtiCreationDate (\s a -> s { _wtiCreationDate = a }) . _Time---- | If the type is in deprecated state, then it is set to the date when the type--- was deprecated.-wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)-wtiDeprecationDate =-    lens _wtiDeprecationDate (\s a -> s { _wtiDeprecationDate = a })-        . mapping _Time---- | The description of the type registered through 'RegisterWorkflowType'.-wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text)-wtiDescription = lens _wtiDescription (\s a -> s { _wtiDescription = a })---- | The current status of the workflow type.-wtiStatus :: Lens' WorkflowTypeInfo RegistrationStatus-wtiStatus = lens _wtiStatus (\s a -> s { _wtiStatus = a })---- | The workflow type this information is about.-wtiWorkflowType :: Lens' WorkflowTypeInfo WorkflowType-wtiWorkflowType = lens _wtiWorkflowType (\s a -> s { _wtiWorkflowType = a })--instance FromJSON WorkflowTypeInfo where-    parseJSON = withObject "WorkflowTypeInfo" $ \o -> WorkflowTypeInfo-        <$> o .:  "creationDate"-        <*> o .:? "deprecationDate"-        <*> o .:? "description"-        <*> o .:  "status"-        <*> o .:  "workflowType"--instance ToJSON WorkflowTypeInfo where-    toJSON WorkflowTypeInfo{..} = object-        [ "workflowType"    .= _wtiWorkflowType-        , "status"          .= _wtiStatus-        , "description"     .= _wtiDescription-        , "creationDate"    .= _wtiCreationDate-        , "deprecationDate" .= _wtiDeprecationDate-        ]--data ChildWorkflowExecutionCompletedEventAttributes = ChildWorkflowExecutionCompletedEventAttributes-    { _cweceaInitiatedEventId  :: Integer-    , _cweceaResult            :: Maybe Text-    , _cweceaStartedEventId    :: Integer-    , _cweceaWorkflowExecution :: WorkflowExecution-    , _cweceaWorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionCompletedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cweceaInitiatedEventId' @::@ 'Integer'------ * 'cweceaResult' @::@ 'Maybe' 'Text'------ * 'cweceaStartedEventId' @::@ 'Integer'------ * 'cweceaWorkflowExecution' @::@ 'WorkflowExecution'------ * 'cweceaWorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionCompletedEventAttributes :: WorkflowExecution -- ^ 'cweceaWorkflowExecution'-                                               -> WorkflowType -- ^ 'cweceaWorkflowType'-                                               -> Integer -- ^ 'cweceaInitiatedEventId'-                                               -> Integer -- ^ 'cweceaStartedEventId'-                                               -> ChildWorkflowExecutionCompletedEventAttributes-childWorkflowExecutionCompletedEventAttributes p1 p2 p3 p4 = ChildWorkflowExecutionCompletedEventAttributes-    { _cweceaWorkflowExecution = p1-    , _cweceaWorkflowType      = p2-    , _cweceaInitiatedEventId  = p3-    , _cweceaStartedEventId    = p4-    , _cweceaResult            = Nothing-    }---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cweceaInitiatedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer-cweceaInitiatedEventId =-    lens _cweceaInitiatedEventId (\s a -> s { _cweceaInitiatedEventId = a })---- | The result of the child workflow execution (if any).-cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)-cweceaResult = lens _cweceaResult (\s a -> s { _cweceaResult = a })---- | The Id of the 'ChildWorkflowExecutionStarted' event recorded when this child--- workflow execution was started. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-cweceaStartedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer-cweceaStartedEventId =-    lens _cweceaStartedEventId (\s a -> s { _cweceaStartedEventId = a })---- | The child workflow execution that was completed.-cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution-cweceaWorkflowExecution =-    lens _cweceaWorkflowExecution (\s a -> s { _cweceaWorkflowExecution = a })---- | The type of the child workflow execution.-cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType-cweceaWorkflowType =-    lens _cweceaWorkflowType (\s a -> s { _cweceaWorkflowType = a })--instance FromJSON ChildWorkflowExecutionCompletedEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionCompletedEventAttributes" $ \o -> ChildWorkflowExecutionCompletedEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:? "result"-        <*> o .:  "startedEventId"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionCompletedEventAttributes where-    toJSON ChildWorkflowExecutionCompletedEventAttributes{..} = object-        [ "workflowExecution" .= _cweceaWorkflowExecution-        , "workflowType"      .= _cweceaWorkflowType-        , "result"            .= _cweceaResult-        , "initiatedEventId"  .= _cweceaInitiatedEventId-        , "startedEventId"    .= _cweceaStartedEventId-        ]--data WorkflowExecutionOpenCounts = WorkflowExecutionOpenCounts-    { _weocOpenActivityTasks           :: Nat-    , _weocOpenChildWorkflowExecutions :: Nat-    , _weocOpenDecisionTasks           :: Nat-    , _weocOpenTimers                  :: Nat-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecutionOpenCounts' constructor.------ The fields accessible through corresponding lenses are:------ * 'weocOpenActivityTasks' @::@ 'Natural'------ * 'weocOpenChildWorkflowExecutions' @::@ 'Natural'------ * 'weocOpenDecisionTasks' @::@ 'Natural'------ * 'weocOpenTimers' @::@ 'Natural'----workflowExecutionOpenCounts :: Natural -- ^ 'weocOpenActivityTasks'-                            -> Natural -- ^ 'weocOpenDecisionTasks'-                            -> Natural -- ^ 'weocOpenTimers'-                            -> Natural -- ^ 'weocOpenChildWorkflowExecutions'-                            -> WorkflowExecutionOpenCounts-workflowExecutionOpenCounts p1 p2 p3 p4 = WorkflowExecutionOpenCounts-    { _weocOpenActivityTasks           = withIso _Nat (const id) p1-    , _weocOpenDecisionTasks           = withIso _Nat (const id) p2-    , _weocOpenTimers                  = withIso _Nat (const id) p3-    , _weocOpenChildWorkflowExecutions = withIso _Nat (const id) p4-    }---- | The count of activity tasks whose status is OPEN.-weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenActivityTasks =-    lens _weocOpenActivityTasks (\s a -> s { _weocOpenActivityTasks = a })-        . _Nat---- | The count of child workflow executions whose status is OPEN.-weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenChildWorkflowExecutions =-    lens _weocOpenChildWorkflowExecutions-        (\s a -> s { _weocOpenChildWorkflowExecutions = a })-            . _Nat---- | The count of decision tasks whose status is OPEN. A workflow execution can--- have at most one open decision task.-weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenDecisionTasks =-    lens _weocOpenDecisionTasks (\s a -> s { _weocOpenDecisionTasks = a })-        . _Nat---- | The count of timers started by this workflow execution that have not fired--- yet.-weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenTimers = lens _weocOpenTimers (\s a -> s { _weocOpenTimers = a }) . _Nat--instance FromJSON WorkflowExecutionOpenCounts where-    parseJSON = withObject "WorkflowExecutionOpenCounts" $ \o -> WorkflowExecutionOpenCounts-        <$> o .:  "openActivityTasks"-        <*> o .:  "openChildWorkflowExecutions"-        <*> o .:  "openDecisionTasks"-        <*> o .:  "openTimers"--instance ToJSON WorkflowExecutionOpenCounts where-    toJSON WorkflowExecutionOpenCounts{..} = object-        [ "openActivityTasks"           .= _weocOpenActivityTasks-        , "openDecisionTasks"           .= _weocOpenDecisionTasks-        , "openTimers"                  .= _weocOpenTimers-        , "openChildWorkflowExecutions" .= _weocOpenChildWorkflowExecutions-        ]--data RequestCancelActivityTaskFailedCause-    = ActivityIdUnknown     -- ^ ACTIVITY_ID_UNKNOWN-    | OperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable RequestCancelActivityTaskFailedCause--instance FromText RequestCancelActivityTaskFailedCause where-    parser = takeLowerText >>= \case-        "activity_id_unknown"     -> pure ActivityIdUnknown-        "operation_not_permitted" -> pure OperationNotPermitted-        e                         -> fail $-            "Failure parsing RequestCancelActivityTaskFailedCause from " ++ show e--instance ToText RequestCancelActivityTaskFailedCause where-    toText = \case-        ActivityIdUnknown     -> "ACTIVITY_ID_UNKNOWN"-        OperationNotPermitted -> "OPERATION_NOT_PERMITTED"--instance ToByteString RequestCancelActivityTaskFailedCause-instance ToHeader     RequestCancelActivityTaskFailedCause-instance ToQuery      RequestCancelActivityTaskFailedCause--instance FromJSON RequestCancelActivityTaskFailedCause where-    parseJSON = parseJSONText "RequestCancelActivityTaskFailedCause"--instance ToJSON RequestCancelActivityTaskFailedCause where-    toJSON = toJSONText--data ScheduleActivityTaskFailedEventAttributes = ScheduleActivityTaskFailedEventAttributes-    { _satfeaActivityId                   :: Text-    , _satfeaActivityType                 :: ActivityType-    , _satfeaCause                        :: ScheduleActivityTaskFailedCause-    , _satfeaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'ScheduleActivityTaskFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'satfeaActivityId' @::@ 'Text'------ * 'satfeaActivityType' @::@ 'ActivityType'------ * 'satfeaCause' @::@ 'ScheduleActivityTaskFailedCause'------ * 'satfeaDecisionTaskCompletedEventId' @::@ 'Integer'----scheduleActivityTaskFailedEventAttributes :: ActivityType -- ^ 'satfeaActivityType'-                                          -> Text -- ^ 'satfeaActivityId'-                                          -> ScheduleActivityTaskFailedCause -- ^ 'satfeaCause'-                                          -> Integer -- ^ 'satfeaDecisionTaskCompletedEventId'-                                          -> ScheduleActivityTaskFailedEventAttributes-scheduleActivityTaskFailedEventAttributes p1 p2 p3 p4 = ScheduleActivityTaskFailedEventAttributes-    { _satfeaActivityType                 = p1-    , _satfeaActivityId                   = p2-    , _satfeaCause                        = p3-    , _satfeaDecisionTaskCompletedEventId = p4-    }---- | The activityId provided in the 'ScheduleActivityTask' decision that failed.-satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text-satfeaActivityId = lens _satfeaActivityId (\s a -> s { _satfeaActivityId = a })---- | The activity type provided in the 'ScheduleActivityTask' decision that failed.-satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType-satfeaActivityType =-    lens _satfeaActivityType (\s a -> s { _satfeaActivityType = a })---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause-satfeaCause = lens _satfeaCause (\s a -> s { _satfeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision that--- resulted in the scheduling of this activity task. This information can be--- useful for diagnosing problems by tracing back the chain of events leading up--- to this event.-satfeaDecisionTaskCompletedEventId :: Lens' ScheduleActivityTaskFailedEventAttributes Integer-satfeaDecisionTaskCompletedEventId =-    lens _satfeaDecisionTaskCompletedEventId-        (\s a -> s { _satfeaDecisionTaskCompletedEventId = a })--instance FromJSON ScheduleActivityTaskFailedEventAttributes where-    parseJSON = withObject "ScheduleActivityTaskFailedEventAttributes" $ \o -> ScheduleActivityTaskFailedEventAttributes-        <$> o .:  "activityId"-        <*> o .:  "activityType"-        <*> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON ScheduleActivityTaskFailedEventAttributes where-    toJSON ScheduleActivityTaskFailedEventAttributes{..} = object-        [ "activityType"                 .= _satfeaActivityType-        , "activityId"                   .= _satfeaActivityId-        , "cause"                        .= _satfeaCause-        , "decisionTaskCompletedEventId" .= _satfeaDecisionTaskCompletedEventId-        ]--data MarkerRecordedEventAttributes = MarkerRecordedEventAttributes-    { _mreaDecisionTaskCompletedEventId :: Integer-    , _mreaDetails                      :: Maybe Text-    , _mreaMarkerName                   :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'MarkerRecordedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'mreaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'mreaDetails' @::@ 'Maybe' 'Text'------ * 'mreaMarkerName' @::@ 'Text'----markerRecordedEventAttributes :: Text -- ^ 'mreaMarkerName'-                              -> Integer -- ^ 'mreaDecisionTaskCompletedEventId'-                              -> MarkerRecordedEventAttributes-markerRecordedEventAttributes p1 p2 = MarkerRecordedEventAttributes-    { _mreaMarkerName                   = p1-    , _mreaDecisionTaskCompletedEventId = p2-    , _mreaDetails                      = Nothing-    }---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RecordMarker' decision that requested this marker. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-mreaDecisionTaskCompletedEventId :: Lens' MarkerRecordedEventAttributes Integer-mreaDecisionTaskCompletedEventId =-    lens _mreaDecisionTaskCompletedEventId-        (\s a -> s { _mreaDecisionTaskCompletedEventId = a })---- | Details of the marker (if any).-mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)-mreaDetails = lens _mreaDetails (\s a -> s { _mreaDetails = a })---- | The name of the marker.-mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text-mreaMarkerName = lens _mreaMarkerName (\s a -> s { _mreaMarkerName = a })--instance FromJSON MarkerRecordedEventAttributes where-    parseJSON = withObject "MarkerRecordedEventAttributes" $ \o -> MarkerRecordedEventAttributes-        <$> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "details"-        <*> o .:  "markerName"--instance ToJSON MarkerRecordedEventAttributes where-    toJSON MarkerRecordedEventAttributes{..} = object-        [ "markerName"                   .= _mreaMarkerName-        , "details"                      .= _mreaDetails-        , "decisionTaskCompletedEventId" .= _mreaDecisionTaskCompletedEventId-        ]--data SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes-    { _sewedaControl    :: Maybe Text-    , _sewedaInput      :: Maybe Text-    , _sewedaRunId      :: Maybe Text-    , _sewedaSignalName :: Text-    , _sewedaWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'SignalExternalWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'sewedaControl' @::@ 'Maybe' 'Text'------ * 'sewedaInput' @::@ 'Maybe' 'Text'------ * 'sewedaRunId' @::@ 'Maybe' 'Text'------ * 'sewedaSignalName' @::@ 'Text'------ * 'sewedaWorkflowId' @::@ 'Text'----signalExternalWorkflowExecutionDecisionAttributes :: Text -- ^ 'sewedaWorkflowId'-                                                  -> Text -- ^ 'sewedaSignalName'-                                                  -> SignalExternalWorkflowExecutionDecisionAttributes-signalExternalWorkflowExecutionDecisionAttributes p1 p2 = SignalExternalWorkflowExecutionDecisionAttributes-    { _sewedaWorkflowId = p1-    , _sewedaSignalName = p2-    , _sewedaRunId      = Nothing-    , _sewedaInput      = Nothing-    , _sewedaControl    = Nothing-    }---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent decision tasks.-sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaControl = lens _sewedaControl (\s a -> s { _sewedaControl = a })---- | /Optional./ Input data to be provided with the signal. The target workflow--- execution will use the signal name and input data to process the signal.-sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaInput = lens _sewedaInput (\s a -> s { _sewedaInput = a })---- | The 'runId' of the workflow execution to be signaled.-sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaRunId = lens _sewedaRunId (\s a -> s { _sewedaRunId = a })---- | Required. The name of the signal.The target workflow execution will use the--- signal name and input to process the signal.-sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text-sewedaSignalName = lens _sewedaSignalName (\s a -> s { _sewedaSignalName = a })---- | Required. The 'workflowId' of the workflow execution to be signaled.-sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text-sewedaWorkflowId = lens _sewedaWorkflowId (\s a -> s { _sewedaWorkflowId = a })--instance FromJSON SignalExternalWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "SignalExternalWorkflowExecutionDecisionAttributes" $ \o -> SignalExternalWorkflowExecutionDecisionAttributes-        <$> o .:? "control"-        <*> o .:? "input"-        <*> o .:? "runId"-        <*> o .:  "signalName"-        <*> o .:  "workflowId"--instance ToJSON SignalExternalWorkflowExecutionDecisionAttributes where-    toJSON SignalExternalWorkflowExecutionDecisionAttributes{..} = object-        [ "workflowId" .= _sewedaWorkflowId-        , "runId"      .= _sewedaRunId-        , "signalName" .= _sewedaSignalName-        , "input"      .= _sewedaInput-        , "control"    .= _sewedaControl-        ]--data WorkflowExecutionTerminatedCause-    = ChildPolicyApplied -- ^ CHILD_POLICY_APPLIED-    | EventLimitExceeded -- ^ EVENT_LIMIT_EXCEEDED-    | OperatorInitiated  -- ^ OPERATOR_INITIATED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable WorkflowExecutionTerminatedCause--instance FromText WorkflowExecutionTerminatedCause where-    parser = takeLowerText >>= \case-        "child_policy_applied" -> pure ChildPolicyApplied-        "event_limit_exceeded" -> pure EventLimitExceeded-        "operator_initiated"   -> pure OperatorInitiated-        e                      -> fail $-            "Failure parsing WorkflowExecutionTerminatedCause from " ++ show e--instance ToText WorkflowExecutionTerminatedCause where-    toText = \case-        ChildPolicyApplied -> "CHILD_POLICY_APPLIED"-        EventLimitExceeded -> "EVENT_LIMIT_EXCEEDED"-        OperatorInitiated  -> "OPERATOR_INITIATED"--instance ToByteString WorkflowExecutionTerminatedCause-instance ToHeader     WorkflowExecutionTerminatedCause-instance ToQuery      WorkflowExecutionTerminatedCause--instance FromJSON WorkflowExecutionTerminatedCause where-    parseJSON = parseJSONText "WorkflowExecutionTerminatedCause"--instance ToJSON WorkflowExecutionTerminatedCause where-    toJSON = toJSONText--data CancelWorkflowExecutionFailedCause-    = CWEFCOperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-    | CWEFCUnhandledDecision     -- ^ UNHANDLED_DECISION-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable CancelWorkflowExecutionFailedCause--instance FromText CancelWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted" -> pure CWEFCOperationNotPermitted-        "unhandled_decision"      -> pure CWEFCUnhandledDecision-        e                         -> fail $-            "Failure parsing CancelWorkflowExecutionFailedCause from " ++ show e--instance ToText CancelWorkflowExecutionFailedCause where-    toText = \case-        CWEFCOperationNotPermitted -> "OPERATION_NOT_PERMITTED"-        CWEFCUnhandledDecision     -> "UNHANDLED_DECISION"--instance ToByteString CancelWorkflowExecutionFailedCause-instance ToHeader     CancelWorkflowExecutionFailedCause-instance ToQuery      CancelWorkflowExecutionFailedCause--instance FromJSON CancelWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "CancelWorkflowExecutionFailedCause"--instance ToJSON CancelWorkflowExecutionFailedCause where-    toJSON = toJSONText--data SignalExternalWorkflowExecutionFailedCause-    = SEWEFCOperationNotPermitted                       -- ^ OPERATION_NOT_PERMITTED-    | SEWEFCSignalExternalWorkflowExecutionRateExceeded -- ^ SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED-    | SEWEFCUnknownExternalWorkflowExecution            -- ^ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable SignalExternalWorkflowExecutionFailedCause--instance FromText SignalExternalWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted"                          -> pure SEWEFCOperationNotPermitted-        "signal_external_workflow_execution_rate_exceeded" -> pure SEWEFCSignalExternalWorkflowExecutionRateExceeded-        "unknown_external_workflow_execution"              -> pure SEWEFCUnknownExternalWorkflowExecution-        e                                                  -> fail $-            "Failure parsing SignalExternalWorkflowExecutionFailedCause from " ++ show e--instance ToText SignalExternalWorkflowExecutionFailedCause where-    toText = \case-        SEWEFCOperationNotPermitted                       -> "OPERATION_NOT_PERMITTED"-        SEWEFCSignalExternalWorkflowExecutionRateExceeded -> "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"-        SEWEFCUnknownExternalWorkflowExecution            -> "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"--instance ToByteString SignalExternalWorkflowExecutionFailedCause-instance ToHeader     SignalExternalWorkflowExecutionFailedCause-instance ToQuery      SignalExternalWorkflowExecutionFailedCause--instance FromJSON SignalExternalWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "SignalExternalWorkflowExecutionFailedCause"--instance ToJSON SignalExternalWorkflowExecutionFailedCause where-    toJSON = toJSONText--data RecordMarkerDecisionAttributes = RecordMarkerDecisionAttributes-    { _rmdaDetails    :: Maybe Text-    , _rmdaMarkerName :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'RecordMarkerDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rmdaDetails' @::@ 'Maybe' 'Text'------ * 'rmdaMarkerName' @::@ 'Text'----recordMarkerDecisionAttributes :: Text -- ^ 'rmdaMarkerName'-                               -> RecordMarkerDecisionAttributes-recordMarkerDecisionAttributes p1 = RecordMarkerDecisionAttributes-    { _rmdaMarkerName = p1-    , _rmdaDetails    = Nothing-    }---- | /Optional./ details of the marker.-rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)-rmdaDetails = lens _rmdaDetails (\s a -> s { _rmdaDetails = a })---- | Required. The name of the marker.-rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text-rmdaMarkerName = lens _rmdaMarkerName (\s a -> s { _rmdaMarkerName = a })--instance FromJSON RecordMarkerDecisionAttributes where-    parseJSON = withObject "RecordMarkerDecisionAttributes" $ \o -> RecordMarkerDecisionAttributes-        <$> o .:? "details"-        <*> o .:  "markerName"--instance ToJSON RecordMarkerDecisionAttributes where-    toJSON RecordMarkerDecisionAttributes{..} = object-        [ "markerName" .= _rmdaMarkerName-        , "details"    .= _rmdaDetails-        ]--data CompleteWorkflowExecutionFailedEventAttributes = CompleteWorkflowExecutionFailedEventAttributes-    { _cwefeaCause                        :: CompleteWorkflowExecutionFailedCause-    , _cwefeaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'CompleteWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwefeaCause' @::@ 'CompleteWorkflowExecutionFailedCause'------ * 'cwefeaDecisionTaskCompletedEventId' @::@ 'Integer'----completeWorkflowExecutionFailedEventAttributes :: CompleteWorkflowExecutionFailedCause -- ^ 'cwefeaCause'-                                               -> Integer -- ^ 'cwefeaDecisionTaskCompletedEventId'-                                               -> CompleteWorkflowExecutionFailedEventAttributes-completeWorkflowExecutionFailedEventAttributes p1 p2 = CompleteWorkflowExecutionFailedEventAttributes-    { _cwefeaCause                        = p1-    , _cwefeaDecisionTaskCompletedEventId = p2-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause-cwefeaCause = lens _cwefeaCause (\s a -> s { _cwefeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CompleteWorkflowExecution' decision to complete this--- execution. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-cwefeaDecisionTaskCompletedEventId :: Lens' CompleteWorkflowExecutionFailedEventAttributes Integer-cwefeaDecisionTaskCompletedEventId =-    lens _cwefeaDecisionTaskCompletedEventId-        (\s a -> s { _cwefeaDecisionTaskCompletedEventId = a })--instance FromJSON CompleteWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "CompleteWorkflowExecutionFailedEventAttributes" $ \o -> CompleteWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON CompleteWorkflowExecutionFailedEventAttributes where-    toJSON CompleteWorkflowExecutionFailedEventAttributes{..} = object-        [ "cause"                        .= _cwefeaCause-        , "decisionTaskCompletedEventId" .= _cwefeaDecisionTaskCompletedEventId-        ]--data StartTimerDecisionAttributes = StartTimerDecisionAttributes-    { _stdaControl            :: Maybe Text-    , _stdaStartToFireTimeout :: Text-    , _stdaTimerId            :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'StartTimerDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'stdaControl' @::@ 'Maybe' 'Text'------ * 'stdaStartToFireTimeout' @::@ 'Text'------ * 'stdaTimerId' @::@ 'Text'----startTimerDecisionAttributes :: Text -- ^ 'stdaTimerId'-                             -> Text -- ^ 'stdaStartToFireTimeout'-                             -> StartTimerDecisionAttributes-startTimerDecisionAttributes p1 p2 = StartTimerDecisionAttributes-    { _stdaTimerId            = p1-    , _stdaStartToFireTimeout = p2-    , _stdaControl            = Nothing-    }---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks.-stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)-stdaControl = lens _stdaControl (\s a -> s { _stdaControl = a })---- | Required. The duration to wait before firing the timer.------ The duration is specified in seconds; an integer greater than or equal to 0.-stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text-stdaStartToFireTimeout =-    lens _stdaStartToFireTimeout (\s a -> s { _stdaStartToFireTimeout = a })---- | Required. The unique Id of the timer.------ The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.-stdaTimerId :: Lens' StartTimerDecisionAttributes Text-stdaTimerId = lens _stdaTimerId (\s a -> s { _stdaTimerId = a })--instance FromJSON StartTimerDecisionAttributes where-    parseJSON = withObject "StartTimerDecisionAttributes" $ \o -> StartTimerDecisionAttributes-        <$> o .:? "control"-        <*> o .:  "startToFireTimeout"-        <*> o .:  "timerId"--instance ToJSON StartTimerDecisionAttributes where-    toJSON StartTimerDecisionAttributes{..} = object-        [ "timerId"            .= _stdaTimerId-        , "control"            .= _stdaControl-        , "startToFireTimeout" .= _stdaStartToFireTimeout-        ]--data DecisionType-    = CancelTimer                            -- ^ CancelTimer-    | CancelWorkflowExecution                -- ^ CancelWorkflowExecution-    | CompleteWorkflowExecution              -- ^ CompleteWorkflowExecution-    | ContinueAsNewWorkflowExecution         -- ^ ContinueAsNewWorkflowExecution-    | FailWorkflowExecution                  -- ^ FailWorkflowExecution-    | RecordMarker                           -- ^ RecordMarker-    | RequestCancelActivityTask              -- ^ RequestCancelActivityTask-    | RequestCancelExternalWorkflowExecution -- ^ RequestCancelExternalWorkflowExecution-    | ScheduleActivityTask                   -- ^ ScheduleActivityTask-    | SignalExternalWorkflowExecution        -- ^ SignalExternalWorkflowExecution-    | StartChildWorkflowExecution            -- ^ StartChildWorkflowExecution-    | StartTimer                             -- ^ StartTimer-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable DecisionType--instance FromText DecisionType where-    parser = takeLowerText >>= \case-        "canceltimer"                            -> pure CancelTimer-        "cancelworkflowexecution"                -> pure CancelWorkflowExecution-        "completeworkflowexecution"              -> pure CompleteWorkflowExecution-        "continueasnewworkflowexecution"         -> pure ContinueAsNewWorkflowExecution-        "failworkflowexecution"                  -> pure FailWorkflowExecution-        "recordmarker"                           -> pure RecordMarker-        "requestcancelactivitytask"              -> pure RequestCancelActivityTask-        "requestcancelexternalworkflowexecution" -> pure RequestCancelExternalWorkflowExecution-        "scheduleactivitytask"                   -> pure ScheduleActivityTask-        "signalexternalworkflowexecution"        -> pure SignalExternalWorkflowExecution-        "startchildworkflowexecution"            -> pure StartChildWorkflowExecution-        "starttimer"                             -> pure StartTimer-        e                                        -> fail $-            "Failure parsing DecisionType from " ++ show e--instance ToText DecisionType where-    toText = \case-        CancelTimer                            -> "CancelTimer"-        CancelWorkflowExecution                -> "CancelWorkflowExecution"-        CompleteWorkflowExecution              -> "CompleteWorkflowExecution"-        ContinueAsNewWorkflowExecution         -> "ContinueAsNewWorkflowExecution"-        FailWorkflowExecution                  -> "FailWorkflowExecution"-        RecordMarker                           -> "RecordMarker"-        RequestCancelActivityTask              -> "RequestCancelActivityTask"-        RequestCancelExternalWorkflowExecution -> "RequestCancelExternalWorkflowExecution"-        ScheduleActivityTask                   -> "ScheduleActivityTask"-        SignalExternalWorkflowExecution        -> "SignalExternalWorkflowExecution"-        StartChildWorkflowExecution            -> "StartChildWorkflowExecution"-        StartTimer                             -> "StartTimer"--instance ToByteString DecisionType-instance ToHeader     DecisionType-instance ToQuery      DecisionType--instance FromJSON DecisionType where-    parseJSON = parseJSONText "DecisionType"--instance ToJSON DecisionType where-    toJSON = toJSONText--data RequestCancelExternalWorkflowExecutionFailedEventAttributes = RequestCancelExternalWorkflowExecutionFailedEventAttributes-    { _rcewefeaCause                        :: RequestCancelExternalWorkflowExecutionFailedCause-    , _rcewefeaControl                      :: Maybe Text-    , _rcewefeaDecisionTaskCompletedEventId :: Integer-    , _rcewefeaInitiatedEventId             :: Integer-    , _rcewefeaRunId                        :: Maybe Text-    , _rcewefeaWorkflowId                   :: Text-    } deriving (Eq, Read, Show)---- | 'RequestCancelExternalWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rcewefeaCause' @::@ 'RequestCancelExternalWorkflowExecutionFailedCause'------ * 'rcewefeaControl' @::@ 'Maybe' 'Text'------ * 'rcewefeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'rcewefeaInitiatedEventId' @::@ 'Integer'------ * 'rcewefeaRunId' @::@ 'Maybe' 'Text'------ * 'rcewefeaWorkflowId' @::@ 'Text'----requestCancelExternalWorkflowExecutionFailedEventAttributes :: Text -- ^ 'rcewefeaWorkflowId'-                                                            -> RequestCancelExternalWorkflowExecutionFailedCause -- ^ 'rcewefeaCause'-                                                            -> Integer -- ^ 'rcewefeaInitiatedEventId'-                                                            -> Integer -- ^ 'rcewefeaDecisionTaskCompletedEventId'-                                                            -> RequestCancelExternalWorkflowExecutionFailedEventAttributes-requestCancelExternalWorkflowExecutionFailedEventAttributes p1 p2 p3 p4 = RequestCancelExternalWorkflowExecutionFailedEventAttributes-    { _rcewefeaWorkflowId                   = p1-    , _rcewefeaCause                        = p2-    , _rcewefeaInitiatedEventId             = p3-    , _rcewefeaDecisionTaskCompletedEventId = p4-    , _rcewefeaRunId                        = Nothing-    , _rcewefeaControl                      = Nothing-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause-rcewefeaCause = lens _rcewefeaCause (\s a -> s { _rcewefeaCause = a })--rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-rcewefeaControl = lens _rcewefeaControl (\s a -> s { _rcewefeaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RequestCancelExternalWorkflowExecution' decision for this--- cancellation request. This information can be useful for diagnosing problems--- by tracing back the chain of events leading up to this event.-rcewefeaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer-rcewefeaDecisionTaskCompletedEventId =-    lens _rcewefeaDecisionTaskCompletedEventId-        (\s a -> s { _rcewefeaDecisionTaskCompletedEventId = a })---- | The id of the 'RequestCancelExternalWorkflowExecutionInitiated' event--- corresponding to the 'RequestCancelExternalWorkflowExecution' decision to--- cancel this external workflow execution. This information can be useful for--- diagnosing problems by tracing back the chain of events leading up to this--- event.-rcewefeaInitiatedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer-rcewefeaInitiatedEventId =-    lens _rcewefeaInitiatedEventId-        (\s a -> s { _rcewefeaInitiatedEventId = a })---- | The 'runId' of the external workflow execution.-rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-rcewefeaRunId = lens _rcewefeaRunId (\s a -> s { _rcewefeaRunId = a })---- | The 'workflowId' of the external workflow to which the cancel request was to be--- delivered.-rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text-rcewefeaWorkflowId =-    lens _rcewefeaWorkflowId (\s a -> s { _rcewefeaWorkflowId = a })--instance FromJSON RequestCancelExternalWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "RequestCancelExternalWorkflowExecutionFailedEventAttributes" $ \o -> RequestCancelExternalWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "initiatedEventId"-        <*> o .:? "runId"-        <*> o .:  "workflowId"--instance ToJSON RequestCancelExternalWorkflowExecutionFailedEventAttributes where-    toJSON RequestCancelExternalWorkflowExecutionFailedEventAttributes{..} = object-        [ "workflowId"                   .= _rcewefeaWorkflowId-        , "runId"                        .= _rcewefeaRunId-        , "cause"                        .= _rcewefeaCause-        , "initiatedEventId"             .= _rcewefeaInitiatedEventId-        , "decisionTaskCompletedEventId" .= _rcewefeaDecisionTaskCompletedEventId-        , "control"                      .= _rcewefeaControl-        ]--data ActivityTypeInfo = ActivityTypeInfo-    { _atiActivityType    :: ActivityType-    , _atiCreationDate    :: POSIX-    , _atiDeprecationDate :: Maybe POSIX-    , _atiDescription     :: Maybe Text-    , _atiStatus          :: RegistrationStatus-    } deriving (Eq, Read, Show)---- | 'ActivityTypeInfo' constructor.------ The fields accessible through corresponding lenses are:------ * 'atiActivityType' @::@ 'ActivityType'------ * 'atiCreationDate' @::@ 'UTCTime'------ * 'atiDeprecationDate' @::@ 'Maybe' 'UTCTime'------ * 'atiDescription' @::@ 'Maybe' 'Text'------ * 'atiStatus' @::@ 'RegistrationStatus'----activityTypeInfo :: ActivityType -- ^ 'atiActivityType'-                 -> RegistrationStatus -- ^ 'atiStatus'-                 -> UTCTime -- ^ 'atiCreationDate'-                 -> ActivityTypeInfo-activityTypeInfo p1 p2 p3 = ActivityTypeInfo-    { _atiActivityType    = p1-    , _atiStatus          = p2-    , _atiCreationDate    = withIso _Time (const id) p3-    , _atiDescription     = Nothing-    , _atiDeprecationDate = Nothing-    }---- | The 'ActivityType' type structure representing the activity type.-atiActivityType :: Lens' ActivityTypeInfo ActivityType-atiActivityType = lens _atiActivityType (\s a -> s { _atiActivityType = a })---- | The date and time this activity type was created through 'RegisterActivityType'.-atiCreationDate :: Lens' ActivityTypeInfo UTCTime-atiCreationDate = lens _atiCreationDate (\s a -> s { _atiCreationDate = a }) . _Time---- | If DEPRECATED, the date and time 'DeprecateActivityType' was called.-atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)-atiDeprecationDate =-    lens _atiDeprecationDate (\s a -> s { _atiDeprecationDate = a })-        . mapping _Time---- | The description of the activity type provided in 'RegisterActivityType'.-atiDescription :: Lens' ActivityTypeInfo (Maybe Text)-atiDescription = lens _atiDescription (\s a -> s { _atiDescription = a })---- | The current status of the activity type.-atiStatus :: Lens' ActivityTypeInfo RegistrationStatus-atiStatus = lens _atiStatus (\s a -> s { _atiStatus = a })--instance FromJSON ActivityTypeInfo where-    parseJSON = withObject "ActivityTypeInfo" $ \o -> ActivityTypeInfo-        <$> o .:  "activityType"-        <*> o .:  "creationDate"-        <*> o .:? "deprecationDate"-        <*> o .:? "description"-        <*> o .:  "status"--instance ToJSON ActivityTypeInfo where-    toJSON ActivityTypeInfo{..} = object-        [ "activityType"    .= _atiActivityType-        , "status"          .= _atiStatus-        , "description"     .= _atiDescription-        , "creationDate"    .= _atiCreationDate-        , "deprecationDate" .= _atiDeprecationDate-        ]--data TimerCanceledEventAttributes = TimerCanceledEventAttributes-    { _tceaDecisionTaskCompletedEventId :: Integer-    , _tceaStartedEventId               :: Integer-    , _tceaTimerId                      :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'TimerCanceledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'tceaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'tceaStartedEventId' @::@ 'Integer'------ * 'tceaTimerId' @::@ 'Text'----timerCanceledEventAttributes :: Text -- ^ 'tceaTimerId'-                             -> Integer -- ^ 'tceaStartedEventId'-                             -> Integer -- ^ 'tceaDecisionTaskCompletedEventId'-                             -> TimerCanceledEventAttributes-timerCanceledEventAttributes p1 p2 p3 = TimerCanceledEventAttributes-    { _tceaTimerId                      = p1-    , _tceaStartedEventId               = p2-    , _tceaDecisionTaskCompletedEventId = p3-    }---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CancelTimer' decision to cancel this timer. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-tceaDecisionTaskCompletedEventId :: Lens' TimerCanceledEventAttributes Integer-tceaDecisionTaskCompletedEventId =-    lens _tceaDecisionTaskCompletedEventId-        (\s a -> s { _tceaDecisionTaskCompletedEventId = a })---- | The id of the 'TimerStarted' event that was recorded when this timer was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-tceaStartedEventId :: Lens' TimerCanceledEventAttributes Integer-tceaStartedEventId =-    lens _tceaStartedEventId (\s a -> s { _tceaStartedEventId = a })---- | The unique Id of the timer that was canceled.-tceaTimerId :: Lens' TimerCanceledEventAttributes Text-tceaTimerId = lens _tceaTimerId (\s a -> s { _tceaTimerId = a })--instance FromJSON TimerCanceledEventAttributes where-    parseJSON = withObject "TimerCanceledEventAttributes" $ \o -> TimerCanceledEventAttributes-        <$> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "timerId"--instance ToJSON TimerCanceledEventAttributes where-    toJSON TimerCanceledEventAttributes{..} = object-        [ "timerId"                      .= _tceaTimerId-        , "startedEventId"               .= _tceaStartedEventId-        , "decisionTaskCompletedEventId" .= _tceaDecisionTaskCompletedEventId-        ]--data WorkflowExecutionStartedEventAttributes = WorkflowExecutionStartedEventAttributes-    { _weseaChildPolicy                  :: ChildPolicy-    , _weseaContinuedExecutionRunId      :: Maybe Text-    , _weseaExecutionStartToCloseTimeout :: Maybe Text-    , _weseaInput                        :: Maybe Text-    , _weseaParentInitiatedEventId       :: Maybe Integer-    , _weseaParentWorkflowExecution      :: Maybe WorkflowExecution-    , _weseaTagList                      :: List "tagList" Text-    , _weseaTaskList                     :: TaskList-    , _weseaTaskPriority                 :: Maybe Text-    , _weseaTaskStartToCloseTimeout      :: Maybe Text-    , _weseaWorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionStartedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'weseaChildPolicy' @::@ 'ChildPolicy'------ * 'weseaContinuedExecutionRunId' @::@ 'Maybe' 'Text'------ * 'weseaExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'weseaInput' @::@ 'Maybe' 'Text'------ * 'weseaParentInitiatedEventId' @::@ 'Maybe' 'Integer'------ * 'weseaParentWorkflowExecution' @::@ 'Maybe' 'WorkflowExecution'------ * 'weseaTagList' @::@ ['Text']------ * 'weseaTaskList' @::@ 'TaskList'------ * 'weseaTaskPriority' @::@ 'Maybe' 'Text'------ * 'weseaTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'weseaWorkflowType' @::@ 'WorkflowType'----workflowExecutionStartedEventAttributes :: ChildPolicy -- ^ 'weseaChildPolicy'-                                        -> TaskList -- ^ 'weseaTaskList'-                                        -> WorkflowType -- ^ 'weseaWorkflowType'-                                        -> WorkflowExecutionStartedEventAttributes-workflowExecutionStartedEventAttributes p1 p2 p3 = WorkflowExecutionStartedEventAttributes-    { _weseaChildPolicy                  = p1-    , _weseaTaskList                     = p2-    , _weseaWorkflowType                 = p3-    , _weseaInput                        = Nothing-    , _weseaExecutionStartToCloseTimeout = Nothing-    , _weseaTaskStartToCloseTimeout      = Nothing-    , _weseaTagList                      = mempty-    , _weseaTaskPriority                 = Nothing-    , _weseaContinuedExecutionRunId      = Nothing-    , _weseaParentWorkflowExecution      = Nothing-    , _weseaParentInitiatedEventId       = Nothing-    }---- | The policy to use for the child workflow executions if this workflow--- execution is terminated, by calling the 'TerminateWorkflowExecution' action--- explicitly or due to an expired timeout.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy-weseaChildPolicy = lens _weseaChildPolicy (\s a -> s { _weseaChildPolicy = a })---- | If this workflow execution was started due to a 'ContinueAsNewWorkflowExecution'--- decision, then it contains the 'runId' of the previous workflow execution that--- was closed and continued as this execution.-weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaContinuedExecutionRunId =-    lens _weseaContinuedExecutionRunId-        (\s a -> s { _weseaContinuedExecutionRunId = a })---- | The maximum duration for this workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaExecutionStartToCloseTimeout =-    lens _weseaExecutionStartToCloseTimeout-        (\s a -> s { _weseaExecutionStartToCloseTimeout = a })---- | The input provided to the workflow execution (if any).-weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaInput = lens _weseaInput (\s a -> s { _weseaInput = a })---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this workflow execution. The--- source event with this Id can be found in the history of the source workflow--- execution. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-weseaParentInitiatedEventId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Integer)-weseaParentInitiatedEventId =-    lens _weseaParentInitiatedEventId-        (\s a -> s { _weseaParentInitiatedEventId = a })---- | The source workflow execution that started this workflow execution. The--- member is not set if the workflow execution was not started by a workflow.-weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)-weseaParentWorkflowExecution =-    lens _weseaParentWorkflowExecution-        (\s a -> s { _weseaParentWorkflowExecution = a })---- | The list of tags associated with this workflow execution. An execution can--- have up to 5 tags.-weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]-weseaTagList = lens _weseaTagList (\s a -> s { _weseaTagList = a }) . _List---- | The name of the task list for scheduling the decision tasks for this workflow--- execution.-weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList-weseaTaskList = lens _weseaTaskList (\s a -> s { _weseaTaskList = a })--weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaTaskPriority =-    lens _weseaTaskPriority (\s a -> s { _weseaTaskPriority = a })---- | The maximum duration of decision tasks for this workflow type.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaTaskStartToCloseTimeout =-    lens _weseaTaskStartToCloseTimeout-        (\s a -> s { _weseaTaskStartToCloseTimeout = a })---- | The workflow type of this execution.-weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType-weseaWorkflowType =-    lens _weseaWorkflowType (\s a -> s { _weseaWorkflowType = a })--instance FromJSON WorkflowExecutionStartedEventAttributes where-    parseJSON = withObject "WorkflowExecutionStartedEventAttributes" $ \o -> WorkflowExecutionStartedEventAttributes-        <$> o .:  "childPolicy"-        <*> o .:? "continuedExecutionRunId"-        <*> o .:? "executionStartToCloseTimeout"-        <*> o .:? "input"-        <*> o .:? "parentInitiatedEventId"-        <*> o .:? "parentWorkflowExecution"-        <*> o .:? "tagList" .!= mempty-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"-        <*> o .:? "taskStartToCloseTimeout"-        <*> o .:  "workflowType"--instance ToJSON WorkflowExecutionStartedEventAttributes where-    toJSON WorkflowExecutionStartedEventAttributes{..} = object-        [ "input"                        .= _weseaInput-        , "executionStartToCloseTimeout" .= _weseaExecutionStartToCloseTimeout-        , "taskStartToCloseTimeout"      .= _weseaTaskStartToCloseTimeout-        , "childPolicy"                  .= _weseaChildPolicy-        , "taskList"                     .= _weseaTaskList-        , "workflowType"                 .= _weseaWorkflowType-        , "tagList"                      .= _weseaTagList-        , "taskPriority"                 .= _weseaTaskPriority-        , "continuedExecutionRunId"      .= _weseaContinuedExecutionRunId-        , "parentWorkflowExecution"      .= _weseaParentWorkflowExecution-        , "parentInitiatedEventId"       .= _weseaParentInitiatedEventId-        ]--data WorkflowTypeConfiguration = WorkflowTypeConfiguration-    { _wtcDefaultChildPolicy                  :: Maybe ChildPolicy-    , _wtcDefaultExecutionStartToCloseTimeout :: Maybe Text-    , _wtcDefaultTaskList                     :: Maybe TaskList-    , _wtcDefaultTaskPriority                 :: Maybe Text-    , _wtcDefaultTaskStartToCloseTimeout      :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'WorkflowTypeConfiguration' constructor.------ The fields accessible through corresponding lenses are:------ * 'wtcDefaultChildPolicy' @::@ 'Maybe' 'ChildPolicy'------ * 'wtcDefaultExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'wtcDefaultTaskList' @::@ 'Maybe' 'TaskList'------ * 'wtcDefaultTaskPriority' @::@ 'Maybe' 'Text'------ * 'wtcDefaultTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'----workflowTypeConfiguration :: WorkflowTypeConfiguration-workflowTypeConfiguration = WorkflowTypeConfiguration-    { _wtcDefaultTaskStartToCloseTimeout      = Nothing-    , _wtcDefaultExecutionStartToCloseTimeout = Nothing-    , _wtcDefaultTaskList                     = Nothing-    , _wtcDefaultTaskPriority                 = Nothing-    , _wtcDefaultChildPolicy                  = Nothing-    }---- | /Optional./ The default policy to use for the child workflow executions when a--- workflow execution of this type is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be--- overridden when starting a workflow execution using the 'StartWorkflowExecution'--- action or the 'StartChildWorkflowExecution' 'Decision'.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)-wtcDefaultChildPolicy =-    lens _wtcDefaultChildPolicy (\s a -> s { _wtcDefaultChildPolicy = a })---- | /Optional./ The default maximum duration, specified when registering the--- workflow type, for executions of this workflow type. This default can be--- overridden when starting a workflow execution using the 'StartWorkflowExecution'--- action or the 'StartChildWorkflowExecution' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultExecutionStartToCloseTimeout =-    lens _wtcDefaultExecutionStartToCloseTimeout-        (\s a -> s { _wtcDefaultExecutionStartToCloseTimeout = a })---- | /Optional./ The default task list, specified when registering the workflow--- type, for decisions tasks scheduled for workflow executions of this type.--- This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the 'StartChildWorkflowExecution' 'Decision'.-wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)-wtcDefaultTaskList =-    lens _wtcDefaultTaskList (\s a -> s { _wtcDefaultTaskList = a })---- | /Optional./ The default task priority, specified when registering the workflow--- type, for all decision tasks of this workflow type. This default can be--- overridden when starting a workflow execution using the 'StartWorkflowExecution'--- action or the 'StartChildWorkflowExecution' decision.------ Valid values are integers that range from Java's 'Integer.MIN_VALUE'--- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultTaskPriority =-    lens _wtcDefaultTaskPriority (\s a -> s { _wtcDefaultTaskPriority = a })---- | /Optional./ The default maximum duration, specified when registering the--- workflow type, that a decision task for executions of this workflow type--- might take before returning completion or failure. If the task does not close--- in the specified time then the task is automatically timed out and--- rescheduled. If the decider eventually reports a completion or failure, it is--- ignored. This default can be overridden when starting a workflow execution--- using the 'StartWorkflowExecution' action or the 'StartChildWorkflowExecution' 'Decision'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultTaskStartToCloseTimeout =-    lens _wtcDefaultTaskStartToCloseTimeout-        (\s a -> s { _wtcDefaultTaskStartToCloseTimeout = a })--instance FromJSON WorkflowTypeConfiguration where-    parseJSON = withObject "WorkflowTypeConfiguration" $ \o -> WorkflowTypeConfiguration-        <$> o .:? "defaultChildPolicy"-        <*> o .:? "defaultExecutionStartToCloseTimeout"-        <*> o .:? "defaultTaskList"-        <*> o .:? "defaultTaskPriority"-        <*> o .:? "defaultTaskStartToCloseTimeout"--instance ToJSON WorkflowTypeConfiguration where-    toJSON WorkflowTypeConfiguration{..} = object-        [ "defaultTaskStartToCloseTimeout"      .= _wtcDefaultTaskStartToCloseTimeout-        , "defaultExecutionStartToCloseTimeout" .= _wtcDefaultExecutionStartToCloseTimeout-        , "defaultTaskList"                     .= _wtcDefaultTaskList-        , "defaultTaskPriority"                 .= _wtcDefaultTaskPriority-        , "defaultChildPolicy"                  .= _wtcDefaultChildPolicy-        ]--data ActivityTaskTimeoutType-    = ATTTHeartbeat       -- ^ HEARTBEAT-    | ATTTScheduleToClose -- ^ SCHEDULE_TO_CLOSE-    | ATTTScheduleToStart -- ^ SCHEDULE_TO_START-    | ATTTStartToClose    -- ^ START_TO_CLOSE-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable ActivityTaskTimeoutType--instance FromText ActivityTaskTimeoutType where-    parser = takeLowerText >>= \case-        "heartbeat"         -> pure ATTTHeartbeat-        "schedule_to_close" -> pure ATTTScheduleToClose-        "schedule_to_start" -> pure ATTTScheduleToStart-        "start_to_close"    -> pure ATTTStartToClose-        e                   -> fail $-            "Failure parsing ActivityTaskTimeoutType from " ++ show e--instance ToText ActivityTaskTimeoutType where-    toText = \case-        ATTTHeartbeat       -> "HEARTBEAT"-        ATTTScheduleToClose -> "SCHEDULE_TO_CLOSE"-        ATTTScheduleToStart -> "SCHEDULE_TO_START"-        ATTTStartToClose    -> "START_TO_CLOSE"--instance ToByteString ActivityTaskTimeoutType-instance ToHeader     ActivityTaskTimeoutType-instance ToQuery      ActivityTaskTimeoutType--instance FromJSON ActivityTaskTimeoutType where-    parseJSON = parseJSONText "ActivityTaskTimeoutType"--instance ToJSON ActivityTaskTimeoutType where-    toJSON = toJSONText--data WorkflowType = WorkflowType-    { _wtName    :: Text-    , _wtVersion :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowType' constructor.------ The fields accessible through corresponding lenses are:------ * 'wtName' @::@ 'Text'------ * 'wtVersion' @::@ 'Text'----workflowType :: Text -- ^ 'wtName'-             -> Text -- ^ 'wtVersion'-             -> WorkflowType-workflowType p1 p2 = WorkflowType-    { _wtName    = p1-    , _wtVersion = p2-    }---- | Required. The name of the workflow type.------ The combination of workflow type name and version must be unique with in a--- domain.-wtName :: Lens' WorkflowType Text-wtName = lens _wtName (\s a -> s { _wtName = a })---- | Required. The version of the workflow type.------ The combination of workflow type name and version must be unique with in a--- domain.-wtVersion :: Lens' WorkflowType Text-wtVersion = lens _wtVersion (\s a -> s { _wtVersion = a })--instance FromJSON WorkflowType where-    parseJSON = withObject "WorkflowType" $ \o -> WorkflowType-        <$> o .:  "name"-        <*> o .:  "version"--instance ToJSON WorkflowType where-    toJSON WorkflowType{..} = object-        [ "name"    .= _wtName-        , "version" .= _wtVersion-        ]--data ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes-    { _atceaResult           :: Maybe Text-    , _atceaScheduledEventId :: Integer-    , _atceaStartedEventId   :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityTaskCompletedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atceaResult' @::@ 'Maybe' 'Text'------ * 'atceaScheduledEventId' @::@ 'Integer'------ * 'atceaStartedEventId' @::@ 'Integer'----activityTaskCompletedEventAttributes :: Integer -- ^ 'atceaScheduledEventId'-                                     -> Integer -- ^ 'atceaStartedEventId'-                                     -> ActivityTaskCompletedEventAttributes-activityTaskCompletedEventAttributes p1 p2 = ActivityTaskCompletedEventAttributes-    { _atceaScheduledEventId = p1-    , _atceaStartedEventId   = p2-    , _atceaResult           = Nothing-    }---- | The results of the activity task (if any).-atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)-atceaResult = lens _atceaResult (\s a -> s { _atceaResult = a })---- | The id of the 'ActivityTaskScheduled' event that was recorded when this--- activity task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-atceaScheduledEventId :: Lens' ActivityTaskCompletedEventAttributes Integer-atceaScheduledEventId =-    lens _atceaScheduledEventId (\s a -> s { _atceaScheduledEventId = a })---- | The Id of the 'ActivityTaskStarted' event recorded when this activity task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-atceaStartedEventId :: Lens' ActivityTaskCompletedEventAttributes Integer-atceaStartedEventId =-    lens _atceaStartedEventId (\s a -> s { _atceaStartedEventId = a })--instance FromJSON ActivityTaskCompletedEventAttributes where-    parseJSON = withObject "ActivityTaskCompletedEventAttributes" $ \o -> ActivityTaskCompletedEventAttributes-        <$> o .:? "result"-        <*> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"--instance ToJSON ActivityTaskCompletedEventAttributes where-    toJSON ActivityTaskCompletedEventAttributes{..} = object-        [ "result"           .= _atceaResult-        , "scheduledEventId" .= _atceaScheduledEventId-        , "startedEventId"   .= _atceaStartedEventId-        ]--data ExecutionStatus-    = Closed -- ^ CLOSED-    | Open   -- ^ OPEN-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable ExecutionStatus--instance FromText ExecutionStatus where-    parser = takeLowerText >>= \case-        "closed" -> pure Closed-        "open"   -> pure Open-        e        -> fail $-            "Failure parsing ExecutionStatus from " ++ show e--instance ToText ExecutionStatus where-    toText = \case-        Closed -> "CLOSED"-        Open   -> "OPEN"--instance ToByteString ExecutionStatus-instance ToHeader     ExecutionStatus-instance ToQuery      ExecutionStatus--instance FromJSON ExecutionStatus where-    parseJSON = parseJSONText "ExecutionStatus"--instance ToJSON ExecutionStatus where-    toJSON = toJSONText--data DecisionTaskTimeoutType-    = DTTTStartToClose -- ^ START_TO_CLOSE-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable DecisionTaskTimeoutType--instance FromText DecisionTaskTimeoutType where-    parser = takeLowerText >>= \case-        "start_to_close" -> pure DTTTStartToClose-        e                -> fail $-            "Failure parsing DecisionTaskTimeoutType from " ++ show e--instance ToText DecisionTaskTimeoutType where-    toText DTTTStartToClose = "START_TO_CLOSE"--instance ToByteString DecisionTaskTimeoutType-instance ToHeader     DecisionTaskTimeoutType-instance ToQuery      DecisionTaskTimeoutType--instance FromJSON DecisionTaskTimeoutType where-    parseJSON = parseJSONText "DecisionTaskTimeoutType"--instance ToJSON DecisionTaskTimeoutType where-    toJSON = toJSONText--data WorkflowExecutionCancelRequestedCause-    = WECRCChildPolicyApplied -- ^ CHILD_POLICY_APPLIED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable WorkflowExecutionCancelRequestedCause--instance FromText WorkflowExecutionCancelRequestedCause where-    parser = takeLowerText >>= \case-        "child_policy_applied" -> pure WECRCChildPolicyApplied-        e                      -> fail $-            "Failure parsing WorkflowExecutionCancelRequestedCause from " ++ show e--instance ToText WorkflowExecutionCancelRequestedCause where-    toText WECRCChildPolicyApplied = "CHILD_POLICY_APPLIED"--instance ToByteString WorkflowExecutionCancelRequestedCause-instance ToHeader     WorkflowExecutionCancelRequestedCause-instance ToQuery      WorkflowExecutionCancelRequestedCause--instance FromJSON WorkflowExecutionCancelRequestedCause where-    parseJSON = parseJSONText "WorkflowExecutionCancelRequestedCause"--instance ToJSON WorkflowExecutionCancelRequestedCause where-    toJSON = toJSONText--data StartChildWorkflowExecutionFailedCause-    = SCWEFCChildCreationRateExceeded                    -- ^ CHILD_CREATION_RATE_EXCEEDED-    | SCWEFCDefaultChildPolicyUndefined                  -- ^ DEFAULT_CHILD_POLICY_UNDEFINED-    | SCWEFCDefaultExecutionStartToCloseTimeoutUndefined -- ^ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED-    | SCWEFCDefaultTaskListUndefined                     -- ^ DEFAULT_TASK_LIST_UNDEFINED-    | SCWEFCDefaultTaskStartToCloseTimeoutUndefined      -- ^ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED-    | SCWEFCOpenChildrenLimitExceeded                    -- ^ OPEN_CHILDREN_LIMIT_EXCEEDED-    | SCWEFCOpenWorkflowsLimitExceeded                   -- ^ OPEN_WORKFLOWS_LIMIT_EXCEEDED-    | SCWEFCOperationNotPermitted                        -- ^ OPERATION_NOT_PERMITTED-    | SCWEFCWorkflowAlreadyRunning                       -- ^ WORKFLOW_ALREADY_RUNNING-    | SCWEFCWorkflowTypeDeprecated                       -- ^ WORKFLOW_TYPE_DEPRECATED-    | SCWEFCWorkflowTypeDoesNotExist                     -- ^ WORKFLOW_TYPE_DOES_NOT_EXIST-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable StartChildWorkflowExecutionFailedCause--instance FromText StartChildWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "child_creation_rate_exceeded"                       -> pure SCWEFCChildCreationRateExceeded-        "default_child_policy_undefined"                     -> pure SCWEFCDefaultChildPolicyUndefined-        "default_execution_start_to_close_timeout_undefined" -> pure SCWEFCDefaultExecutionStartToCloseTimeoutUndefined-        "default_task_list_undefined"                        -> pure SCWEFCDefaultTaskListUndefined-        "default_task_start_to_close_timeout_undefined"      -> pure SCWEFCDefaultTaskStartToCloseTimeoutUndefined-        "open_children_limit_exceeded"                       -> pure SCWEFCOpenChildrenLimitExceeded-        "open_workflows_limit_exceeded"                      -> pure SCWEFCOpenWorkflowsLimitExceeded-        "operation_not_permitted"                            -> pure SCWEFCOperationNotPermitted-        "workflow_already_running"                           -> pure SCWEFCWorkflowAlreadyRunning-        "workflow_type_deprecated"                           -> pure SCWEFCWorkflowTypeDeprecated-        "workflow_type_does_not_exist"                       -> pure SCWEFCWorkflowTypeDoesNotExist-        e                                                    -> fail $-            "Failure parsing StartChildWorkflowExecutionFailedCause from " ++ show e--instance ToText StartChildWorkflowExecutionFailedCause where-    toText = \case-        SCWEFCChildCreationRateExceeded                    -> "CHILD_CREATION_RATE_EXCEEDED"-        SCWEFCDefaultChildPolicyUndefined                  -> "DEFAULT_CHILD_POLICY_UNDEFINED"-        SCWEFCDefaultExecutionStartToCloseTimeoutUndefined -> "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"-        SCWEFCDefaultTaskListUndefined                     -> "DEFAULT_TASK_LIST_UNDEFINED"-        SCWEFCDefaultTaskStartToCloseTimeoutUndefined      -> "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"-        SCWEFCOpenChildrenLimitExceeded                    -> "OPEN_CHILDREN_LIMIT_EXCEEDED"-        SCWEFCOpenWorkflowsLimitExceeded                   -> "OPEN_WORKFLOWS_LIMIT_EXCEEDED"-        SCWEFCOperationNotPermitted                        -> "OPERATION_NOT_PERMITTED"-        SCWEFCWorkflowAlreadyRunning                       -> "WORKFLOW_ALREADY_RUNNING"-        SCWEFCWorkflowTypeDeprecated                       -> "WORKFLOW_TYPE_DEPRECATED"-        SCWEFCWorkflowTypeDoesNotExist                     -> "WORKFLOW_TYPE_DOES_NOT_EXIST"--instance ToByteString StartChildWorkflowExecutionFailedCause-instance ToHeader     StartChildWorkflowExecutionFailedCause-instance ToQuery      StartChildWorkflowExecutionFailedCause--instance FromJSON StartChildWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "StartChildWorkflowExecutionFailedCause"--instance ToJSON StartChildWorkflowExecutionFailedCause where-    toJSON = toJSONText--data DecisionTaskTimedOutEventAttributes = DecisionTaskTimedOutEventAttributes-    { _dttoeaScheduledEventId :: Integer-    , _dttoeaStartedEventId   :: Integer-    , _dttoeaTimeoutType      :: DecisionTaskTimeoutType-    } deriving (Eq, Read, Show)---- | 'DecisionTaskTimedOutEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'dttoeaScheduledEventId' @::@ 'Integer'------ * 'dttoeaStartedEventId' @::@ 'Integer'------ * 'dttoeaTimeoutType' @::@ 'DecisionTaskTimeoutType'----decisionTaskTimedOutEventAttributes :: DecisionTaskTimeoutType -- ^ 'dttoeaTimeoutType'-                                    -> Integer -- ^ 'dttoeaScheduledEventId'-                                    -> Integer -- ^ 'dttoeaStartedEventId'-                                    -> DecisionTaskTimedOutEventAttributes-decisionTaskTimedOutEventAttributes p1 p2 p3 = DecisionTaskTimedOutEventAttributes-    { _dttoeaTimeoutType      = p1-    , _dttoeaScheduledEventId = p2-    , _dttoeaStartedEventId   = p3-    }---- | The id of the 'DecisionTaskScheduled' event that was recorded when this--- decision task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-dttoeaScheduledEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer-dttoeaScheduledEventId =-    lens _dttoeaScheduledEventId (\s a -> s { _dttoeaScheduledEventId = a })---- | The Id of the 'DecisionTaskStarted' event recorded when this decision task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-dttoeaStartedEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer-dttoeaStartedEventId =-    lens _dttoeaStartedEventId (\s a -> s { _dttoeaStartedEventId = a })---- | The type of timeout that expired before the decision task could be completed.-dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType-dttoeaTimeoutType =-    lens _dttoeaTimeoutType (\s a -> s { _dttoeaTimeoutType = a })--instance FromJSON DecisionTaskTimedOutEventAttributes where-    parseJSON = withObject "DecisionTaskTimedOutEventAttributes" $ \o -> DecisionTaskTimedOutEventAttributes-        <$> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "timeoutType"--instance ToJSON DecisionTaskTimedOutEventAttributes where-    toJSON DecisionTaskTimedOutEventAttributes{..} = object-        [ "timeoutType"      .= _dttoeaTimeoutType-        , "scheduledEventId" .= _dttoeaScheduledEventId-        , "startedEventId"   .= _dttoeaStartedEventId-        ]--data ChildWorkflowExecutionStartedEventAttributes = ChildWorkflowExecutionStartedEventAttributes-    { _cweseaInitiatedEventId  :: Integer-    , _cweseaWorkflowExecution :: WorkflowExecution-    , _cweseaWorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionStartedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cweseaInitiatedEventId' @::@ 'Integer'------ * 'cweseaWorkflowExecution' @::@ 'WorkflowExecution'------ * 'cweseaWorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionStartedEventAttributes :: WorkflowExecution -- ^ 'cweseaWorkflowExecution'-                                             -> WorkflowType -- ^ 'cweseaWorkflowType'-                                             -> Integer -- ^ 'cweseaInitiatedEventId'-                                             -> ChildWorkflowExecutionStartedEventAttributes-childWorkflowExecutionStartedEventAttributes p1 p2 p3 = ChildWorkflowExecutionStartedEventAttributes-    { _cweseaWorkflowExecution = p1-    , _cweseaWorkflowType      = p2-    , _cweseaInitiatedEventId  = p3-    }---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cweseaInitiatedEventId :: Lens' ChildWorkflowExecutionStartedEventAttributes Integer-cweseaInitiatedEventId =-    lens _cweseaInitiatedEventId (\s a -> s { _cweseaInitiatedEventId = a })---- | The child workflow execution that was started.-cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution-cweseaWorkflowExecution =-    lens _cweseaWorkflowExecution (\s a -> s { _cweseaWorkflowExecution = a })---- | The type of the child workflow execution.-cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType-cweseaWorkflowType =-    lens _cweseaWorkflowType (\s a -> s { _cweseaWorkflowType = a })--instance FromJSON ChildWorkflowExecutionStartedEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionStartedEventAttributes" $ \o -> ChildWorkflowExecutionStartedEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionStartedEventAttributes where-    toJSON ChildWorkflowExecutionStartedEventAttributes{..} = object-        [ "workflowExecution" .= _cweseaWorkflowExecution-        , "workflowType"      .= _cweseaWorkflowType-        , "initiatedEventId"  .= _cweseaInitiatedEventId-        ]--data CancelTimerFailedEventAttributes = CancelTimerFailedEventAttributes-    { _ctfeaCause                        :: CancelTimerFailedCause-    , _ctfeaDecisionTaskCompletedEventId :: Integer-    , _ctfeaTimerId                      :: Text-    } deriving (Eq, Read, Show)---- | 'CancelTimerFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'ctfeaCause' @::@ 'CancelTimerFailedCause'------ * 'ctfeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'ctfeaTimerId' @::@ 'Text'----cancelTimerFailedEventAttributes :: Text -- ^ 'ctfeaTimerId'-                                 -> CancelTimerFailedCause -- ^ 'ctfeaCause'-                                 -> Integer -- ^ 'ctfeaDecisionTaskCompletedEventId'-                                 -> CancelTimerFailedEventAttributes-cancelTimerFailedEventAttributes p1 p2 p3 = CancelTimerFailedEventAttributes-    { _ctfeaTimerId                      = p1-    , _ctfeaCause                        = p2-    , _ctfeaDecisionTaskCompletedEventId = p3-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause-ctfeaCause = lens _ctfeaCause (\s a -> s { _ctfeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CancelTimer' decision to cancel this timer. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-ctfeaDecisionTaskCompletedEventId :: Lens' CancelTimerFailedEventAttributes Integer-ctfeaDecisionTaskCompletedEventId =-    lens _ctfeaDecisionTaskCompletedEventId-        (\s a -> s { _ctfeaDecisionTaskCompletedEventId = a })---- | The timerId provided in the 'CancelTimer' decision that failed.-ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text-ctfeaTimerId = lens _ctfeaTimerId (\s a -> s { _ctfeaTimerId = a })--instance FromJSON CancelTimerFailedEventAttributes where-    parseJSON = withObject "CancelTimerFailedEventAttributes" $ \o -> CancelTimerFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "timerId"--instance ToJSON CancelTimerFailedEventAttributes where-    toJSON CancelTimerFailedEventAttributes{..} = object-        [ "timerId"                      .= _ctfeaTimerId-        , "cause"                        .= _ctfeaCause-        , "decisionTaskCompletedEventId" .= _ctfeaDecisionTaskCompletedEventId-        ]--data FailWorkflowExecutionFailedCause-    = FWEFCOperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-    | FWEFCUnhandledDecision     -- ^ UNHANDLED_DECISION-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable FailWorkflowExecutionFailedCause--instance FromText FailWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted" -> pure FWEFCOperationNotPermitted-        "unhandled_decision"      -> pure FWEFCUnhandledDecision-        e                         -> fail $-            "Failure parsing FailWorkflowExecutionFailedCause from " ++ show e--instance ToText FailWorkflowExecutionFailedCause where-    toText = \case-        FWEFCOperationNotPermitted -> "OPERATION_NOT_PERMITTED"-        FWEFCUnhandledDecision     -> "UNHANDLED_DECISION"--instance ToByteString FailWorkflowExecutionFailedCause-instance ToHeader     FailWorkflowExecutionFailedCause-instance ToQuery      FailWorkflowExecutionFailedCause--instance FromJSON FailWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "FailWorkflowExecutionFailedCause"--instance ToJSON FailWorkflowExecutionFailedCause where-    toJSON = toJSONText--newtype WorkflowExecutionFilter = WorkflowExecutionFilter-    { _wefWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'WorkflowExecutionFilter' constructor.------ The fields accessible through corresponding lenses are:------ * 'wefWorkflowId' @::@ 'Text'----workflowExecutionFilter :: Text -- ^ 'wefWorkflowId'-                        -> WorkflowExecutionFilter-workflowExecutionFilter p1 = WorkflowExecutionFilter-    { _wefWorkflowId = p1-    }---- | The workflowId to pass of match the criteria of this filter.-wefWorkflowId :: Lens' WorkflowExecutionFilter Text-wefWorkflowId = lens _wefWorkflowId (\s a -> s { _wefWorkflowId = a })--instance FromJSON WorkflowExecutionFilter where-    parseJSON = withObject "WorkflowExecutionFilter" $ \o -> WorkflowExecutionFilter-        <$> o .:  "workflowId"--instance ToJSON WorkflowExecutionFilter where-    toJSON WorkflowExecutionFilter{..} = object-        [ "workflowId" .= _wefWorkflowId-        ]--data ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes-    { _atcea1Details                      :: Maybe Text-    , _atcea1LatestCancelRequestedEventId :: Maybe Integer-    , _atcea1ScheduledEventId             :: Integer-    , _atcea1StartedEventId               :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityTaskCanceledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atcea1Details' @::@ 'Maybe' 'Text'------ * 'atcea1LatestCancelRequestedEventId' @::@ 'Maybe' 'Integer'------ * 'atcea1ScheduledEventId' @::@ 'Integer'------ * 'atcea1StartedEventId' @::@ 'Integer'----activityTaskCanceledEventAttributes :: Integer -- ^ 'atcea1ScheduledEventId'-                                    -> Integer -- ^ 'atcea1StartedEventId'-                                    -> ActivityTaskCanceledEventAttributes-activityTaskCanceledEventAttributes p1 p2 = ActivityTaskCanceledEventAttributes-    { _atcea1ScheduledEventId             = p1-    , _atcea1StartedEventId               = p2-    , _atcea1Details                      = Nothing-    , _atcea1LatestCancelRequestedEventId = Nothing-    }---- | Details of the cancellation (if any).-atcea1Details :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)-atcea1Details = lens _atcea1Details (\s a -> s { _atcea1Details = a })---- | If set, contains the Id of the last 'ActivityTaskCancelRequested' event--- recorded for this activity task. This information can be useful for--- diagnosing problems by tracing back the chain of events leading up to this--- event.-atcea1LatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)-atcea1LatestCancelRequestedEventId =-    lens _atcea1LatestCancelRequestedEventId-        (\s a -> s { _atcea1LatestCancelRequestedEventId = a })---- | The id of the 'ActivityTaskScheduled' event that was recorded when this--- activity task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-atcea1ScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer-atcea1ScheduledEventId =-    lens _atcea1ScheduledEventId (\s a -> s { _atcea1ScheduledEventId = a })---- | The Id of the 'ActivityTaskStarted' event recorded when this activity task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-atcea1StartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer-atcea1StartedEventId =-    lens _atcea1StartedEventId (\s a -> s { _atcea1StartedEventId = a })--instance FromJSON ActivityTaskCanceledEventAttributes where-    parseJSON = withObject "ActivityTaskCanceledEventAttributes" $ \o -> ActivityTaskCanceledEventAttributes-        <$> o .:? "details"-        <*> o .:? "latestCancelRequestedEventId"-        <*> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"--instance ToJSON ActivityTaskCanceledEventAttributes where-    toJSON ActivityTaskCanceledEventAttributes{..} = object-        [ "details"                      .= _atcea1Details-        , "scheduledEventId"             .= _atcea1ScheduledEventId-        , "startedEventId"               .= _atcea1StartedEventId-        , "latestCancelRequestedEventId" .= _atcea1LatestCancelRequestedEventId-        ]--data WorkflowExecutionInfos = WorkflowExecutionInfos-    { _weiExecutionInfos :: List "executionInfos" WorkflowExecutionInfo-    , _weiNextPageToken  :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionInfos' constructor.------ The fields accessible through corresponding lenses are:------ * 'weiExecutionInfos' @::@ ['WorkflowExecutionInfo']------ * 'weiNextPageToken' @::@ 'Maybe' 'Text'----workflowExecutionInfos :: WorkflowExecutionInfos-workflowExecutionInfos = WorkflowExecutionInfos-    { _weiExecutionInfos = mempty-    , _weiNextPageToken  = Nothing-    }---- | The list of workflow information structures.-weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]-weiExecutionInfos =-    lens _weiExecutionInfos (\s a -> s { _weiExecutionInfos = a })-        . _List---- | If a 'NextPageToken' was returned by a previous call, there are more results--- available. To retrieve the next page of results, make the call again using--- the returned token in 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned--- in a single call.-weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)-weiNextPageToken = lens _weiNextPageToken (\s a -> s { _weiNextPageToken = a })--instance FromJSON WorkflowExecutionInfos where-    parseJSON = withObject "WorkflowExecutionInfos" $ \o -> WorkflowExecutionInfos-        <$> o .:? "executionInfos" .!= mempty-        <*> o .:? "nextPageToken"--instance ToJSON WorkflowExecutionInfos where-    toJSON WorkflowExecutionInfos{..} = object-        [ "executionInfos" .= _weiExecutionInfos-        , "nextPageToken"  .= _weiNextPageToken-        ]--data StartChildWorkflowExecutionDecisionAttributes = StartChildWorkflowExecutionDecisionAttributes-    { _scwedaChildPolicy                  :: Maybe ChildPolicy-    , _scwedaControl                      :: Maybe Text-    , _scwedaExecutionStartToCloseTimeout :: Maybe Text-    , _scwedaInput                        :: Maybe Text-    , _scwedaTagList                      :: List "tagList" Text-    , _scwedaTaskList                     :: Maybe TaskList-    , _scwedaTaskPriority                 :: Maybe Text-    , _scwedaTaskStartToCloseTimeout      :: Maybe Text-    , _scwedaWorkflowId                   :: Text-    , _scwedaWorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'StartChildWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'scwedaChildPolicy' @::@ 'Maybe' 'ChildPolicy'------ * 'scwedaControl' @::@ 'Maybe' 'Text'------ * 'scwedaExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'scwedaInput' @::@ 'Maybe' 'Text'------ * 'scwedaTagList' @::@ ['Text']------ * 'scwedaTaskList' @::@ 'Maybe' 'TaskList'------ * 'scwedaTaskPriority' @::@ 'Maybe' 'Text'------ * 'scwedaTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'scwedaWorkflowId' @::@ 'Text'------ * 'scwedaWorkflowType' @::@ 'WorkflowType'----startChildWorkflowExecutionDecisionAttributes :: WorkflowType -- ^ 'scwedaWorkflowType'-                                              -> Text -- ^ 'scwedaWorkflowId'-                                              -> StartChildWorkflowExecutionDecisionAttributes-startChildWorkflowExecutionDecisionAttributes p1 p2 = StartChildWorkflowExecutionDecisionAttributes-    { _scwedaWorkflowType                 = p1-    , _scwedaWorkflowId                   = p2-    , _scwedaControl                      = Nothing-    , _scwedaInput                        = Nothing-    , _scwedaExecutionStartToCloseTimeout = Nothing-    , _scwedaTaskList                     = Nothing-    , _scwedaTaskPriority                 = Nothing-    , _scwedaTaskStartToCloseTimeout      = Nothing-    , _scwedaChildPolicy                  = Nothing-    , _scwedaTagList                      = mempty-    }---- | /Optional./ If set, specifies the policy to use for the child workflow--- executions if the workflow execution being started is terminated by calling--- the 'TerminateWorkflowExecution' action explicitly or due to an expired--- timeout. This policy overrides the default child policy specified when--- registering the workflow type using 'RegisterWorkflowType'.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.  A child policy for--- this workflow execution must be specified either as a default for the--- workflow type or through this parameter. If neither this parameter is set nor--- a default child policy was specified at registration time then a fault will--- be returned.-scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)-scwedaChildPolicy =-    lens _scwedaChildPolicy (\s a -> s { _scwedaChildPolicy = a })---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks. This data is not sent to the child workflow--- execution.-scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaControl = lens _scwedaControl (\s a -> s { _scwedaControl = a })---- | The total duration for this workflow execution. This overrides the--- defaultExecutionStartToCloseTimeout specified when registering the workflow--- type.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ An execution start-to-close timeout for this workflow execution must be--- specified either as a default for the workflow type or through this--- parameter. If neither this parameter is set nor a default execution--- start-to-close timeout was specified at registration time then a fault will--- be returned.-scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaExecutionStartToCloseTimeout =-    lens _scwedaExecutionStartToCloseTimeout-        (\s a -> s { _scwedaExecutionStartToCloseTimeout = a })---- | The input to be provided to the workflow execution.-scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaInput = lens _scwedaInput (\s a -> s { _scwedaInput = a })---- | The list of tags to associate with the child workflow execution. A maximum of--- 5 tags can be specified. You can list workflow executions with a specific tag--- by calling 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and--- specifying a 'TagFilter'.-scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]-scwedaTagList = lens _scwedaTagList (\s a -> s { _scwedaTagList = a }) . _List---- | The name of the task list to be used for decision tasks of the child workflow--- execution.------ A task list for this workflow execution must be specified either as a--- default for the workflow type or through this parameter. If neither this--- parameter is set nor a default task list was specified at registration time--- then a fault will be returned. The specified string must not start or end--- with whitespace. It must not contain a ':' (colon), '/' (slash), '|' (vertical--- bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it--- must not contain the literal string quotarnquot.-scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)-scwedaTaskList = lens _scwedaTaskList (\s a -> s { _scwedaTaskList = a })---- | /Optional./ A task priority that, if set, specifies the priority for a decision--- task of this workflow execution. This overrides the defaultTaskPriority--- specified when registering the workflow type. Valid values are integers that--- range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE'--- (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaTaskPriority =-    lens _scwedaTaskPriority (\s a -> s { _scwedaTaskPriority = a })---- | Specifies the maximum duration of decision tasks for this workflow execution.--- This parameter overrides the 'defaultTaskStartToCloseTimout' specified when--- registering the workflow type using 'RegisterWorkflowType'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ A task start-to-close timeout for this workflow execution must be specified--- either as a default for the workflow type or through this parameter. If--- neither this parameter is set nor a default task start-to-close timeout was--- specified at registration time then a fault will be returned.-scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaTaskStartToCloseTimeout =-    lens _scwedaTaskStartToCloseTimeout-        (\s a -> s { _scwedaTaskStartToCloseTimeout = a })---- | Required. The 'workflowId' of the workflow execution.------ The specified string must not start or end with whitespace. It must not--- contain a ':' (colon), '/' (slash), '|' (vertical bar), or any control characters--- (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal--- string quotarnquot.-scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text-scwedaWorkflowId = lens _scwedaWorkflowId (\s a -> s { _scwedaWorkflowId = a })---- | Required. The type of the workflow execution to be started.-scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType-scwedaWorkflowType =-    lens _scwedaWorkflowType (\s a -> s { _scwedaWorkflowType = a })--instance FromJSON StartChildWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "StartChildWorkflowExecutionDecisionAttributes" $ \o -> StartChildWorkflowExecutionDecisionAttributes-        <$> o .:? "childPolicy"-        <*> o .:? "control"-        <*> o .:? "executionStartToCloseTimeout"-        <*> o .:? "input"-        <*> o .:? "tagList" .!= mempty-        <*> o .:? "taskList"-        <*> o .:? "taskPriority"-        <*> o .:? "taskStartToCloseTimeout"-        <*> o .:  "workflowId"-        <*> o .:  "workflowType"--instance ToJSON StartChildWorkflowExecutionDecisionAttributes where-    toJSON StartChildWorkflowExecutionDecisionAttributes{..} = object-        [ "workflowType"                 .= _scwedaWorkflowType-        , "workflowId"                   .= _scwedaWorkflowId-        , "control"                      .= _scwedaControl-        , "input"                        .= _scwedaInput-        , "executionStartToCloseTimeout" .= _scwedaExecutionStartToCloseTimeout-        , "taskList"                     .= _scwedaTaskList-        , "taskPriority"                 .= _scwedaTaskPriority-        , "taskStartToCloseTimeout"      .= _scwedaTaskStartToCloseTimeout-        , "childPolicy"                  .= _scwedaChildPolicy-        , "tagList"                      .= _scwedaTagList-        ]--data ContinueAsNewWorkflowExecutionFailedCause-    = CANWEFCContinueAsNewWorkflowExecutionRateExceeded   -- ^ CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED-    | CANWEFCDefaultChildPolicyUndefined                  -- ^ DEFAULT_CHILD_POLICY_UNDEFINED-    | CANWEFCDefaultExecutionStartToCloseTimeoutUndefined -- ^ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED-    | CANWEFCDefaultTaskListUndefined                     -- ^ DEFAULT_TASK_LIST_UNDEFINED-    | CANWEFCDefaultTaskStartToCloseTimeoutUndefined      -- ^ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED-    | CANWEFCOperationNotPermitted                        -- ^ OPERATION_NOT_PERMITTED-    | CANWEFCUnhandledDecision                            -- ^ UNHANDLED_DECISION-    | CANWEFCWorkflowTypeDeprecated                       -- ^ WORKFLOW_TYPE_DEPRECATED-    | CANWEFCWorkflowTypeDoesNotExist                     -- ^ WORKFLOW_TYPE_DOES_NOT_EXIST-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable ContinueAsNewWorkflowExecutionFailedCause--instance FromText ContinueAsNewWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "continue_as_new_workflow_execution_rate_exceeded"   -> pure CANWEFCContinueAsNewWorkflowExecutionRateExceeded-        "default_child_policy_undefined"                     -> pure CANWEFCDefaultChildPolicyUndefined-        "default_execution_start_to_close_timeout_undefined" -> pure CANWEFCDefaultExecutionStartToCloseTimeoutUndefined-        "default_task_list_undefined"                        -> pure CANWEFCDefaultTaskListUndefined-        "default_task_start_to_close_timeout_undefined"      -> pure CANWEFCDefaultTaskStartToCloseTimeoutUndefined-        "operation_not_permitted"                            -> pure CANWEFCOperationNotPermitted-        "unhandled_decision"                                 -> pure CANWEFCUnhandledDecision-        "workflow_type_deprecated"                           -> pure CANWEFCWorkflowTypeDeprecated-        "workflow_type_does_not_exist"                       -> pure CANWEFCWorkflowTypeDoesNotExist-        e                                                    -> fail $-            "Failure parsing ContinueAsNewWorkflowExecutionFailedCause from " ++ show e--instance ToText ContinueAsNewWorkflowExecutionFailedCause where-    toText = \case-        CANWEFCContinueAsNewWorkflowExecutionRateExceeded   -> "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"-        CANWEFCDefaultChildPolicyUndefined                  -> "DEFAULT_CHILD_POLICY_UNDEFINED"-        CANWEFCDefaultExecutionStartToCloseTimeoutUndefined -> "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"-        CANWEFCDefaultTaskListUndefined                     -> "DEFAULT_TASK_LIST_UNDEFINED"-        CANWEFCDefaultTaskStartToCloseTimeoutUndefined      -> "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"-        CANWEFCOperationNotPermitted                        -> "OPERATION_NOT_PERMITTED"-        CANWEFCUnhandledDecision                            -> "UNHANDLED_DECISION"-        CANWEFCWorkflowTypeDeprecated                       -> "WORKFLOW_TYPE_DEPRECATED"-        CANWEFCWorkflowTypeDoesNotExist                     -> "WORKFLOW_TYPE_DOES_NOT_EXIST"--instance ToByteString ContinueAsNewWorkflowExecutionFailedCause-instance ToHeader     ContinueAsNewWorkflowExecutionFailedCause-instance ToQuery      ContinueAsNewWorkflowExecutionFailedCause--instance FromJSON ContinueAsNewWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "ContinueAsNewWorkflowExecutionFailedCause"--instance ToJSON ContinueAsNewWorkflowExecutionFailedCause where-    toJSON = toJSONText--data FailWorkflowExecutionDecisionAttributes = FailWorkflowExecutionDecisionAttributes-    { _fwedaDetails :: Maybe Text-    , _fwedaReason  :: Maybe Text-    } deriving (Eq, Ord, Read, Show)---- | 'FailWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'fwedaDetails' @::@ 'Maybe' 'Text'------ * 'fwedaReason' @::@ 'Maybe' 'Text'----failWorkflowExecutionDecisionAttributes :: FailWorkflowExecutionDecisionAttributes-failWorkflowExecutionDecisionAttributes = FailWorkflowExecutionDecisionAttributes-    { _fwedaReason  = Nothing-    , _fwedaDetails = Nothing-    }---- | /Optional./ Details of the failure.-fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)-fwedaDetails = lens _fwedaDetails (\s a -> s { _fwedaDetails = a })---- | A descriptive reason for the failure that may help in diagnostics.-fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)-fwedaReason = lens _fwedaReason (\s a -> s { _fwedaReason = a })--instance FromJSON FailWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "FailWorkflowExecutionDecisionAttributes" $ \o -> FailWorkflowExecutionDecisionAttributes-        <$> o .:? "details"-        <*> o .:? "reason"--instance ToJSON FailWorkflowExecutionDecisionAttributes where-    toJSON FailWorkflowExecutionDecisionAttributes{..} = object-        [ "reason"  .= _fwedaReason-        , "details" .= _fwedaDetails-        ]--data EventType-    = ActivityTaskCancelRequested                     -- ^ ActivityTaskCancelRequested-    | ActivityTaskCanceled                            -- ^ ActivityTaskCanceled-    | ActivityTaskCompleted                           -- ^ ActivityTaskCompleted-    | ActivityTaskFailed                              -- ^ ActivityTaskFailed-    | ActivityTaskScheduled                           -- ^ ActivityTaskScheduled-    | ActivityTaskStarted                             -- ^ ActivityTaskStarted-    | ActivityTaskTimedOut                            -- ^ ActivityTaskTimedOut-    | CancelTimerFailed                               -- ^ CancelTimerFailed-    | CancelWorkflowExecutionFailed                   -- ^ CancelWorkflowExecutionFailed-    | ChildWorkflowExecutionCanceled                  -- ^ ChildWorkflowExecutionCanceled-    | ChildWorkflowExecutionCompleted                 -- ^ ChildWorkflowExecutionCompleted-    | ChildWorkflowExecutionFailed                    -- ^ ChildWorkflowExecutionFailed-    | ChildWorkflowExecutionStarted                   -- ^ ChildWorkflowExecutionStarted-    | ChildWorkflowExecutionTerminated                -- ^ ChildWorkflowExecutionTerminated-    | ChildWorkflowExecutionTimedOut                  -- ^ ChildWorkflowExecutionTimedOut-    | CompleteWorkflowExecutionFailed                 -- ^ CompleteWorkflowExecutionFailed-    | ContinueAsNewWorkflowExecutionFailed            -- ^ ContinueAsNewWorkflowExecutionFailed-    | DecisionTaskCompleted                           -- ^ DecisionTaskCompleted-    | DecisionTaskScheduled                           -- ^ DecisionTaskScheduled-    | DecisionTaskStarted                             -- ^ DecisionTaskStarted-    | DecisionTaskTimedOut                            -- ^ DecisionTaskTimedOut-    | ExternalWorkflowExecutionCancelRequested        -- ^ ExternalWorkflowExecutionCancelRequested-    | ExternalWorkflowExecutionSignaled               -- ^ ExternalWorkflowExecutionSignaled-    | FailWorkflowExecutionFailed                     -- ^ FailWorkflowExecutionFailed-    | MarkerRecorded                                  -- ^ MarkerRecorded-    | RecordMarkerFailed                              -- ^ RecordMarkerFailed-    | RequestCancelActivityTaskFailed                 -- ^ RequestCancelActivityTaskFailed-    | RequestCancelExternalWorkflowExecutionFailed    -- ^ RequestCancelExternalWorkflowExecutionFailed-    | RequestCancelExternalWorkflowExecutionInitiated -- ^ RequestCancelExternalWorkflowExecutionInitiated-    | ScheduleActivityTaskFailed                      -- ^ ScheduleActivityTaskFailed-    | SignalExternalWorkflowExecutionFailed           -- ^ SignalExternalWorkflowExecutionFailed-    | SignalExternalWorkflowExecutionInitiated        -- ^ SignalExternalWorkflowExecutionInitiated-    | StartChildWorkflowExecutionFailed               -- ^ StartChildWorkflowExecutionFailed-    | StartChildWorkflowExecutionInitiated            -- ^ StartChildWorkflowExecutionInitiated-    | StartTimerFailed                                -- ^ StartTimerFailed-    | TimerCanceled                                   -- ^ TimerCanceled-    | TimerFired                                      -- ^ TimerFired-    | TimerStarted                                    -- ^ TimerStarted-    | WorkflowExecutionCancelRequested                -- ^ WorkflowExecutionCancelRequested-    | WorkflowExecutionCanceled                       -- ^ WorkflowExecutionCanceled-    | WorkflowExecutionCompleted                      -- ^ WorkflowExecutionCompleted-    | WorkflowExecutionContinuedAsNew                 -- ^ WorkflowExecutionContinuedAsNew-    | WorkflowExecutionFailed                         -- ^ WorkflowExecutionFailed-    | WorkflowExecutionSignaled                       -- ^ WorkflowExecutionSignaled-    | WorkflowExecutionStarted                        -- ^ WorkflowExecutionStarted-    | WorkflowExecutionTerminated                     -- ^ WorkflowExecutionTerminated-    | WorkflowExecutionTimedOut                       -- ^ WorkflowExecutionTimedOut-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable EventType--instance FromText EventType where-    parser = takeLowerText >>= \case-        "activitytaskcancelrequested"                     -> pure ActivityTaskCancelRequested-        "activitytaskcanceled"                            -> pure ActivityTaskCanceled-        "activitytaskcompleted"                           -> pure ActivityTaskCompleted-        "activitytaskfailed"                              -> pure ActivityTaskFailed-        "activitytaskscheduled"                           -> pure ActivityTaskScheduled-        "activitytaskstarted"                             -> pure ActivityTaskStarted-        "activitytasktimedout"                            -> pure ActivityTaskTimedOut-        "canceltimerfailed"                               -> pure CancelTimerFailed-        "cancelworkflowexecutionfailed"                   -> pure CancelWorkflowExecutionFailed-        "childworkflowexecutioncanceled"                  -> pure ChildWorkflowExecutionCanceled-        "childworkflowexecutioncompleted"                 -> pure ChildWorkflowExecutionCompleted-        "childworkflowexecutionfailed"                    -> pure ChildWorkflowExecutionFailed-        "childworkflowexecutionstarted"                   -> pure ChildWorkflowExecutionStarted-        "childworkflowexecutionterminated"                -> pure ChildWorkflowExecutionTerminated-        "childworkflowexecutiontimedout"                  -> pure ChildWorkflowExecutionTimedOut-        "completeworkflowexecutionfailed"                 -> pure CompleteWorkflowExecutionFailed-        "continueasnewworkflowexecutionfailed"            -> pure ContinueAsNewWorkflowExecutionFailed-        "decisiontaskcompleted"                           -> pure DecisionTaskCompleted-        "decisiontaskscheduled"                           -> pure DecisionTaskScheduled-        "decisiontaskstarted"                             -> pure DecisionTaskStarted-        "decisiontasktimedout"                            -> pure DecisionTaskTimedOut-        "externalworkflowexecutioncancelrequested"        -> pure ExternalWorkflowExecutionCancelRequested-        "externalworkflowexecutionsignaled"               -> pure ExternalWorkflowExecutionSignaled-        "failworkflowexecutionfailed"                     -> pure FailWorkflowExecutionFailed-        "markerrecorded"                                  -> pure MarkerRecorded-        "recordmarkerfailed"                              -> pure RecordMarkerFailed-        "requestcancelactivitytaskfailed"                 -> pure RequestCancelActivityTaskFailed-        "requestcancelexternalworkflowexecutionfailed"    -> pure RequestCancelExternalWorkflowExecutionFailed-        "requestcancelexternalworkflowexecutioninitiated" -> pure RequestCancelExternalWorkflowExecutionInitiated-        "scheduleactivitytaskfailed"                      -> pure ScheduleActivityTaskFailed-        "signalexternalworkflowexecutionfailed"           -> pure SignalExternalWorkflowExecutionFailed-        "signalexternalworkflowexecutioninitiated"        -> pure SignalExternalWorkflowExecutionInitiated-        "startchildworkflowexecutionfailed"               -> pure StartChildWorkflowExecutionFailed-        "startchildworkflowexecutioninitiated"            -> pure StartChildWorkflowExecutionInitiated-        "starttimerfailed"                                -> pure StartTimerFailed-        "timercanceled"                                   -> pure TimerCanceled-        "timerfired"                                      -> pure TimerFired-        "timerstarted"                                    -> pure TimerStarted-        "workflowexecutioncancelrequested"                -> pure WorkflowExecutionCancelRequested-        "workflowexecutioncanceled"                       -> pure WorkflowExecutionCanceled-        "workflowexecutioncompleted"                      -> pure WorkflowExecutionCompleted-        "workflowexecutioncontinuedasnew"                 -> pure WorkflowExecutionContinuedAsNew-        "workflowexecutionfailed"                         -> pure WorkflowExecutionFailed-        "workflowexecutionsignaled"                       -> pure WorkflowExecutionSignaled-        "workflowexecutionstarted"                        -> pure WorkflowExecutionStarted-        "workflowexecutionterminated"                     -> pure WorkflowExecutionTerminated-        "workflowexecutiontimedout"                       -> pure WorkflowExecutionTimedOut-        e                                                 -> fail $-            "Failure parsing EventType from " ++ show e--instance ToText EventType where-    toText = \case-        ActivityTaskCancelRequested                     -> "ActivityTaskCancelRequested"-        ActivityTaskCanceled                            -> "ActivityTaskCanceled"-        ActivityTaskCompleted                           -> "ActivityTaskCompleted"-        ActivityTaskFailed                              -> "ActivityTaskFailed"-        ActivityTaskScheduled                           -> "ActivityTaskScheduled"-        ActivityTaskStarted                             -> "ActivityTaskStarted"-        ActivityTaskTimedOut                            -> "ActivityTaskTimedOut"-        CancelTimerFailed                               -> "CancelTimerFailed"-        CancelWorkflowExecutionFailed                   -> "CancelWorkflowExecutionFailed"-        ChildWorkflowExecutionCanceled                  -> "ChildWorkflowExecutionCanceled"-        ChildWorkflowExecutionCompleted                 -> "ChildWorkflowExecutionCompleted"-        ChildWorkflowExecutionFailed                    -> "ChildWorkflowExecutionFailed"-        ChildWorkflowExecutionStarted                   -> "ChildWorkflowExecutionStarted"-        ChildWorkflowExecutionTerminated                -> "ChildWorkflowExecutionTerminated"-        ChildWorkflowExecutionTimedOut                  -> "ChildWorkflowExecutionTimedOut"-        CompleteWorkflowExecutionFailed                 -> "CompleteWorkflowExecutionFailed"-        ContinueAsNewWorkflowExecutionFailed            -> "ContinueAsNewWorkflowExecutionFailed"-        DecisionTaskCompleted                           -> "DecisionTaskCompleted"-        DecisionTaskScheduled                           -> "DecisionTaskScheduled"-        DecisionTaskStarted                             -> "DecisionTaskStarted"-        DecisionTaskTimedOut                            -> "DecisionTaskTimedOut"-        ExternalWorkflowExecutionCancelRequested        -> "ExternalWorkflowExecutionCancelRequested"-        ExternalWorkflowExecutionSignaled               -> "ExternalWorkflowExecutionSignaled"-        FailWorkflowExecutionFailed                     -> "FailWorkflowExecutionFailed"-        MarkerRecorded                                  -> "MarkerRecorded"-        RecordMarkerFailed                              -> "RecordMarkerFailed"-        RequestCancelActivityTaskFailed                 -> "RequestCancelActivityTaskFailed"-        RequestCancelExternalWorkflowExecutionFailed    -> "RequestCancelExternalWorkflowExecutionFailed"-        RequestCancelExternalWorkflowExecutionInitiated -> "RequestCancelExternalWorkflowExecutionInitiated"-        ScheduleActivityTaskFailed                      -> "ScheduleActivityTaskFailed"-        SignalExternalWorkflowExecutionFailed           -> "SignalExternalWorkflowExecutionFailed"-        SignalExternalWorkflowExecutionInitiated        -> "SignalExternalWorkflowExecutionInitiated"-        StartChildWorkflowExecutionFailed               -> "StartChildWorkflowExecutionFailed"-        StartChildWorkflowExecutionInitiated            -> "StartChildWorkflowExecutionInitiated"-        StartTimerFailed                                -> "StartTimerFailed"-        TimerCanceled                                   -> "TimerCanceled"-        TimerFired                                      -> "TimerFired"-        TimerStarted                                    -> "TimerStarted"-        WorkflowExecutionCancelRequested                -> "WorkflowExecutionCancelRequested"-        WorkflowExecutionCanceled                       -> "WorkflowExecutionCanceled"-        WorkflowExecutionCompleted                      -> "WorkflowExecutionCompleted"-        WorkflowExecutionContinuedAsNew                 -> "WorkflowExecutionContinuedAsNew"-        WorkflowExecutionFailed                         -> "WorkflowExecutionFailed"-        WorkflowExecutionSignaled                       -> "WorkflowExecutionSignaled"-        WorkflowExecutionStarted                        -> "WorkflowExecutionStarted"-        WorkflowExecutionTerminated                     -> "WorkflowExecutionTerminated"-        WorkflowExecutionTimedOut                       -> "WorkflowExecutionTimedOut"--instance ToByteString EventType-instance ToHeader     EventType-instance ToQuery      EventType--instance FromJSON EventType where-    parseJSON = parseJSONText "EventType"--instance ToJSON EventType where-    toJSON = toJSONText--data ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes-    { _attoeaDetails          :: Maybe Text-    , _attoeaScheduledEventId :: Integer-    , _attoeaStartedEventId   :: Integer-    , _attoeaTimeoutType      :: ActivityTaskTimeoutType-    } deriving (Eq, Read, Show)---- | 'ActivityTaskTimedOutEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'attoeaDetails' @::@ 'Maybe' 'Text'------ * 'attoeaScheduledEventId' @::@ 'Integer'------ * 'attoeaStartedEventId' @::@ 'Integer'------ * 'attoeaTimeoutType' @::@ 'ActivityTaskTimeoutType'----activityTaskTimedOutEventAttributes :: ActivityTaskTimeoutType -- ^ 'attoeaTimeoutType'-                                    -> Integer -- ^ 'attoeaScheduledEventId'-                                    -> Integer -- ^ 'attoeaStartedEventId'-                                    -> ActivityTaskTimedOutEventAttributes-activityTaskTimedOutEventAttributes p1 p2 p3 = ActivityTaskTimedOutEventAttributes-    { _attoeaTimeoutType      = p1-    , _attoeaScheduledEventId = p2-    , _attoeaStartedEventId   = p3-    , _attoeaDetails          = Nothing-    }---- | Contains the content of the 'details' parameter for the last call made by the--- activity to 'RecordActivityTaskHeartbeat'.-attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)-attoeaDetails = lens _attoeaDetails (\s a -> s { _attoeaDetails = a })---- | The id of the 'ActivityTaskScheduled' event that was recorded when this--- activity task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-attoeaScheduledEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer-attoeaScheduledEventId =-    lens _attoeaScheduledEventId (\s a -> s { _attoeaScheduledEventId = a })---- | The Id of the 'ActivityTaskStarted' event recorded when this activity task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-attoeaStartedEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer-attoeaStartedEventId =-    lens _attoeaStartedEventId (\s a -> s { _attoeaStartedEventId = a })---- | The type of the timeout that caused this event.-attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType-attoeaTimeoutType =-    lens _attoeaTimeoutType (\s a -> s { _attoeaTimeoutType = a })--instance FromJSON ActivityTaskTimedOutEventAttributes where-    parseJSON = withObject "ActivityTaskTimedOutEventAttributes" $ \o -> ActivityTaskTimedOutEventAttributes-        <$> o .:? "details"-        <*> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "timeoutType"--instance ToJSON ActivityTaskTimedOutEventAttributes where-    toJSON ActivityTaskTimedOutEventAttributes{..} = object-        [ "timeoutType"      .= _attoeaTimeoutType-        , "scheduledEventId" .= _attoeaScheduledEventId-        , "startedEventId"   .= _attoeaStartedEventId-        , "details"          .= _attoeaDetails-        ]--data RequestCancelActivityTaskFailedEventAttributes = RequestCancelActivityTaskFailedEventAttributes-    { _rcatfeaActivityId                   :: Text-    , _rcatfeaCause                        :: RequestCancelActivityTaskFailedCause-    , _rcatfeaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'RequestCancelActivityTaskFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rcatfeaActivityId' @::@ 'Text'------ * 'rcatfeaCause' @::@ 'RequestCancelActivityTaskFailedCause'------ * 'rcatfeaDecisionTaskCompletedEventId' @::@ 'Integer'----requestCancelActivityTaskFailedEventAttributes :: Text -- ^ 'rcatfeaActivityId'-                                               -> RequestCancelActivityTaskFailedCause -- ^ 'rcatfeaCause'-                                               -> Integer -- ^ 'rcatfeaDecisionTaskCompletedEventId'-                                               -> RequestCancelActivityTaskFailedEventAttributes-requestCancelActivityTaskFailedEventAttributes p1 p2 p3 = RequestCancelActivityTaskFailedEventAttributes-    { _rcatfeaActivityId                   = p1-    , _rcatfeaCause                        = p2-    , _rcatfeaDecisionTaskCompletedEventId = p3-    }---- | The activityId provided in the 'RequestCancelActivityTask' decision that failed.-rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text-rcatfeaActivityId =-    lens _rcatfeaActivityId (\s a -> s { _rcatfeaActivityId = a })---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause-rcatfeaCause = lens _rcatfeaCause (\s a -> s { _rcatfeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RequestCancelActivityTask' decision for this cancellation--- request. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-rcatfeaDecisionTaskCompletedEventId :: Lens' RequestCancelActivityTaskFailedEventAttributes Integer-rcatfeaDecisionTaskCompletedEventId =-    lens _rcatfeaDecisionTaskCompletedEventId-        (\s a -> s { _rcatfeaDecisionTaskCompletedEventId = a })--instance FromJSON RequestCancelActivityTaskFailedEventAttributes where-    parseJSON = withObject "RequestCancelActivityTaskFailedEventAttributes" $ \o -> RequestCancelActivityTaskFailedEventAttributes-        <$> o .:  "activityId"-        <*> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON RequestCancelActivityTaskFailedEventAttributes where-    toJSON RequestCancelActivityTaskFailedEventAttributes{..} = object-        [ "activityId"                   .= _rcatfeaActivityId-        , "cause"                        .= _rcatfeaCause-        , "decisionTaskCompletedEventId" .= _rcatfeaDecisionTaskCompletedEventId-        ]--newtype CompleteWorkflowExecutionDecisionAttributes = CompleteWorkflowExecutionDecisionAttributes-    { _cwedaResult :: Maybe Text-    } deriving (Eq, Ord, Read, Show, Monoid)---- | 'CompleteWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwedaResult' @::@ 'Maybe' 'Text'----completeWorkflowExecutionDecisionAttributes :: CompleteWorkflowExecutionDecisionAttributes-completeWorkflowExecutionDecisionAttributes = CompleteWorkflowExecutionDecisionAttributes-    { _cwedaResult = Nothing-    }---- | The result of the workflow execution. The form of the result is--- implementation defined.-cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)-cwedaResult = lens _cwedaResult (\s a -> s { _cwedaResult = a })--instance FromJSON CompleteWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "CompleteWorkflowExecutionDecisionAttributes" $ \o -> CompleteWorkflowExecutionDecisionAttributes-        <$> o .:? "result"--instance ToJSON CompleteWorkflowExecutionDecisionAttributes where-    toJSON CompleteWorkflowExecutionDecisionAttributes{..} = object-        [ "result" .= _cwedaResult-        ]--data DecisionTaskStartedEventAttributes = DecisionTaskStartedEventAttributes-    { _dtseaIdentity         :: Maybe Text-    , _dtseaScheduledEventId :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'DecisionTaskStartedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'dtseaIdentity' @::@ 'Maybe' 'Text'------ * 'dtseaScheduledEventId' @::@ 'Integer'----decisionTaskStartedEventAttributes :: Integer -- ^ 'dtseaScheduledEventId'-                                   -> DecisionTaskStartedEventAttributes-decisionTaskStartedEventAttributes p1 = DecisionTaskStartedEventAttributes-    { _dtseaScheduledEventId = p1-    , _dtseaIdentity         = Nothing-    }---- | Identity of the decider making the request. This enables diagnostic tracing--- when problems arise. The form of this identity is user defined.-dtseaIdentity :: Lens' DecisionTaskStartedEventAttributes (Maybe Text)-dtseaIdentity = lens _dtseaIdentity (\s a -> s { _dtseaIdentity = a })---- | The id of the 'DecisionTaskScheduled' event that was recorded when this--- decision task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-dtseaScheduledEventId :: Lens' DecisionTaskStartedEventAttributes Integer-dtseaScheduledEventId =-    lens _dtseaScheduledEventId (\s a -> s { _dtseaScheduledEventId = a })--instance FromJSON DecisionTaskStartedEventAttributes where-    parseJSON = withObject "DecisionTaskStartedEventAttributes" $ \o -> DecisionTaskStartedEventAttributes-        <$> o .:? "identity"-        <*> o .:  "scheduledEventId"--instance ToJSON DecisionTaskStartedEventAttributes where-    toJSON DecisionTaskStartedEventAttributes{..} = object-        [ "identity"         .= _dtseaIdentity-        , "scheduledEventId" .= _dtseaScheduledEventId-        ]--data ChildWorkflowExecutionTimedOutEventAttributes = ChildWorkflowExecutionTimedOutEventAttributes-    { _cwetoeaInitiatedEventId  :: Integer-    , _cwetoeaStartedEventId    :: Integer-    , _cwetoeaTimeoutType       :: WorkflowExecutionTimeoutType-    , _cwetoeaWorkflowExecution :: WorkflowExecution-    , _cwetoeaWorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionTimedOutEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwetoeaInitiatedEventId' @::@ 'Integer'------ * 'cwetoeaStartedEventId' @::@ 'Integer'------ * 'cwetoeaTimeoutType' @::@ 'WorkflowExecutionTimeoutType'------ * 'cwetoeaWorkflowExecution' @::@ 'WorkflowExecution'------ * 'cwetoeaWorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionTimedOutEventAttributes :: WorkflowExecution -- ^ 'cwetoeaWorkflowExecution'-                                              -> WorkflowType -- ^ 'cwetoeaWorkflowType'-                                              -> WorkflowExecutionTimeoutType -- ^ 'cwetoeaTimeoutType'-                                              -> Integer -- ^ 'cwetoeaInitiatedEventId'-                                              -> Integer -- ^ 'cwetoeaStartedEventId'-                                              -> ChildWorkflowExecutionTimedOutEventAttributes-childWorkflowExecutionTimedOutEventAttributes p1 p2 p3 p4 p5 = ChildWorkflowExecutionTimedOutEventAttributes-    { _cwetoeaWorkflowExecution = p1-    , _cwetoeaWorkflowType      = p2-    , _cwetoeaTimeoutType       = p3-    , _cwetoeaInitiatedEventId  = p4-    , _cwetoeaStartedEventId    = p5-    }---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cwetoeaInitiatedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer-cwetoeaInitiatedEventId =-    lens _cwetoeaInitiatedEventId (\s a -> s { _cwetoeaInitiatedEventId = a })---- | The Id of the 'ChildWorkflowExecutionStarted' event recorded when this child--- workflow execution was started. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-cwetoeaStartedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer-cwetoeaStartedEventId =-    lens _cwetoeaStartedEventId (\s a -> s { _cwetoeaStartedEventId = a })---- | The type of the timeout that caused the child workflow execution to time out.-cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType-cwetoeaTimeoutType =-    lens _cwetoeaTimeoutType (\s a -> s { _cwetoeaTimeoutType = a })---- | The child workflow execution that timed out.-cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution-cwetoeaWorkflowExecution =-    lens _cwetoeaWorkflowExecution-        (\s a -> s { _cwetoeaWorkflowExecution = a })---- | The type of the child workflow execution.-cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType-cwetoeaWorkflowType =-    lens _cwetoeaWorkflowType (\s a -> s { _cwetoeaWorkflowType = a })--instance FromJSON ChildWorkflowExecutionTimedOutEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionTimedOutEventAttributes" $ \o -> ChildWorkflowExecutionTimedOutEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "timeoutType"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionTimedOutEventAttributes where-    toJSON ChildWorkflowExecutionTimedOutEventAttributes{..} = object-        [ "workflowExecution" .= _cwetoeaWorkflowExecution-        , "workflowType"      .= _cwetoeaWorkflowType-        , "timeoutType"       .= _cwetoeaTimeoutType-        , "initiatedEventId"  .= _cwetoeaInitiatedEventId-        , "startedEventId"    .= _cwetoeaStartedEventId-        ]--data StartChildWorkflowExecutionInitiatedEventAttributes = StartChildWorkflowExecutionInitiatedEventAttributes-    { _scweieaChildPolicy                  :: ChildPolicy-    , _scweieaControl                      :: Maybe Text-    , _scweieaDecisionTaskCompletedEventId :: Integer-    , _scweieaExecutionStartToCloseTimeout :: Maybe Text-    , _scweieaInput                        :: Maybe Text-    , _scweieaTagList                      :: List "tagList" Text-    , _scweieaTaskList                     :: TaskList-    , _scweieaTaskPriority                 :: Maybe Text-    , _scweieaTaskStartToCloseTimeout      :: Maybe Text-    , _scweieaWorkflowId                   :: Text-    , _scweieaWorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'StartChildWorkflowExecutionInitiatedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'scweieaChildPolicy' @::@ 'ChildPolicy'------ * 'scweieaControl' @::@ 'Maybe' 'Text'------ * 'scweieaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'scweieaExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'scweieaInput' @::@ 'Maybe' 'Text'------ * 'scweieaTagList' @::@ ['Text']------ * 'scweieaTaskList' @::@ 'TaskList'------ * 'scweieaTaskPriority' @::@ 'Maybe' 'Text'------ * 'scweieaTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'scweieaWorkflowId' @::@ 'Text'------ * 'scweieaWorkflowType' @::@ 'WorkflowType'----startChildWorkflowExecutionInitiatedEventAttributes :: Text -- ^ 'scweieaWorkflowId'-                                                    -> WorkflowType -- ^ 'scweieaWorkflowType'-                                                    -> TaskList -- ^ 'scweieaTaskList'-                                                    -> Integer -- ^ 'scweieaDecisionTaskCompletedEventId'-                                                    -> ChildPolicy -- ^ 'scweieaChildPolicy'-                                                    -> StartChildWorkflowExecutionInitiatedEventAttributes-startChildWorkflowExecutionInitiatedEventAttributes p1 p2 p3 p4 p5 = StartChildWorkflowExecutionInitiatedEventAttributes-    { _scweieaWorkflowId                   = p1-    , _scweieaWorkflowType                 = p2-    , _scweieaTaskList                     = p3-    , _scweieaDecisionTaskCompletedEventId = p4-    , _scweieaChildPolicy                  = p5-    , _scweieaControl                      = Nothing-    , _scweieaInput                        = Nothing-    , _scweieaExecutionStartToCloseTimeout = Nothing-    , _scweieaTaskPriority                 = Nothing-    , _scweieaTaskStartToCloseTimeout      = Nothing-    , _scweieaTagList                      = mempty-    }---- | The policy to use for the child workflow executions if this execution gets--- terminated by explicitly calling the 'TerminateWorkflowExecution' action or due--- to an expired timeout.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy-scweieaChildPolicy =-    lens _scweieaChildPolicy (\s a -> s { _scweieaChildPolicy = a })---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent decision tasks. This data is not sent to the activity.-scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaControl = lens _scweieaControl (\s a -> s { _scweieaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'StartChildWorkflowExecution' 'Decision' to request this--- child workflow execution. This information can be useful for diagnosing--- problems by tracing back the cause of events.-scweieaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Integer-scweieaDecisionTaskCompletedEventId =-    lens _scweieaDecisionTaskCompletedEventId-        (\s a -> s { _scweieaDecisionTaskCompletedEventId = a })---- | The maximum duration for the child workflow execution. If the workflow--- execution is not closed within this duration, it will be timed out and force--- terminated.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaExecutionStartToCloseTimeout =-    lens _scweieaExecutionStartToCloseTimeout-        (\s a -> s { _scweieaExecutionStartToCloseTimeout = a })---- | The inputs provided to the child workflow execution (if any).-scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaInput = lens _scweieaInput (\s a -> s { _scweieaInput = a })---- | The list of tags to associated with the child workflow execution.-scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]-scweieaTagList = lens _scweieaTagList (\s a -> s { _scweieaTagList = a }) . _List---- | The name of the task list used for the decision tasks of the child workflow--- execution.-scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList-scweieaTaskList = lens _scweieaTaskList (\s a -> s { _scweieaTaskList = a })---- | /Optional./ The priority assigned for the decision tasks for this workflow--- execution. Valid values are integers that range from Java's 'Integer.MIN_VALUE'--- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate--- higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaTaskPriority =-    lens _scweieaTaskPriority (\s a -> s { _scweieaTaskPriority = a })---- | The maximum duration allowed for the decision tasks for this workflow--- execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaTaskStartToCloseTimeout =-    lens _scweieaTaskStartToCloseTimeout-        (\s a -> s { _scweieaTaskStartToCloseTimeout = a })---- | The 'workflowId' of the child workflow execution.-scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text-scweieaWorkflowId =-    lens _scweieaWorkflowId (\s a -> s { _scweieaWorkflowId = a })---- | The type of the child workflow execution.-scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType-scweieaWorkflowType =-    lens _scweieaWorkflowType (\s a -> s { _scweieaWorkflowType = a })--instance FromJSON StartChildWorkflowExecutionInitiatedEventAttributes where-    parseJSON = withObject "StartChildWorkflowExecutionInitiatedEventAttributes" $ \o -> StartChildWorkflowExecutionInitiatedEventAttributes-        <$> o .:  "childPolicy"-        <*> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "executionStartToCloseTimeout"-        <*> o .:? "input"-        <*> o .:? "tagList" .!= mempty-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"-        <*> o .:? "taskStartToCloseTimeout"-        <*> o .:  "workflowId"-        <*> o .:  "workflowType"--instance ToJSON StartChildWorkflowExecutionInitiatedEventAttributes where-    toJSON StartChildWorkflowExecutionInitiatedEventAttributes{..} = object-        [ "workflowId"                   .= _scweieaWorkflowId-        , "workflowType"                 .= _scweieaWorkflowType-        , "control"                      .= _scweieaControl-        , "input"                        .= _scweieaInput-        , "executionStartToCloseTimeout" .= _scweieaExecutionStartToCloseTimeout-        , "taskList"                     .= _scweieaTaskList-        , "taskPriority"                 .= _scweieaTaskPriority-        , "decisionTaskCompletedEventId" .= _scweieaDecisionTaskCompletedEventId-        , "childPolicy"                  .= _scweieaChildPolicy-        , "taskStartToCloseTimeout"      .= _scweieaTaskStartToCloseTimeout-        , "tagList"                      .= _scweieaTagList-        ]--data CancelWorkflowExecutionFailedEventAttributes = CancelWorkflowExecutionFailedEventAttributes-    { _cwefea1Cause                        :: CancelWorkflowExecutionFailedCause-    , _cwefea1DecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'CancelWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwefea1Cause' @::@ 'CancelWorkflowExecutionFailedCause'------ * 'cwefea1DecisionTaskCompletedEventId' @::@ 'Integer'----cancelWorkflowExecutionFailedEventAttributes :: CancelWorkflowExecutionFailedCause -- ^ 'cwefea1Cause'-                                             -> Integer -- ^ 'cwefea1DecisionTaskCompletedEventId'-                                             -> CancelWorkflowExecutionFailedEventAttributes-cancelWorkflowExecutionFailedEventAttributes p1 p2 = CancelWorkflowExecutionFailedEventAttributes-    { _cwefea1Cause                        = p1-    , _cwefea1DecisionTaskCompletedEventId = p2-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-cwefea1Cause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause-cwefea1Cause = lens _cwefea1Cause (\s a -> s { _cwefea1Cause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CancelWorkflowExecution' decision for this cancellation--- request. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-cwefea1DecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer-cwefea1DecisionTaskCompletedEventId =-    lens _cwefea1DecisionTaskCompletedEventId-        (\s a -> s { _cwefea1DecisionTaskCompletedEventId = a })--instance FromJSON CancelWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "CancelWorkflowExecutionFailedEventAttributes" $ \o -> CancelWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON CancelWorkflowExecutionFailedEventAttributes where-    toJSON CancelWorkflowExecutionFailedEventAttributes{..} = object-        [ "cause"                        .= _cwefea1Cause-        , "decisionTaskCompletedEventId" .= _cwefea1DecisionTaskCompletedEventId-        ]--data WorkflowExecutionTerminatedEventAttributes = WorkflowExecutionTerminatedEventAttributes-    { _weteaCause       :: Maybe WorkflowExecutionTerminatedCause-    , _weteaChildPolicy :: ChildPolicy-    , _weteaDetails     :: Maybe Text-    , _weteaReason      :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionTerminatedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'weteaCause' @::@ 'Maybe' 'WorkflowExecutionTerminatedCause'------ * 'weteaChildPolicy' @::@ 'ChildPolicy'------ * 'weteaDetails' @::@ 'Maybe' 'Text'------ * 'weteaReason' @::@ 'Maybe' 'Text'----workflowExecutionTerminatedEventAttributes :: ChildPolicy -- ^ 'weteaChildPolicy'-                                           -> WorkflowExecutionTerminatedEventAttributes-workflowExecutionTerminatedEventAttributes p1 = WorkflowExecutionTerminatedEventAttributes-    { _weteaChildPolicy = p1-    , _weteaReason      = Nothing-    , _weteaDetails     = Nothing-    , _weteaCause       = Nothing-    }---- | If set, indicates that the workflow execution was automatically terminated,--- and specifies the cause. This happens if the parent workflow execution times--- out or is terminated and the child policy is set to terminate child--- executions.-weteaCause :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe WorkflowExecutionTerminatedCause)-weteaCause = lens _weteaCause (\s a -> s { _weteaCause = a })---- | The policy used for the child workflow executions of this workflow execution.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy-weteaChildPolicy = lens _weteaChildPolicy (\s a -> s { _weteaChildPolicy = a })---- | The details provided for the termination (if any).-weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)-weteaDetails = lens _weteaDetails (\s a -> s { _weteaDetails = a })---- | The reason provided for the termination (if any).-weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)-weteaReason = lens _weteaReason (\s a -> s { _weteaReason = a })--instance FromJSON WorkflowExecutionTerminatedEventAttributes where-    parseJSON = withObject "WorkflowExecutionTerminatedEventAttributes" $ \o -> WorkflowExecutionTerminatedEventAttributes-        <$> o .:? "cause"-        <*> o .:  "childPolicy"-        <*> o .:? "details"-        <*> o .:? "reason"--instance ToJSON WorkflowExecutionTerminatedEventAttributes where-    toJSON WorkflowExecutionTerminatedEventAttributes{..} = object-        [ "reason"      .= _weteaReason-        , "details"     .= _weteaDetails-        , "childPolicy" .= _weteaChildPolicy-        , "cause"       .= _weteaCause-        ]--newtype TaskList = TaskList-    { _tlName :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'TaskList' constructor.------ The fields accessible through corresponding lenses are:------ * 'tlName' @::@ 'Text'----taskList :: Text -- ^ 'tlName'-         -> TaskList-taskList p1 = TaskList-    { _tlName = p1-    }---- | The name of the task list.-tlName :: Lens' TaskList Text-tlName = lens _tlName (\s a -> s { _tlName = a })--instance FromJSON TaskList where-    parseJSON = withObject "TaskList" $ \o -> TaskList-        <$> o .:  "name"--instance ToJSON TaskList where-    toJSON TaskList{..} = object-        [ "name" .= _tlName-        ]--data ScheduleActivityTaskFailedCause-    = SATFCActivityCreationRateExceeded           -- ^ ACTIVITY_CREATION_RATE_EXCEEDED-    | SATFCActivityIdAlreadyInUse                 -- ^ ACTIVITY_ID_ALREADY_IN_USE-    | SATFCActivityTypeDeprecated                 -- ^ ACTIVITY_TYPE_DEPRECATED-    | SATFCActivityTypeDoesNotExist               -- ^ ACTIVITY_TYPE_DOES_NOT_EXIST-    | SATFCDefaultHeartbeatTimeoutUndefined       -- ^ DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED-    | SATFCDefaultScheduleToCloseTimeoutUndefined -- ^ DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED-    | SATFCDefaultScheduleToStartTimeoutUndefined -- ^ DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED-    | SATFCDefaultStartToCloseTimeoutUndefined    -- ^ DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED-    | SATFCDefaultTaskListUndefined               -- ^ DEFAULT_TASK_LIST_UNDEFINED-    | SATFCOpenActivitiesLimitExceeded            -- ^ OPEN_ACTIVITIES_LIMIT_EXCEEDED-    | SATFCOperationNotPermitted                  -- ^ OPERATION_NOT_PERMITTED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable ScheduleActivityTaskFailedCause--instance FromText ScheduleActivityTaskFailedCause where-    parser = takeLowerText >>= \case-        "activity_creation_rate_exceeded"             -> pure SATFCActivityCreationRateExceeded-        "activity_id_already_in_use"                  -> pure SATFCActivityIdAlreadyInUse-        "activity_type_deprecated"                    -> pure SATFCActivityTypeDeprecated-        "activity_type_does_not_exist"                -> pure SATFCActivityTypeDoesNotExist-        "default_heartbeat_timeout_undefined"         -> pure SATFCDefaultHeartbeatTimeoutUndefined-        "default_schedule_to_close_timeout_undefined" -> pure SATFCDefaultScheduleToCloseTimeoutUndefined-        "default_schedule_to_start_timeout_undefined" -> pure SATFCDefaultScheduleToStartTimeoutUndefined-        "default_start_to_close_timeout_undefined"    -> pure SATFCDefaultStartToCloseTimeoutUndefined-        "default_task_list_undefined"                 -> pure SATFCDefaultTaskListUndefined-        "open_activities_limit_exceeded"              -> pure SATFCOpenActivitiesLimitExceeded-        "operation_not_permitted"                     -> pure SATFCOperationNotPermitted-        e                                             -> fail $-            "Failure parsing ScheduleActivityTaskFailedCause from " ++ show e--instance ToText ScheduleActivityTaskFailedCause where-    toText = \case-        SATFCActivityCreationRateExceeded           -> "ACTIVITY_CREATION_RATE_EXCEEDED"-        SATFCActivityIdAlreadyInUse                 -> "ACTIVITY_ID_ALREADY_IN_USE"-        SATFCActivityTypeDeprecated                 -> "ACTIVITY_TYPE_DEPRECATED"-        SATFCActivityTypeDoesNotExist               -> "ACTIVITY_TYPE_DOES_NOT_EXIST"-        SATFCDefaultHeartbeatTimeoutUndefined       -> "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"-        SATFCDefaultScheduleToCloseTimeoutUndefined -> "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"-        SATFCDefaultScheduleToStartTimeoutUndefined -> "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"-        SATFCDefaultStartToCloseTimeoutUndefined    -> "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"-        SATFCDefaultTaskListUndefined               -> "DEFAULT_TASK_LIST_UNDEFINED"-        SATFCOpenActivitiesLimitExceeded            -> "OPEN_ACTIVITIES_LIMIT_EXCEEDED"-        SATFCOperationNotPermitted                  -> "OPERATION_NOT_PERMITTED"--instance ToByteString ScheduleActivityTaskFailedCause-instance ToHeader     ScheduleActivityTaskFailedCause-instance ToQuery      ScheduleActivityTaskFailedCause--instance FromJSON ScheduleActivityTaskFailedCause where-    parseJSON = parseJSONText "ScheduleActivityTaskFailedCause"--instance ToJSON ScheduleActivityTaskFailedCause where-    toJSON = toJSONText--data ChildWorkflowExecutionCanceledEventAttributes = ChildWorkflowExecutionCanceledEventAttributes-    { _cwecea1Details           :: Maybe Text-    , _cwecea1InitiatedEventId  :: Integer-    , _cwecea1StartedEventId    :: Integer-    , _cwecea1WorkflowExecution :: WorkflowExecution-    , _cwecea1WorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionCanceledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwecea1Details' @::@ 'Maybe' 'Text'------ * 'cwecea1InitiatedEventId' @::@ 'Integer'------ * 'cwecea1StartedEventId' @::@ 'Integer'------ * 'cwecea1WorkflowExecution' @::@ 'WorkflowExecution'------ * 'cwecea1WorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionCanceledEventAttributes :: WorkflowExecution -- ^ 'cwecea1WorkflowExecution'-                                              -> WorkflowType -- ^ 'cwecea1WorkflowType'-                                              -> Integer -- ^ 'cwecea1InitiatedEventId'-                                              -> Integer -- ^ 'cwecea1StartedEventId'-                                              -> ChildWorkflowExecutionCanceledEventAttributes-childWorkflowExecutionCanceledEventAttributes p1 p2 p3 p4 = ChildWorkflowExecutionCanceledEventAttributes-    { _cwecea1WorkflowExecution = p1-    , _cwecea1WorkflowType      = p2-    , _cwecea1InitiatedEventId  = p3-    , _cwecea1StartedEventId    = p4-    , _cwecea1Details           = Nothing-    }---- | Details of the cancellation (if provided).-cwecea1Details :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)-cwecea1Details = lens _cwecea1Details (\s a -> s { _cwecea1Details = a })---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cwecea1InitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer-cwecea1InitiatedEventId =-    lens _cwecea1InitiatedEventId (\s a -> s { _cwecea1InitiatedEventId = a })---- | The Id of the 'ChildWorkflowExecutionStarted' event recorded when this child--- workflow execution was started. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-cwecea1StartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer-cwecea1StartedEventId =-    lens _cwecea1StartedEventId (\s a -> s { _cwecea1StartedEventId = a })---- | The child workflow execution that was canceled.-cwecea1WorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution-cwecea1WorkflowExecution =-    lens _cwecea1WorkflowExecution-        (\s a -> s { _cwecea1WorkflowExecution = a })---- | The type of the child workflow execution.-cwecea1WorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType-cwecea1WorkflowType =-    lens _cwecea1WorkflowType (\s a -> s { _cwecea1WorkflowType = a })--instance FromJSON ChildWorkflowExecutionCanceledEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionCanceledEventAttributes" $ \o -> ChildWorkflowExecutionCanceledEventAttributes-        <$> o .:? "details"-        <*> o .:  "initiatedEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionCanceledEventAttributes where-    toJSON ChildWorkflowExecutionCanceledEventAttributes{..} = object-        [ "workflowExecution" .= _cwecea1WorkflowExecution-        , "workflowType"      .= _cwecea1WorkflowType-        , "details"           .= _cwecea1Details-        , "initiatedEventId"  .= _cwecea1InitiatedEventId-        , "startedEventId"    .= _cwecea1StartedEventId-        ]--data WorkflowExecutionInfo = WorkflowExecutionInfo-    { _weiCancelRequested :: Maybe Bool-    , _weiCloseStatus     :: Maybe CloseStatus-    , _weiCloseTimestamp  :: Maybe POSIX-    , _weiExecution       :: WorkflowExecution-    , _weiExecutionStatus :: ExecutionStatus-    , _weiParent          :: Maybe WorkflowExecution-    , _weiStartTimestamp  :: POSIX-    , _weiTagList         :: List "tagList" Text-    , _weiWorkflowType    :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionInfo' constructor.------ The fields accessible through corresponding lenses are:------ * 'weiCancelRequested' @::@ 'Maybe' 'Bool'------ * 'weiCloseStatus' @::@ 'Maybe' 'CloseStatus'------ * 'weiCloseTimestamp' @::@ 'Maybe' 'UTCTime'------ * 'weiExecution' @::@ 'WorkflowExecution'------ * 'weiExecutionStatus' @::@ 'ExecutionStatus'------ * 'weiParent' @::@ 'Maybe' 'WorkflowExecution'------ * 'weiStartTimestamp' @::@ 'UTCTime'------ * 'weiTagList' @::@ ['Text']------ * 'weiWorkflowType' @::@ 'WorkflowType'----workflowExecutionInfo :: WorkflowExecution -- ^ 'weiExecution'-                      -> WorkflowType -- ^ 'weiWorkflowType'-                      -> UTCTime -- ^ 'weiStartTimestamp'-                      -> ExecutionStatus -- ^ 'weiExecutionStatus'-                      -> WorkflowExecutionInfo-workflowExecutionInfo p1 p2 p3 p4 = WorkflowExecutionInfo-    { _weiExecution       = p1-    , _weiWorkflowType    = p2-    , _weiStartTimestamp  = withIso _Time (const id) p3-    , _weiExecutionStatus = p4-    , _weiCloseTimestamp  = Nothing-    , _weiCloseStatus     = Nothing-    , _weiParent          = Nothing-    , _weiTagList         = mempty-    , _weiCancelRequested = Nothing-    }---- | Set to true if a cancellation is requested for this workflow execution.-weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)-weiCancelRequested =-    lens _weiCancelRequested (\s a -> s { _weiCancelRequested = a })---- | If the execution status is closed then this specifies how the execution was--- closed:------ 'COMPLETED': the execution was successfully completed.  'CANCELED': the--- execution was canceled.Cancellation allows the implementation to gracefully--- clean up before the execution is closed.  'TERMINATED': the execution was force--- terminated.  'FAILED': the execution failed to complete.  'TIMED_OUT': the--- execution did not complete in the alloted time and was automatically timed--- out.  'CONTINUED_AS_NEW': the execution is logically continued. This means the--- current execution was completed and a new execution was started to carry on--- the workflow.-weiCloseStatus :: Lens' WorkflowExecutionInfo (Maybe CloseStatus)-weiCloseStatus = lens _weiCloseStatus (\s a -> s { _weiCloseStatus = a })---- | The time when the workflow execution was closed. Set only if the execution--- status is CLOSED.-weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)-weiCloseTimestamp =-    lens _weiCloseTimestamp (\s a -> s { _weiCloseTimestamp = a })-        . mapping _Time---- | The workflow execution this information is about.-weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution-weiExecution = lens _weiExecution (\s a -> s { _weiExecution = a })---- | The current status of the execution.-weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus-weiExecutionStatus =-    lens _weiExecutionStatus (\s a -> s { _weiExecutionStatus = a })---- | If this workflow execution is a child of another execution then contains the--- workflow execution that started this execution.-weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)-weiParent = lens _weiParent (\s a -> s { _weiParent = a })---- | The time when the execution was started.-weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime-weiStartTimestamp =-    lens _weiStartTimestamp (\s a -> s { _weiStartTimestamp = a })-        . _Time---- | The list of tags associated with the workflow execution. Tags can be used to--- identify and list workflow executions of interest through the visibility--- APIs. A workflow execution can have a maximum of 5 tags.-weiTagList :: Lens' WorkflowExecutionInfo [Text]-weiTagList = lens _weiTagList (\s a -> s { _weiTagList = a }) . _List---- | The type of the workflow execution.-weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType-weiWorkflowType = lens _weiWorkflowType (\s a -> s { _weiWorkflowType = a })--instance FromJSON WorkflowExecutionInfo where-    parseJSON = withObject "WorkflowExecutionInfo" $ \o -> WorkflowExecutionInfo-        <$> o .:? "cancelRequested"-        <*> o .:? "closeStatus"-        <*> o .:? "closeTimestamp"-        <*> o .:  "execution"-        <*> o .:  "executionStatus"-        <*> o .:? "parent"-        <*> o .:  "startTimestamp"-        <*> o .:? "tagList" .!= mempty-        <*> o .:  "workflowType"--instance ToJSON WorkflowExecutionInfo where-    toJSON WorkflowExecutionInfo{..} = object-        [ "execution"       .= _weiExecution-        , "workflowType"    .= _weiWorkflowType-        , "startTimestamp"  .= _weiStartTimestamp-        , "closeTimestamp"  .= _weiCloseTimestamp-        , "executionStatus" .= _weiExecutionStatus-        , "closeStatus"     .= _weiCloseStatus-        , "parent"          .= _weiParent-        , "tagList"         .= _weiTagList-        , "cancelRequested" .= _weiCancelRequested-        ]--data SignalExternalWorkflowExecutionFailedEventAttributes = SignalExternalWorkflowExecutionFailedEventAttributes-    { _sewefeaCause                        :: SignalExternalWorkflowExecutionFailedCause-    , _sewefeaControl                      :: Maybe Text-    , _sewefeaDecisionTaskCompletedEventId :: Integer-    , _sewefeaInitiatedEventId             :: Integer-    , _sewefeaRunId                        :: Maybe Text-    , _sewefeaWorkflowId                   :: Text-    } deriving (Eq, Read, Show)---- | 'SignalExternalWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'sewefeaCause' @::@ 'SignalExternalWorkflowExecutionFailedCause'------ * 'sewefeaControl' @::@ 'Maybe' 'Text'------ * 'sewefeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'sewefeaInitiatedEventId' @::@ 'Integer'------ * 'sewefeaRunId' @::@ 'Maybe' 'Text'------ * 'sewefeaWorkflowId' @::@ 'Text'----signalExternalWorkflowExecutionFailedEventAttributes :: Text -- ^ 'sewefeaWorkflowId'-                                                     -> SignalExternalWorkflowExecutionFailedCause -- ^ 'sewefeaCause'-                                                     -> Integer -- ^ 'sewefeaInitiatedEventId'-                                                     -> Integer -- ^ 'sewefeaDecisionTaskCompletedEventId'-                                                     -> SignalExternalWorkflowExecutionFailedEventAttributes-signalExternalWorkflowExecutionFailedEventAttributes p1 p2 p3 p4 = SignalExternalWorkflowExecutionFailedEventAttributes-    { _sewefeaWorkflowId                   = p1-    , _sewefeaCause                        = p2-    , _sewefeaInitiatedEventId             = p3-    , _sewefeaDecisionTaskCompletedEventId = p4-    , _sewefeaRunId                        = Nothing-    , _sewefeaControl                      = Nothing-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause-sewefeaCause = lens _sewefeaCause (\s a -> s { _sewefeaCause = a })--sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-sewefeaControl = lens _sewefeaControl (\s a -> s { _sewefeaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'SignalExternalWorkflowExecution' decision for this--- signal. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-sewefeaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer-sewefeaDecisionTaskCompletedEventId =-    lens _sewefeaDecisionTaskCompletedEventId-        (\s a -> s { _sewefeaDecisionTaskCompletedEventId = a })---- | The id of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to--- the 'SignalExternalWorkflowExecution' decision to request this signal. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-sewefeaInitiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer-sewefeaInitiatedEventId =-    lens _sewefeaInitiatedEventId (\s a -> s { _sewefeaInitiatedEventId = a })---- | The 'runId' of the external workflow execution that the signal was being--- delivered to.-sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-sewefeaRunId = lens _sewefeaRunId (\s a -> s { _sewefeaRunId = a })---- | The 'workflowId' of the external workflow execution that the signal was being--- delivered to.-sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text-sewefeaWorkflowId =-    lens _sewefeaWorkflowId (\s a -> s { _sewefeaWorkflowId = a })--instance FromJSON SignalExternalWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "SignalExternalWorkflowExecutionFailedEventAttributes" $ \o -> SignalExternalWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "initiatedEventId"-        <*> o .:? "runId"-        <*> o .:  "workflowId"--instance ToJSON SignalExternalWorkflowExecutionFailedEventAttributes where-    toJSON SignalExternalWorkflowExecutionFailedEventAttributes{..} = object-        [ "workflowId"                   .= _sewefeaWorkflowId-        , "runId"                        .= _sewefeaRunId-        , "cause"                        .= _sewefeaCause-        , "initiatedEventId"             .= _sewefeaInitiatedEventId-        , "decisionTaskCompletedEventId" .= _sewefeaDecisionTaskCompletedEventId-        , "control"                      .= _sewefeaControl-        ]--newtype TagFilter = TagFilter-    { _tfTag :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'TagFilter' constructor.------ The fields accessible through corresponding lenses are:------ * 'tfTag' @::@ 'Text'----tagFilter :: Text -- ^ 'tfTag'-          -> TagFilter-tagFilter p1 = TagFilter-    { _tfTag = p1-    }---- | Required. Specifies the tag that must be associated with the execution for it--- to meet the filter criteria.-tfTag :: Lens' TagFilter Text-tfTag = lens _tfTag (\s a -> s { _tfTag = a })--instance FromJSON TagFilter where-    parseJSON = withObject "TagFilter" $ \o -> TagFilter-        <$> o .:  "tag"--instance ToJSON TagFilter where-    toJSON TagFilter{..} = object-        [ "tag" .= _tfTag-        ]--data ChildPolicy-    = Abandon       -- ^ ABANDON-    | RequestCancel -- ^ REQUEST_CANCEL-    | Terminate     -- ^ TERMINATE-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable ChildPolicy--instance FromText ChildPolicy where-    parser = takeLowerText >>= \case-        "abandon"        -> pure Abandon-        "request_cancel" -> pure RequestCancel-        "terminate"      -> pure Terminate-        e                -> fail $-            "Failure parsing ChildPolicy from " ++ show e--instance ToText ChildPolicy where-    toText = \case-        Abandon       -> "ABANDON"-        RequestCancel -> "REQUEST_CANCEL"-        Terminate     -> "TERMINATE"--instance ToByteString ChildPolicy-instance ToHeader     ChildPolicy-instance ToQuery      ChildPolicy--instance FromJSON ChildPolicy where-    parseJSON = parseJSONText "ChildPolicy"--instance ToJSON ChildPolicy where-    toJSON = toJSONText--data ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes-    { _atseaIdentity         :: Maybe Text-    , _atseaScheduledEventId :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityTaskStartedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atseaIdentity' @::@ 'Maybe' 'Text'------ * 'atseaScheduledEventId' @::@ 'Integer'----activityTaskStartedEventAttributes :: Integer -- ^ 'atseaScheduledEventId'-                                   -> ActivityTaskStartedEventAttributes-activityTaskStartedEventAttributes p1 = ActivityTaskStartedEventAttributes-    { _atseaScheduledEventId = p1-    , _atseaIdentity         = Nothing-    }---- | Identity of the worker that was assigned this task. This aids diagnostics--- when problems arise. The form of this identity is user defined.-atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)-atseaIdentity = lens _atseaIdentity (\s a -> s { _atseaIdentity = a })---- | The id of the 'ActivityTaskScheduled' event that was recorded when this--- activity task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-atseaScheduledEventId :: Lens' ActivityTaskStartedEventAttributes Integer-atseaScheduledEventId =-    lens _atseaScheduledEventId (\s a -> s { _atseaScheduledEventId = a })--instance FromJSON ActivityTaskStartedEventAttributes where-    parseJSON = withObject "ActivityTaskStartedEventAttributes" $ \o -> ActivityTaskStartedEventAttributes-        <$> o .:? "identity"-        <*> o .:  "scheduledEventId"--instance ToJSON ActivityTaskStartedEventAttributes where-    toJSON ActivityTaskStartedEventAttributes{..} = object-        [ "identity"         .= _atseaIdentity-        , "scheduledEventId" .= _atseaScheduledEventId-        ]--data CloseStatus-    = CSCanceled       -- ^ CANCELED-    | CSCompleted      -- ^ COMPLETED-    | CSContinuedAsNew -- ^ CONTINUED_AS_NEW-    | CSFailed         -- ^ FAILED-    | CSTerminated     -- ^ TERMINATED-    | CSTimedOut       -- ^ TIMED_OUT-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable CloseStatus--instance FromText CloseStatus where-    parser = takeLowerText >>= \case-        "canceled"         -> pure CSCanceled-        "completed"        -> pure CSCompleted-        "continued_as_new" -> pure CSContinuedAsNew-        "failed"           -> pure CSFailed-        "terminated"       -> pure CSTerminated-        "timed_out"        -> pure CSTimedOut-        e                  -> fail $-            "Failure parsing CloseStatus from " ++ show e--instance ToText CloseStatus where-    toText = \case-        CSCanceled       -> "CANCELED"-        CSCompleted      -> "COMPLETED"-        CSContinuedAsNew -> "CONTINUED_AS_NEW"-        CSFailed         -> "FAILED"-        CSTerminated     -> "TERMINATED"-        CSTimedOut       -> "TIMED_OUT"--instance ToByteString CloseStatus-instance ToHeader     CloseStatus-instance ToQuery      CloseStatus--instance FromJSON CloseStatus where-    parseJSON = parseJSONText "CloseStatus"--instance ToJSON CloseStatus where-    toJSON = toJSONText--data CompleteWorkflowExecutionFailedCause-    = CompleteWorkflowExecutionFailedCauseOperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-    | CompleteWorkflowExecutionFailedCauseUnhandledDecision     -- ^ UNHANDLED_DECISION-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable CompleteWorkflowExecutionFailedCause--instance FromText CompleteWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted" -> pure CompleteWorkflowExecutionFailedCauseOperationNotPermitted-        "unhandled_decision"      -> pure CompleteWorkflowExecutionFailedCauseUnhandledDecision-        e                         -> fail $-            "Failure parsing CompleteWorkflowExecutionFailedCause from " ++ show e--instance ToText CompleteWorkflowExecutionFailedCause where-    toText = \case-        CompleteWorkflowExecutionFailedCauseOperationNotPermitted -> "OPERATION_NOT_PERMITTED"-        CompleteWorkflowExecutionFailedCauseUnhandledDecision     -> "UNHANDLED_DECISION"--instance ToByteString CompleteWorkflowExecutionFailedCause-instance ToHeader     CompleteWorkflowExecutionFailedCause-instance ToQuery      CompleteWorkflowExecutionFailedCause--instance FromJSON CompleteWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "CompleteWorkflowExecutionFailedCause"--instance ToJSON CompleteWorkflowExecutionFailedCause where-    toJSON = toJSONText--data StartTimerFailedCause-    = STFCOpenTimersLimitExceeded   -- ^ OPEN_TIMERS_LIMIT_EXCEEDED-    | STFCOperationNotPermitted     -- ^ OPERATION_NOT_PERMITTED-    | STFCTimerCreationRateExceeded -- ^ TIMER_CREATION_RATE_EXCEEDED-    | STFCTimerIdAlreadyInUse       -- ^ TIMER_ID_ALREADY_IN_USE-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable StartTimerFailedCause--instance FromText StartTimerFailedCause where-    parser = takeLowerText >>= \case-        "open_timers_limit_exceeded"   -> pure STFCOpenTimersLimitExceeded-        "operation_not_permitted"      -> pure STFCOperationNotPermitted-        "timer_creation_rate_exceeded" -> pure STFCTimerCreationRateExceeded-        "timer_id_already_in_use"      -> pure STFCTimerIdAlreadyInUse-        e                              -> fail $-            "Failure parsing StartTimerFailedCause from " ++ show e--instance ToText StartTimerFailedCause where-    toText = \case-        STFCOpenTimersLimitExceeded   -> "OPEN_TIMERS_LIMIT_EXCEEDED"-        STFCOperationNotPermitted     -> "OPERATION_NOT_PERMITTED"-        STFCTimerCreationRateExceeded -> "TIMER_CREATION_RATE_EXCEEDED"-        STFCTimerIdAlreadyInUse       -> "TIMER_ID_ALREADY_IN_USE"--instance ToByteString StartTimerFailedCause-instance ToHeader     StartTimerFailedCause-instance ToQuery      StartTimerFailedCause--instance FromJSON StartTimerFailedCause where-    parseJSON = parseJSONText "StartTimerFailedCause"--instance ToJSON StartTimerFailedCause where-    toJSON = toJSONText--data ActivityTaskCancelRequestedEventAttributes = ActivityTaskCancelRequestedEventAttributes-    { _atcreaActivityId                   :: Text-    , _atcreaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityTaskCancelRequestedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atcreaActivityId' @::@ 'Text'------ * 'atcreaDecisionTaskCompletedEventId' @::@ 'Integer'----activityTaskCancelRequestedEventAttributes :: Integer -- ^ 'atcreaDecisionTaskCompletedEventId'-                                           -> Text -- ^ 'atcreaActivityId'-                                           -> ActivityTaskCancelRequestedEventAttributes-activityTaskCancelRequestedEventAttributes p1 p2 = ActivityTaskCancelRequestedEventAttributes-    { _atcreaDecisionTaskCompletedEventId = p1-    , _atcreaActivityId                   = p2-    }---- | The unique ID of the task.-atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text-atcreaActivityId = lens _atcreaActivityId (\s a -> s { _atcreaActivityId = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'RequestCancelActivityTask' decision for this cancellation--- request. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-atcreaDecisionTaskCompletedEventId :: Lens' ActivityTaskCancelRequestedEventAttributes Integer-atcreaDecisionTaskCompletedEventId =-    lens _atcreaDecisionTaskCompletedEventId-        (\s a -> s { _atcreaDecisionTaskCompletedEventId = a })--instance FromJSON ActivityTaskCancelRequestedEventAttributes where-    parseJSON = withObject "ActivityTaskCancelRequestedEventAttributes" $ \o -> ActivityTaskCancelRequestedEventAttributes-        <$> o .:  "activityId"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON ActivityTaskCancelRequestedEventAttributes where-    toJSON ActivityTaskCancelRequestedEventAttributes{..} = object-        [ "decisionTaskCompletedEventId" .= _atcreaDecisionTaskCompletedEventId-        , "activityId"                   .= _atcreaActivityId-        ]--data WorkflowExecutionTimedOutEventAttributes = WorkflowExecutionTimedOutEventAttributes-    { _wetoeaChildPolicy :: ChildPolicy-    , _wetoeaTimeoutType :: WorkflowExecutionTimeoutType-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionTimedOutEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wetoeaChildPolicy' @::@ 'ChildPolicy'------ * 'wetoeaTimeoutType' @::@ 'WorkflowExecutionTimeoutType'----workflowExecutionTimedOutEventAttributes :: WorkflowExecutionTimeoutType -- ^ 'wetoeaTimeoutType'-                                         -> ChildPolicy -- ^ 'wetoeaChildPolicy'-                                         -> WorkflowExecutionTimedOutEventAttributes-workflowExecutionTimedOutEventAttributes p1 p2 = WorkflowExecutionTimedOutEventAttributes-    { _wetoeaTimeoutType = p1-    , _wetoeaChildPolicy = p2-    }---- | The policy used for the child workflow executions of this workflow execution.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy-wetoeaChildPolicy =-    lens _wetoeaChildPolicy (\s a -> s { _wetoeaChildPolicy = a })---- | The type of timeout that caused this event.-wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType-wetoeaTimeoutType =-    lens _wetoeaTimeoutType (\s a -> s { _wetoeaTimeoutType = a })--instance FromJSON WorkflowExecutionTimedOutEventAttributes where-    parseJSON = withObject "WorkflowExecutionTimedOutEventAttributes" $ \o -> WorkflowExecutionTimedOutEventAttributes-        <$> o .:  "childPolicy"-        <*> o .:  "timeoutType"--instance ToJSON WorkflowExecutionTimedOutEventAttributes where-    toJSON WorkflowExecutionTimedOutEventAttributes{..} = object-        [ "timeoutType" .= _wetoeaTimeoutType-        , "childPolicy" .= _wetoeaChildPolicy-        ]--data ChildWorkflowExecutionTerminatedEventAttributes = ChildWorkflowExecutionTerminatedEventAttributes-    { _cweteaInitiatedEventId  :: Integer-    , _cweteaStartedEventId    :: Integer-    , _cweteaWorkflowExecution :: WorkflowExecution-    , _cweteaWorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionTerminatedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cweteaInitiatedEventId' @::@ 'Integer'------ * 'cweteaStartedEventId' @::@ 'Integer'------ * 'cweteaWorkflowExecution' @::@ 'WorkflowExecution'------ * 'cweteaWorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionTerminatedEventAttributes :: WorkflowExecution -- ^ 'cweteaWorkflowExecution'-                                                -> WorkflowType -- ^ 'cweteaWorkflowType'-                                                -> Integer -- ^ 'cweteaInitiatedEventId'-                                                -> Integer -- ^ 'cweteaStartedEventId'-                                                -> ChildWorkflowExecutionTerminatedEventAttributes-childWorkflowExecutionTerminatedEventAttributes p1 p2 p3 p4 = ChildWorkflowExecutionTerminatedEventAttributes-    { _cweteaWorkflowExecution = p1-    , _cweteaWorkflowType      = p2-    , _cweteaInitiatedEventId  = p3-    , _cweteaStartedEventId    = p4-    }---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cweteaInitiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer-cweteaInitiatedEventId =-    lens _cweteaInitiatedEventId (\s a -> s { _cweteaInitiatedEventId = a })---- | The Id of the 'ChildWorkflowExecutionStarted' event recorded when this child--- workflow execution was started. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-cweteaStartedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer-cweteaStartedEventId =-    lens _cweteaStartedEventId (\s a -> s { _cweteaStartedEventId = a })---- | The child workflow execution that was terminated.-cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution-cweteaWorkflowExecution =-    lens _cweteaWorkflowExecution (\s a -> s { _cweteaWorkflowExecution = a })---- | The type of the child workflow execution.-cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType-cweteaWorkflowType =-    lens _cweteaWorkflowType (\s a -> s { _cweteaWorkflowType = a })--instance FromJSON ChildWorkflowExecutionTerminatedEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionTerminatedEventAttributes" $ \o -> ChildWorkflowExecutionTerminatedEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:  "startedEventId"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionTerminatedEventAttributes where-    toJSON ChildWorkflowExecutionTerminatedEventAttributes{..} = object-        [ "workflowExecution" .= _cweteaWorkflowExecution-        , "workflowType"      .= _cweteaWorkflowType-        , "initiatedEventId"  .= _cweteaInitiatedEventId-        , "startedEventId"    .= _cweteaStartedEventId-        ]--data WorkflowExecutionCanceledEventAttributes = WorkflowExecutionCanceledEventAttributes-    { _wecea1DecisionTaskCompletedEventId :: Integer-    , _wecea1Details                      :: Maybe Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecutionCanceledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wecea1DecisionTaskCompletedEventId' @::@ 'Integer'------ * 'wecea1Details' @::@ 'Maybe' 'Text'----workflowExecutionCanceledEventAttributes :: Integer -- ^ 'wecea1DecisionTaskCompletedEventId'-                                         -> WorkflowExecutionCanceledEventAttributes-workflowExecutionCanceledEventAttributes p1 = WorkflowExecutionCanceledEventAttributes-    { _wecea1DecisionTaskCompletedEventId = p1-    , _wecea1Details                      = Nothing-    }---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'CancelWorkflowExecution' decision for this cancellation--- request. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-wecea1DecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer-wecea1DecisionTaskCompletedEventId =-    lens _wecea1DecisionTaskCompletedEventId-        (\s a -> s { _wecea1DecisionTaskCompletedEventId = a })---- | Details for the cancellation (if any).-wecea1Details :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)-wecea1Details = lens _wecea1Details (\s a -> s { _wecea1Details = a })--instance FromJSON WorkflowExecutionCanceledEventAttributes where-    parseJSON = withObject "WorkflowExecutionCanceledEventAttributes" $ \o -> WorkflowExecutionCanceledEventAttributes-        <$> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "details"--instance ToJSON WorkflowExecutionCanceledEventAttributes where-    toJSON WorkflowExecutionCanceledEventAttributes{..} = object-        [ "details"                      .= _wecea1Details-        , "decisionTaskCompletedEventId" .= _wecea1DecisionTaskCompletedEventId-        ]--data WorkflowExecutionSignaledEventAttributes = WorkflowExecutionSignaledEventAttributes-    { _wesea1ExternalInitiatedEventId  :: Maybe Integer-    , _wesea1ExternalWorkflowExecution :: Maybe WorkflowExecution-    , _wesea1Input                     :: Maybe Text-    , _wesea1SignalName                :: Text-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionSignaledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wesea1ExternalInitiatedEventId' @::@ 'Maybe' 'Integer'------ * 'wesea1ExternalWorkflowExecution' @::@ 'Maybe' 'WorkflowExecution'------ * 'wesea1Input' @::@ 'Maybe' 'Text'------ * 'wesea1SignalName' @::@ 'Text'----workflowExecutionSignaledEventAttributes :: Text -- ^ 'wesea1SignalName'-                                         -> WorkflowExecutionSignaledEventAttributes-workflowExecutionSignaledEventAttributes p1 = WorkflowExecutionSignaledEventAttributes-    { _wesea1SignalName                = p1-    , _wesea1Input                     = Nothing-    , _wesea1ExternalWorkflowExecution = Nothing-    , _wesea1ExternalInitiatedEventId  = Nothing-    }---- | The id of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to--- the 'SignalExternalWorkflow' decision to signal this workflow execution.The--- source event with this Id can be found in the history of the source workflow--- execution. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event. This field is set only if--- the signal was initiated by another workflow execution.-wesea1ExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)-wesea1ExternalInitiatedEventId =-    lens _wesea1ExternalInitiatedEventId-        (\s a -> s { _wesea1ExternalInitiatedEventId = a })---- | The workflow execution that sent the signal. This is set only of the signal--- was sent by another workflow execution.-wesea1ExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)-wesea1ExternalWorkflowExecution =-    lens _wesea1ExternalWorkflowExecution-        (\s a -> s { _wesea1ExternalWorkflowExecution = a })---- | Inputs provided with the signal (if any). The decider can use the signal name--- and inputs to determine how to process the signal.-wesea1Input :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)-wesea1Input = lens _wesea1Input (\s a -> s { _wesea1Input = a })---- | The name of the signal received. The decider can use the signal name and--- inputs to determine how to the process the signal.-wesea1SignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text-wesea1SignalName = lens _wesea1SignalName (\s a -> s { _wesea1SignalName = a })--instance FromJSON WorkflowExecutionSignaledEventAttributes where-    parseJSON = withObject "WorkflowExecutionSignaledEventAttributes" $ \o -> WorkflowExecutionSignaledEventAttributes-        <$> o .:? "externalInitiatedEventId"-        <*> o .:? "externalWorkflowExecution"-        <*> o .:? "input"-        <*> o .:  "signalName"--instance ToJSON WorkflowExecutionSignaledEventAttributes where-    toJSON WorkflowExecutionSignaledEventAttributes{..} = object-        [ "signalName"                .= _wesea1SignalName-        , "input"                     .= _wesea1Input-        , "externalWorkflowExecution" .= _wesea1ExternalWorkflowExecution-        , "externalInitiatedEventId"  .= _wesea1ExternalInitiatedEventId-        ]--data RecordMarkerFailedCause-    = RMFCOperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable RecordMarkerFailedCause--instance FromText RecordMarkerFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted" -> pure RMFCOperationNotPermitted-        e                         -> fail $-            "Failure parsing RecordMarkerFailedCause from " ++ show e--instance ToText RecordMarkerFailedCause where-    toText RMFCOperationNotPermitted = "OPERATION_NOT_PERMITTED"--instance ToByteString RecordMarkerFailedCause-instance ToHeader     RecordMarkerFailedCause-instance ToQuery      RecordMarkerFailedCause--instance FromJSON RecordMarkerFailedCause where-    parseJSON = parseJSONText "RecordMarkerFailedCause"--instance ToJSON RecordMarkerFailedCause where-    toJSON = toJSONText--data RegistrationStatus-    = Deprecated -- ^ DEPRECATED-    | Registered -- ^ REGISTERED-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable RegistrationStatus--instance FromText RegistrationStatus where-    parser = takeLowerText >>= \case-        "deprecated" -> pure Deprecated-        "registered" -> pure Registered-        e            -> fail $-            "Failure parsing RegistrationStatus from " ++ show e--instance ToText RegistrationStatus where-    toText = \case-        Deprecated -> "DEPRECATED"-        Registered -> "REGISTERED"--instance ToByteString RegistrationStatus-instance ToHeader     RegistrationStatus-instance ToQuery      RegistrationStatus--instance FromJSON RegistrationStatus where-    parseJSON = parseJSONText "RegistrationStatus"--instance ToJSON RegistrationStatus where-    toJSON = toJSONText--data TimerStartedEventAttributes = TimerStartedEventAttributes-    { _tseaControl                      :: Maybe Text-    , _tseaDecisionTaskCompletedEventId :: Integer-    , _tseaStartToFireTimeout           :: Text-    , _tseaTimerId                      :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'TimerStartedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'tseaControl' @::@ 'Maybe' 'Text'------ * 'tseaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'tseaStartToFireTimeout' @::@ 'Text'------ * 'tseaTimerId' @::@ 'Text'----timerStartedEventAttributes :: Text -- ^ 'tseaTimerId'-                            -> Text -- ^ 'tseaStartToFireTimeout'-                            -> Integer -- ^ 'tseaDecisionTaskCompletedEventId'-                            -> TimerStartedEventAttributes-timerStartedEventAttributes p1 p2 p3 = TimerStartedEventAttributes-    { _tseaTimerId                      = p1-    , _tseaStartToFireTimeout           = p2-    , _tseaDecisionTaskCompletedEventId = p3-    , _tseaControl                      = Nothing-    }---- | /Optional./ Data attached to the event that can be used by the decider in--- subsequent workflow tasks.-tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)-tseaControl = lens _tseaControl (\s a -> s { _tseaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'StartTimer' decision for this activity task. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-tseaDecisionTaskCompletedEventId :: Lens' TimerStartedEventAttributes Integer-tseaDecisionTaskCompletedEventId =-    lens _tseaDecisionTaskCompletedEventId-        (\s a -> s { _tseaDecisionTaskCompletedEventId = a })---- | The duration of time after which the timer will fire.------ The duration is specified in seconds; an integer greater than or equal to 0.-tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text-tseaStartToFireTimeout =-    lens _tseaStartToFireTimeout (\s a -> s { _tseaStartToFireTimeout = a })---- | The unique Id of the timer that was started.-tseaTimerId :: Lens' TimerStartedEventAttributes Text-tseaTimerId = lens _tseaTimerId (\s a -> s { _tseaTimerId = a })--instance FromJSON TimerStartedEventAttributes where-    parseJSON = withObject "TimerStartedEventAttributes" $ \o -> TimerStartedEventAttributes-        <$> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "startToFireTimeout"-        <*> o .:  "timerId"--instance ToJSON TimerStartedEventAttributes where-    toJSON TimerStartedEventAttributes{..} = object-        [ "timerId"                      .= _tseaTimerId-        , "control"                      .= _tseaControl-        , "startToFireTimeout"           .= _tseaStartToFireTimeout-        , "decisionTaskCompletedEventId" .= _tseaDecisionTaskCompletedEventId-        ]--newtype RequestCancelActivityTaskDecisionAttributes = RequestCancelActivityTaskDecisionAttributes-    { _rcatdaActivityId :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'RequestCancelActivityTaskDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'rcatdaActivityId' @::@ 'Text'----requestCancelActivityTaskDecisionAttributes :: Text -- ^ 'rcatdaActivityId'-                                            -> RequestCancelActivityTaskDecisionAttributes-requestCancelActivityTaskDecisionAttributes p1 = RequestCancelActivityTaskDecisionAttributes-    { _rcatdaActivityId = p1-    }---- | The 'activityId' of the activity task to be canceled.-rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text-rcatdaActivityId = lens _rcatdaActivityId (\s a -> s { _rcatdaActivityId = a })--instance FromJSON RequestCancelActivityTaskDecisionAttributes where-    parseJSON = withObject "RequestCancelActivityTaskDecisionAttributes" $ \o -> RequestCancelActivityTaskDecisionAttributes-        <$> o .:  "activityId"--instance ToJSON RequestCancelActivityTaskDecisionAttributes where-    toJSON RequestCancelActivityTaskDecisionAttributes{..} = object-        [ "activityId" .= _rcatdaActivityId-        ]--data Decision = Decision-    { _dCancelTimerDecisionAttributes                            :: Maybe CancelTimerDecisionAttributes-    , _dCancelWorkflowExecutionDecisionAttributes                :: Maybe CancelWorkflowExecutionDecisionAttributes-    , _dCompleteWorkflowExecutionDecisionAttributes              :: Maybe CompleteWorkflowExecutionDecisionAttributes-    , _dContinueAsNewWorkflowExecutionDecisionAttributes         :: Maybe ContinueAsNewWorkflowExecutionDecisionAttributes-    , _dDecisionType                                             :: DecisionType-    , _dFailWorkflowExecutionDecisionAttributes                  :: Maybe FailWorkflowExecutionDecisionAttributes-    , _dRecordMarkerDecisionAttributes                           :: Maybe RecordMarkerDecisionAttributes-    , _dRequestCancelActivityTaskDecisionAttributes              :: Maybe RequestCancelActivityTaskDecisionAttributes-    , _dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes-    , _dScheduleActivityTaskDecisionAttributes                   :: Maybe ScheduleActivityTaskDecisionAttributes-    , _dSignalExternalWorkflowExecutionDecisionAttributes        :: Maybe SignalExternalWorkflowExecutionDecisionAttributes-    , _dStartChildWorkflowExecutionDecisionAttributes            :: Maybe StartChildWorkflowExecutionDecisionAttributes-    , _dStartTimerDecisionAttributes                             :: Maybe StartTimerDecisionAttributes-    } deriving (Eq, Read, Show)---- | 'Decision' constructor.------ The fields accessible through corresponding lenses are:------ * 'dCancelTimerDecisionAttributes' @::@ 'Maybe' 'CancelTimerDecisionAttributes'------ * 'dCancelWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'CancelWorkflowExecutionDecisionAttributes'------ * 'dCompleteWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'CompleteWorkflowExecutionDecisionAttributes'------ * 'dContinueAsNewWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'ContinueAsNewWorkflowExecutionDecisionAttributes'------ * 'dDecisionType' @::@ 'DecisionType'------ * 'dFailWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'FailWorkflowExecutionDecisionAttributes'------ * 'dRecordMarkerDecisionAttributes' @::@ 'Maybe' 'RecordMarkerDecisionAttributes'------ * 'dRequestCancelActivityTaskDecisionAttributes' @::@ 'Maybe' 'RequestCancelActivityTaskDecisionAttributes'------ * 'dRequestCancelExternalWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'RequestCancelExternalWorkflowExecutionDecisionAttributes'------ * 'dScheduleActivityTaskDecisionAttributes' @::@ 'Maybe' 'ScheduleActivityTaskDecisionAttributes'------ * 'dSignalExternalWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'SignalExternalWorkflowExecutionDecisionAttributes'------ * 'dStartChildWorkflowExecutionDecisionAttributes' @::@ 'Maybe' 'StartChildWorkflowExecutionDecisionAttributes'------ * 'dStartTimerDecisionAttributes' @::@ 'Maybe' 'StartTimerDecisionAttributes'----decision :: DecisionType -- ^ 'dDecisionType'-         -> Decision-decision p1 = Decision-    { _dDecisionType                                             = p1-    , _dScheduleActivityTaskDecisionAttributes                   = Nothing-    , _dRequestCancelActivityTaskDecisionAttributes              = Nothing-    , _dCompleteWorkflowExecutionDecisionAttributes              = Nothing-    , _dFailWorkflowExecutionDecisionAttributes                  = Nothing-    , _dCancelWorkflowExecutionDecisionAttributes                = Nothing-    , _dContinueAsNewWorkflowExecutionDecisionAttributes         = Nothing-    , _dRecordMarkerDecisionAttributes                           = Nothing-    , _dStartTimerDecisionAttributes                             = Nothing-    , _dCancelTimerDecisionAttributes                            = Nothing-    , _dSignalExternalWorkflowExecutionDecisionAttributes        = Nothing-    , _dRequestCancelExternalWorkflowExecutionDecisionAttributes = Nothing-    , _dStartChildWorkflowExecutionDecisionAttributes            = Nothing-    }---- | Provides details of the 'CancelTimer' decision. It is not set for other--- decision types.-dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)-dCancelTimerDecisionAttributes =-    lens _dCancelTimerDecisionAttributes-        (\s a -> s { _dCancelTimerDecisionAttributes = a })---- | Provides details of the 'CancelWorkflowExecution' decision. It is not set for--- other decision types.-dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)-dCancelWorkflowExecutionDecisionAttributes =-    lens _dCancelWorkflowExecutionDecisionAttributes-        (\s a -> s { _dCancelWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'CompleteWorkflowExecution' decision. It is not set for--- other decision types.-dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)-dCompleteWorkflowExecutionDecisionAttributes =-    lens _dCompleteWorkflowExecutionDecisionAttributes-        (\s a -> s { _dCompleteWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'ContinueAsNewWorkflowExecution' decision. It is not--- set for other decision types.-dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)-dContinueAsNewWorkflowExecutionDecisionAttributes =-    lens _dContinueAsNewWorkflowExecutionDecisionAttributes-        (\s a -> s { _dContinueAsNewWorkflowExecutionDecisionAttributes = a })---- | Specifies the type of the decision.-dDecisionType :: Lens' Decision DecisionType-dDecisionType = lens _dDecisionType (\s a -> s { _dDecisionType = a })---- | Provides details of the 'FailWorkflowExecution' decision. It is not set for--- other decision types.-dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)-dFailWorkflowExecutionDecisionAttributes =-    lens _dFailWorkflowExecutionDecisionAttributes-        (\s a -> s { _dFailWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'RecordMarker' decision. It is not set for other--- decision types.-dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)-dRecordMarkerDecisionAttributes =-    lens _dRecordMarkerDecisionAttributes-        (\s a -> s { _dRecordMarkerDecisionAttributes = a })---- | Provides details of the 'RequestCancelActivityTask' decision. It is not set for--- other decision types.-dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)-dRequestCancelActivityTaskDecisionAttributes =-    lens _dRequestCancelActivityTaskDecisionAttributes-        (\s a -> s { _dRequestCancelActivityTaskDecisionAttributes = a })---- | Provides details of the 'RequestCancelExternalWorkflowExecution' decision. It--- is not set for other decision types.-dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)-dRequestCancelExternalWorkflowExecutionDecisionAttributes =-    lens _dRequestCancelExternalWorkflowExecutionDecisionAttributes-        (\s a -> s { _dRequestCancelExternalWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'ScheduleActivityTask' decision. It is not set for--- other decision types.-dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)-dScheduleActivityTaskDecisionAttributes =-    lens _dScheduleActivityTaskDecisionAttributes-        (\s a -> s { _dScheduleActivityTaskDecisionAttributes = a })---- | Provides details of the 'SignalExternalWorkflowExecution' decision. It is not--- set for other decision types.-dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)-dSignalExternalWorkflowExecutionDecisionAttributes =-    lens _dSignalExternalWorkflowExecutionDecisionAttributes-        (\s a -> s { _dSignalExternalWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'StartChildWorkflowExecution' decision. It is not set--- for other decision types.-dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)-dStartChildWorkflowExecutionDecisionAttributes =-    lens _dStartChildWorkflowExecutionDecisionAttributes-        (\s a -> s { _dStartChildWorkflowExecutionDecisionAttributes = a })---- | Provides details of the 'StartTimer' decision. It is not set for other decision--- types.-dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)-dStartTimerDecisionAttributes =-    lens _dStartTimerDecisionAttributes-        (\s a -> s { _dStartTimerDecisionAttributes = a })--instance FromJSON Decision where-    parseJSON = withObject "Decision" $ \o -> Decision-        <$> o .:? "cancelTimerDecisionAttributes"-        <*> o .:? "cancelWorkflowExecutionDecisionAttributes"-        <*> o .:? "completeWorkflowExecutionDecisionAttributes"-        <*> o .:? "continueAsNewWorkflowExecutionDecisionAttributes"-        <*> o .:  "decisionType"-        <*> o .:? "failWorkflowExecutionDecisionAttributes"-        <*> o .:? "recordMarkerDecisionAttributes"-        <*> o .:? "requestCancelActivityTaskDecisionAttributes"-        <*> o .:? "requestCancelExternalWorkflowExecutionDecisionAttributes"-        <*> o .:? "scheduleActivityTaskDecisionAttributes"-        <*> o .:? "signalExternalWorkflowExecutionDecisionAttributes"-        <*> o .:? "startChildWorkflowExecutionDecisionAttributes"-        <*> o .:? "startTimerDecisionAttributes"--instance ToJSON Decision where-    toJSON Decision{..} = object-        [ "decisionType"                                             .= _dDecisionType-        , "scheduleActivityTaskDecisionAttributes"                   .= _dScheduleActivityTaskDecisionAttributes-        , "requestCancelActivityTaskDecisionAttributes"              .= _dRequestCancelActivityTaskDecisionAttributes-        , "completeWorkflowExecutionDecisionAttributes"              .= _dCompleteWorkflowExecutionDecisionAttributes-        , "failWorkflowExecutionDecisionAttributes"                  .= _dFailWorkflowExecutionDecisionAttributes-        , "cancelWorkflowExecutionDecisionAttributes"                .= _dCancelWorkflowExecutionDecisionAttributes-        , "continueAsNewWorkflowExecutionDecisionAttributes"         .= _dContinueAsNewWorkflowExecutionDecisionAttributes-        , "recordMarkerDecisionAttributes"                           .= _dRecordMarkerDecisionAttributes-        , "startTimerDecisionAttributes"                             .= _dStartTimerDecisionAttributes-        , "cancelTimerDecisionAttributes"                            .= _dCancelTimerDecisionAttributes-        , "signalExternalWorkflowExecutionDecisionAttributes"        .= _dSignalExternalWorkflowExecutionDecisionAttributes-        , "requestCancelExternalWorkflowExecutionDecisionAttributes" .= _dRequestCancelExternalWorkflowExecutionDecisionAttributes-        , "startChildWorkflowExecutionDecisionAttributes"            .= _dStartChildWorkflowExecutionDecisionAttributes-        ]--data TimerFiredEventAttributes = TimerFiredEventAttributes-    { _tfeaStartedEventId :: Integer-    , _tfeaTimerId        :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'TimerFiredEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'tfeaStartedEventId' @::@ 'Integer'------ * 'tfeaTimerId' @::@ 'Text'----timerFiredEventAttributes :: Text -- ^ 'tfeaTimerId'-                          -> Integer -- ^ 'tfeaStartedEventId'-                          -> TimerFiredEventAttributes-timerFiredEventAttributes p1 p2 = TimerFiredEventAttributes-    { _tfeaTimerId        = p1-    , _tfeaStartedEventId = p2-    }---- | The id of the 'TimerStarted' event that was recorded when this timer was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-tfeaStartedEventId :: Lens' TimerFiredEventAttributes Integer-tfeaStartedEventId =-    lens _tfeaStartedEventId (\s a -> s { _tfeaStartedEventId = a })---- | The unique Id of the timer that fired.-tfeaTimerId :: Lens' TimerFiredEventAttributes Text-tfeaTimerId = lens _tfeaTimerId (\s a -> s { _tfeaTimerId = a })--instance FromJSON TimerFiredEventAttributes where-    parseJSON = withObject "TimerFiredEventAttributes" $ \o -> TimerFiredEventAttributes-        <$> o .:  "startedEventId"-        <*> o .:  "timerId"--instance ToJSON TimerFiredEventAttributes where-    toJSON TimerFiredEventAttributes{..} = object-        [ "timerId"        .= _tfeaTimerId-        , "startedEventId" .= _tfeaStartedEventId-        ]--newtype DomainConfiguration = DomainConfiguration-    { _dcWorkflowExecutionRetentionPeriodInDays :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'DomainConfiguration' constructor.------ The fields accessible through corresponding lenses are:------ * 'dcWorkflowExecutionRetentionPeriodInDays' @::@ 'Text'----domainConfiguration :: Text -- ^ 'dcWorkflowExecutionRetentionPeriodInDays'-                    -> DomainConfiguration-domainConfiguration p1 = DomainConfiguration-    { _dcWorkflowExecutionRetentionPeriodInDays = p1-    }---- | The retention period for workflow executions in this domain.-dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text-dcWorkflowExecutionRetentionPeriodInDays =-    lens _dcWorkflowExecutionRetentionPeriodInDays-        (\s a -> s { _dcWorkflowExecutionRetentionPeriodInDays = a })--instance FromJSON DomainConfiguration where-    parseJSON = withObject "DomainConfiguration" $ \o -> DomainConfiguration-        <$> o .:  "workflowExecutionRetentionPeriodInDays"--instance ToJSON DomainConfiguration where-    toJSON DomainConfiguration{..} = object-        [ "workflowExecutionRetentionPeriodInDays" .= _dcWorkflowExecutionRetentionPeriodInDays-        ]--data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes-    { _eweseaInitiatedEventId  :: Integer-    , _eweseaWorkflowExecution :: WorkflowExecution-    } deriving (Eq, Read, Show)---- | 'ExternalWorkflowExecutionSignaledEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'eweseaInitiatedEventId' @::@ 'Integer'------ * 'eweseaWorkflowExecution' @::@ 'WorkflowExecution'----externalWorkflowExecutionSignaledEventAttributes :: WorkflowExecution -- ^ 'eweseaWorkflowExecution'-                                                 -> Integer -- ^ 'eweseaInitiatedEventId'-                                                 -> ExternalWorkflowExecutionSignaledEventAttributes-externalWorkflowExecutionSignaledEventAttributes p1 p2 = ExternalWorkflowExecutionSignaledEventAttributes-    { _eweseaWorkflowExecution = p1-    , _eweseaInitiatedEventId  = p2-    }---- | The id of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to--- the 'SignalExternalWorkflowExecution' decision to request this signal. This--- information can be useful for diagnosing problems by tracing back the chain--- of events leading up to this event.-eweseaInitiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer-eweseaInitiatedEventId =-    lens _eweseaInitiatedEventId (\s a -> s { _eweseaInitiatedEventId = a })---- | The external workflow execution that the signal was delivered to.-eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution-eweseaWorkflowExecution =-    lens _eweseaWorkflowExecution (\s a -> s { _eweseaWorkflowExecution = a })--instance FromJSON ExternalWorkflowExecutionSignaledEventAttributes where-    parseJSON = withObject "ExternalWorkflowExecutionSignaledEventAttributes" $ \o -> ExternalWorkflowExecutionSignaledEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:  "workflowExecution"--instance ToJSON ExternalWorkflowExecutionSignaledEventAttributes where-    toJSON ExternalWorkflowExecutionSignaledEventAttributes{..} = object-        [ "workflowExecution" .= _eweseaWorkflowExecution-        , "initiatedEventId"  .= _eweseaInitiatedEventId-        ]--newtype CancelWorkflowExecutionDecisionAttributes = CancelWorkflowExecutionDecisionAttributes-    { _cwedaDetails :: Maybe Text-    } deriving (Eq, Ord, Read, Show, Monoid)---- | 'CancelWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwedaDetails' @::@ 'Maybe' 'Text'----cancelWorkflowExecutionDecisionAttributes :: CancelWorkflowExecutionDecisionAttributes-cancelWorkflowExecutionDecisionAttributes = CancelWorkflowExecutionDecisionAttributes-    { _cwedaDetails = Nothing-    }---- | /Optional./ details of the cancellation.-cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)-cwedaDetails = lens _cwedaDetails (\s a -> s { _cwedaDetails = a })--instance FromJSON CancelWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "CancelWorkflowExecutionDecisionAttributes" $ \o -> CancelWorkflowExecutionDecisionAttributes-        <$> o .:? "details"--instance ToJSON CancelWorkflowExecutionDecisionAttributes where-    toJSON CancelWorkflowExecutionDecisionAttributes{..} = object-        [ "details" .= _cwedaDetails-        ]--data ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes-    { _atfeaDetails          :: Maybe Text-    , _atfeaReason           :: Maybe Text-    , _atfeaScheduledEventId :: Integer-    , _atfeaStartedEventId   :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'ActivityTaskFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'atfeaDetails' @::@ 'Maybe' 'Text'------ * 'atfeaReason' @::@ 'Maybe' 'Text'------ * 'atfeaScheduledEventId' @::@ 'Integer'------ * 'atfeaStartedEventId' @::@ 'Integer'----activityTaskFailedEventAttributes :: Integer -- ^ 'atfeaScheduledEventId'-                                  -> Integer -- ^ 'atfeaStartedEventId'-                                  -> ActivityTaskFailedEventAttributes-activityTaskFailedEventAttributes p1 p2 = ActivityTaskFailedEventAttributes-    { _atfeaScheduledEventId = p1-    , _atfeaStartedEventId   = p2-    , _atfeaReason           = Nothing-    , _atfeaDetails          = Nothing-    }---- | The details of the failure (if any).-atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)-atfeaDetails = lens _atfeaDetails (\s a -> s { _atfeaDetails = a })---- | The reason provided for the failure (if any).-atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)-atfeaReason = lens _atfeaReason (\s a -> s { _atfeaReason = a })---- | The id of the 'ActivityTaskScheduled' event that was recorded when this--- activity task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-atfeaScheduledEventId :: Lens' ActivityTaskFailedEventAttributes Integer-atfeaScheduledEventId =-    lens _atfeaScheduledEventId (\s a -> s { _atfeaScheduledEventId = a })---- | The Id of the 'ActivityTaskStarted' event recorded when this activity task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-atfeaStartedEventId :: Lens' ActivityTaskFailedEventAttributes Integer-atfeaStartedEventId =-    lens _atfeaStartedEventId (\s a -> s { _atfeaStartedEventId = a })--instance FromJSON ActivityTaskFailedEventAttributes where-    parseJSON = withObject "ActivityTaskFailedEventAttributes" $ \o -> ActivityTaskFailedEventAttributes-        <$> o .:? "details"-        <*> o .:? "reason"-        <*> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"--instance ToJSON ActivityTaskFailedEventAttributes where-    toJSON ActivityTaskFailedEventAttributes{..} = object-        [ "reason"           .= _atfeaReason-        , "details"          .= _atfeaDetails-        , "scheduledEventId" .= _atfeaScheduledEventId-        , "startedEventId"   .= _atfeaStartedEventId-        ]--data FailWorkflowExecutionFailedEventAttributes = FailWorkflowExecutionFailedEventAttributes-    { _fwefeaCause                        :: FailWorkflowExecutionFailedCause-    , _fwefeaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'FailWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'fwefeaCause' @::@ 'FailWorkflowExecutionFailedCause'------ * 'fwefeaDecisionTaskCompletedEventId' @::@ 'Integer'----failWorkflowExecutionFailedEventAttributes :: FailWorkflowExecutionFailedCause -- ^ 'fwefeaCause'-                                           -> Integer -- ^ 'fwefeaDecisionTaskCompletedEventId'-                                           -> FailWorkflowExecutionFailedEventAttributes-failWorkflowExecutionFailedEventAttributes p1 p2 = FailWorkflowExecutionFailedEventAttributes-    { _fwefeaCause                        = p1-    , _fwefeaDecisionTaskCompletedEventId = p2-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause-fwefeaCause = lens _fwefeaCause (\s a -> s { _fwefeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'FailWorkflowExecution' decision to fail this execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-fwefeaDecisionTaskCompletedEventId :: Lens' FailWorkflowExecutionFailedEventAttributes Integer-fwefeaDecisionTaskCompletedEventId =-    lens _fwefeaDecisionTaskCompletedEventId-        (\s a -> s { _fwefeaDecisionTaskCompletedEventId = a })--instance FromJSON FailWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "FailWorkflowExecutionFailedEventAttributes" $ \o -> FailWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON FailWorkflowExecutionFailedEventAttributes where-    toJSON FailWorkflowExecutionFailedEventAttributes{..} = object-        [ "cause"                        .= _fwefeaCause-        , "decisionTaskCompletedEventId" .= _fwefeaDecisionTaskCompletedEventId-        ]--data StartChildWorkflowExecutionFailedEventAttributes = StartChildWorkflowExecutionFailedEventAttributes-    { _scwefeaCause                        :: StartChildWorkflowExecutionFailedCause-    , _scwefeaControl                      :: Maybe Text-    , _scwefeaDecisionTaskCompletedEventId :: Integer-    , _scwefeaInitiatedEventId             :: Integer-    , _scwefeaWorkflowId                   :: Text-    , _scwefeaWorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'StartChildWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'scwefeaCause' @::@ 'StartChildWorkflowExecutionFailedCause'------ * 'scwefeaControl' @::@ 'Maybe' 'Text'------ * 'scwefeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'scwefeaInitiatedEventId' @::@ 'Integer'------ * 'scwefeaWorkflowId' @::@ 'Text'------ * 'scwefeaWorkflowType' @::@ 'WorkflowType'----startChildWorkflowExecutionFailedEventAttributes :: WorkflowType -- ^ 'scwefeaWorkflowType'-                                                 -> StartChildWorkflowExecutionFailedCause -- ^ 'scwefeaCause'-                                                 -> Text -- ^ 'scwefeaWorkflowId'-                                                 -> Integer -- ^ 'scwefeaInitiatedEventId'-                                                 -> Integer -- ^ 'scwefeaDecisionTaskCompletedEventId'-                                                 -> StartChildWorkflowExecutionFailedEventAttributes-startChildWorkflowExecutionFailedEventAttributes p1 p2 p3 p4 p5 = StartChildWorkflowExecutionFailedEventAttributes-    { _scwefeaWorkflowType                 = p1-    , _scwefeaCause                        = p2-    , _scwefeaWorkflowId                   = p3-    , _scwefeaInitiatedEventId             = p4-    , _scwefeaDecisionTaskCompletedEventId = p5-    , _scwefeaControl                      = Nothing-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause-scwefeaCause = lens _scwefeaCause (\s a -> s { _scwefeaCause = a })--scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)-scwefeaControl = lens _scwefeaControl (\s a -> s { _scwefeaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'StartChildWorkflowExecution' 'Decision' to request this--- child workflow execution. This information can be useful for diagnosing--- problems by tracing back the cause of events.-scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer-scwefeaDecisionTaskCompletedEventId =-    lens _scwefeaDecisionTaskCompletedEventId-        (\s a -> s { _scwefeaDecisionTaskCompletedEventId = a })---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer-scwefeaInitiatedEventId =-    lens _scwefeaInitiatedEventId (\s a -> s { _scwefeaInitiatedEventId = a })---- | The 'workflowId' of the child workflow execution.-scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text-scwefeaWorkflowId =-    lens _scwefeaWorkflowId (\s a -> s { _scwefeaWorkflowId = a })---- | The workflow type provided in the 'StartChildWorkflowExecution' 'Decision' that--- failed.-scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType-scwefeaWorkflowType =-    lens _scwefeaWorkflowType (\s a -> s { _scwefeaWorkflowType = a })--instance FromJSON StartChildWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "StartChildWorkflowExecutionFailedEventAttributes" $ \o -> StartChildWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:  "initiatedEventId"-        <*> o .:  "workflowId"-        <*> o .:  "workflowType"--instance ToJSON StartChildWorkflowExecutionFailedEventAttributes where-    toJSON StartChildWorkflowExecutionFailedEventAttributes{..} = object-        [ "workflowType"                 .= _scwefeaWorkflowType-        , "cause"                        .= _scwefeaCause-        , "workflowId"                   .= _scwefeaWorkflowId-        , "initiatedEventId"             .= _scwefeaInitiatedEventId-        , "decisionTaskCompletedEventId" .= _scwefeaDecisionTaskCompletedEventId-        , "control"                      .= _scwefeaControl-        ]--data WorkflowTypeFilter = WorkflowTypeFilter-    { _wtfName    :: Text-    , _wtfVersion :: Maybe Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowTypeFilter' constructor.------ The fields accessible through corresponding lenses are:------ * 'wtfName' @::@ 'Text'------ * 'wtfVersion' @::@ 'Maybe' 'Text'----workflowTypeFilter :: Text -- ^ 'wtfName'-                   -> WorkflowTypeFilter-workflowTypeFilter p1 = WorkflowTypeFilter-    { _wtfName    = p1-    , _wtfVersion = Nothing-    }---- | Required. Name of the workflow type.-wtfName :: Lens' WorkflowTypeFilter Text-wtfName = lens _wtfName (\s a -> s { _wtfName = a })---- | Version of the workflow type.-wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)-wtfVersion = lens _wtfVersion (\s a -> s { _wtfVersion = a })--instance FromJSON WorkflowTypeFilter where-    parseJSON = withObject "WorkflowTypeFilter" $ \o -> WorkflowTypeFilter-        <$> o .:  "name"-        <*> o .:? "version"--instance ToJSON WorkflowTypeFilter where-    toJSON WorkflowTypeFilter{..} = object-        [ "name"    .= _wtfName-        , "version" .= _wtfVersion-        ]--data CancelTimerFailedCause-    = CTFCOperationNotPermitted -- ^ OPERATION_NOT_PERMITTED-    | CTFCTimerIdUnknown        -- ^ TIMER_ID_UNKNOWN-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable CancelTimerFailedCause--instance FromText CancelTimerFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted" -> pure CTFCOperationNotPermitted-        "timer_id_unknown"        -> pure CTFCTimerIdUnknown-        e                         -> fail $-            "Failure parsing CancelTimerFailedCause from " ++ show e--instance ToText CancelTimerFailedCause where-    toText = \case-        CTFCOperationNotPermitted -> "OPERATION_NOT_PERMITTED"-        CTFCTimerIdUnknown        -> "TIMER_ID_UNKNOWN"--instance ToByteString CancelTimerFailedCause-instance ToHeader     CancelTimerFailedCause-instance ToQuery      CancelTimerFailedCause--instance FromJSON CancelTimerFailedCause where-    parseJSON = parseJSONText "CancelTimerFailedCause"--instance ToJSON CancelTimerFailedCause where-    toJSON = toJSONText--data DecisionTaskCompletedEventAttributes = DecisionTaskCompletedEventAttributes-    { _dtceaExecutionContext :: Maybe Text-    , _dtceaScheduledEventId :: Integer-    , _dtceaStartedEventId   :: Integer-    } deriving (Eq, Ord, Read, Show)---- | 'DecisionTaskCompletedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'dtceaExecutionContext' @::@ 'Maybe' 'Text'------ * 'dtceaScheduledEventId' @::@ 'Integer'------ * 'dtceaStartedEventId' @::@ 'Integer'----decisionTaskCompletedEventAttributes :: Integer -- ^ 'dtceaScheduledEventId'-                                     -> Integer -- ^ 'dtceaStartedEventId'-                                     -> DecisionTaskCompletedEventAttributes-decisionTaskCompletedEventAttributes p1 p2 = DecisionTaskCompletedEventAttributes-    { _dtceaScheduledEventId = p1-    , _dtceaStartedEventId   = p2-    , _dtceaExecutionContext = Nothing-    }---- | User defined context for the workflow execution.-dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)-dtceaExecutionContext =-    lens _dtceaExecutionContext (\s a -> s { _dtceaExecutionContext = a })---- | The id of the 'DecisionTaskScheduled' event that was recorded when this--- decision task was scheduled. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-dtceaScheduledEventId :: Lens' DecisionTaskCompletedEventAttributes Integer-dtceaScheduledEventId =-    lens _dtceaScheduledEventId (\s a -> s { _dtceaScheduledEventId = a })---- | The Id of the 'DecisionTaskStarted' event recorded when this decision task was--- started. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-dtceaStartedEventId :: Lens' DecisionTaskCompletedEventAttributes Integer-dtceaStartedEventId =-    lens _dtceaStartedEventId (\s a -> s { _dtceaStartedEventId = a })--instance FromJSON DecisionTaskCompletedEventAttributes where-    parseJSON = withObject "DecisionTaskCompletedEventAttributes" $ \o -> DecisionTaskCompletedEventAttributes-        <$> o .:? "executionContext"-        <*> o .:  "scheduledEventId"-        <*> o .:  "startedEventId"--instance ToJSON DecisionTaskCompletedEventAttributes where-    toJSON DecisionTaskCompletedEventAttributes{..} = object-        [ "executionContext" .= _dtceaExecutionContext-        , "scheduledEventId" .= _dtceaScheduledEventId-        , "startedEventId"   .= _dtceaStartedEventId-        ]--data ChildWorkflowExecutionFailedEventAttributes = ChildWorkflowExecutionFailedEventAttributes-    { _cwefeaDetails           :: Maybe Text-    , _cwefeaInitiatedEventId  :: Integer-    , _cwefeaReason            :: Maybe Text-    , _cwefeaStartedEventId    :: Integer-    , _cwefeaWorkflowExecution :: WorkflowExecution-    , _cwefeaWorkflowType      :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'ChildWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'cwefeaDetails' @::@ 'Maybe' 'Text'------ * 'cwefeaInitiatedEventId' @::@ 'Integer'------ * 'cwefeaReason' @::@ 'Maybe' 'Text'------ * 'cwefeaStartedEventId' @::@ 'Integer'------ * 'cwefeaWorkflowExecution' @::@ 'WorkflowExecution'------ * 'cwefeaWorkflowType' @::@ 'WorkflowType'----childWorkflowExecutionFailedEventAttributes :: WorkflowExecution -- ^ 'cwefeaWorkflowExecution'-                                            -> WorkflowType -- ^ 'cwefeaWorkflowType'-                                            -> Integer -- ^ 'cwefeaInitiatedEventId'-                                            -> Integer -- ^ 'cwefeaStartedEventId'-                                            -> ChildWorkflowExecutionFailedEventAttributes-childWorkflowExecutionFailedEventAttributes p1 p2 p3 p4 = ChildWorkflowExecutionFailedEventAttributes-    { _cwefeaWorkflowExecution = p1-    , _cwefeaWorkflowType      = p2-    , _cwefeaInitiatedEventId  = p3-    , _cwefeaStartedEventId    = p4-    , _cwefeaReason            = Nothing-    , _cwefeaDetails           = Nothing-    }---- | The details of the failure (if provided).-cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)-cwefeaDetails = lens _cwefeaDetails (\s a -> s { _cwefeaDetails = a })---- | The id of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' 'Decision' to start this child workflow execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-cwefeaInitiatedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer-cwefeaInitiatedEventId =-    lens _cwefeaInitiatedEventId (\s a -> s { _cwefeaInitiatedEventId = a })---- | The reason for the failure (if provided).-cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)-cwefeaReason = lens _cwefeaReason (\s a -> s { _cwefeaReason = a })---- | The Id of the 'ChildWorkflowExecutionStarted' event recorded when this child--- workflow execution was started. This information can be useful for diagnosing--- problems by tracing back the chain of events leading up to this event.-cwefeaStartedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer-cwefeaStartedEventId =-    lens _cwefeaStartedEventId (\s a -> s { _cwefeaStartedEventId = a })---- | The child workflow execution that failed.-cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution-cwefeaWorkflowExecution =-    lens _cwefeaWorkflowExecution (\s a -> s { _cwefeaWorkflowExecution = a })---- | The type of the child workflow execution.-cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType-cwefeaWorkflowType =-    lens _cwefeaWorkflowType (\s a -> s { _cwefeaWorkflowType = a })--instance FromJSON ChildWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "ChildWorkflowExecutionFailedEventAttributes" $ \o -> ChildWorkflowExecutionFailedEventAttributes-        <$> o .:? "details"-        <*> o .:  "initiatedEventId"-        <*> o .:? "reason"-        <*> o .:  "startedEventId"-        <*> o .:  "workflowExecution"-        <*> o .:  "workflowType"--instance ToJSON ChildWorkflowExecutionFailedEventAttributes where-    toJSON ChildWorkflowExecutionFailedEventAttributes{..} = object-        [ "workflowExecution" .= _cwefeaWorkflowExecution-        , "workflowType"      .= _cwefeaWorkflowType-        , "reason"            .= _cwefeaReason-        , "details"           .= _cwefeaDetails-        , "initiatedEventId"  .= _cwefeaInitiatedEventId-        , "startedEventId"    .= _cwefeaStartedEventId-        ]--data DomainInfo = DomainInfo-    { _diDescription :: Maybe Text-    , _diName        :: Text-    , _diStatus      :: RegistrationStatus-    } deriving (Eq, Read, Show)---- | 'DomainInfo' constructor.------ The fields accessible through corresponding lenses are:------ * 'diDescription' @::@ 'Maybe' 'Text'------ * 'diName' @::@ 'Text'------ * 'diStatus' @::@ 'RegistrationStatus'----domainInfo :: Text -- ^ 'diName'-           -> RegistrationStatus -- ^ 'diStatus'-           -> DomainInfo-domainInfo p1 p2 = DomainInfo-    { _diName        = p1-    , _diStatus      = p2-    , _diDescription = Nothing-    }---- | The description of the domain provided through 'RegisterDomain'.-diDescription :: Lens' DomainInfo (Maybe Text)-diDescription = lens _diDescription (\s a -> s { _diDescription = a })---- | The name of the domain. This name is unique within the account.-diName :: Lens' DomainInfo Text-diName = lens _diName (\s a -> s { _diName = a })---- | The status of the domain:------ REGISTERED: The domain is properly registered and available. You can use--- this domain for registering types and creating new workflow executions.   DEPRECATED--- : The domain was deprecated using 'DeprecateDomain', but is still in use. You--- should not create new workflow executions in this domain.-diStatus :: Lens' DomainInfo RegistrationStatus-diStatus = lens _diStatus (\s a -> s { _diStatus = a })--instance FromJSON DomainInfo where-    parseJSON = withObject "DomainInfo" $ \o -> DomainInfo-        <$> o .:? "description"-        <*> o .:  "name"-        <*> o .:  "status"--instance ToJSON DomainInfo where-    toJSON DomainInfo{..} = object-        [ "name"        .= _diName-        , "status"      .= _diStatus-        , "description" .= _diDescription-        ]--data HistoryEvent = HistoryEvent-    { _heActivityTaskCancelRequestedEventAttributes                     :: Maybe ActivityTaskCancelRequestedEventAttributes-    , _heActivityTaskCanceledEventAttributes                            :: Maybe ActivityTaskCanceledEventAttributes-    , _heActivityTaskCompletedEventAttributes                           :: Maybe ActivityTaskCompletedEventAttributes-    , _heActivityTaskFailedEventAttributes                              :: Maybe ActivityTaskFailedEventAttributes-    , _heActivityTaskScheduledEventAttributes                           :: Maybe ActivityTaskScheduledEventAttributes-    , _heActivityTaskStartedEventAttributes                             :: Maybe ActivityTaskStartedEventAttributes-    , _heActivityTaskTimedOutEventAttributes                            :: Maybe ActivityTaskTimedOutEventAttributes-    , _heCancelTimerFailedEventAttributes                               :: Maybe CancelTimerFailedEventAttributes-    , _heCancelWorkflowExecutionFailedEventAttributes                   :: Maybe CancelWorkflowExecutionFailedEventAttributes-    , _heChildWorkflowExecutionCanceledEventAttributes                  :: Maybe ChildWorkflowExecutionCanceledEventAttributes-    , _heChildWorkflowExecutionCompletedEventAttributes                 :: Maybe ChildWorkflowExecutionCompletedEventAttributes-    , _heChildWorkflowExecutionFailedEventAttributes                    :: Maybe ChildWorkflowExecutionFailedEventAttributes-    , _heChildWorkflowExecutionStartedEventAttributes                   :: Maybe ChildWorkflowExecutionStartedEventAttributes-    , _heChildWorkflowExecutionTerminatedEventAttributes                :: Maybe ChildWorkflowExecutionTerminatedEventAttributes-    , _heChildWorkflowExecutionTimedOutEventAttributes                  :: Maybe ChildWorkflowExecutionTimedOutEventAttributes-    , _heCompleteWorkflowExecutionFailedEventAttributes                 :: Maybe CompleteWorkflowExecutionFailedEventAttributes-    , _heContinueAsNewWorkflowExecutionFailedEventAttributes            :: Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes-    , _heDecisionTaskCompletedEventAttributes                           :: Maybe DecisionTaskCompletedEventAttributes-    , _heDecisionTaskScheduledEventAttributes                           :: Maybe DecisionTaskScheduledEventAttributes-    , _heDecisionTaskStartedEventAttributes                             :: Maybe DecisionTaskStartedEventAttributes-    , _heDecisionTaskTimedOutEventAttributes                            :: Maybe DecisionTaskTimedOutEventAttributes-    , _heEventId                                                        :: Integer-    , _heEventTimestamp                                                 :: POSIX-    , _heEventType                                                      :: EventType-    , _heExternalWorkflowExecutionCancelRequestedEventAttributes        :: Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes-    , _heExternalWorkflowExecutionSignaledEventAttributes               :: Maybe ExternalWorkflowExecutionSignaledEventAttributes-    , _heFailWorkflowExecutionFailedEventAttributes                     :: Maybe FailWorkflowExecutionFailedEventAttributes-    , _heMarkerRecordedEventAttributes                                  :: Maybe MarkerRecordedEventAttributes-    , _heRecordMarkerFailedEventAttributes                              :: Maybe RecordMarkerFailedEventAttributes-    , _heRequestCancelActivityTaskFailedEventAttributes                 :: Maybe RequestCancelActivityTaskFailedEventAttributes-    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes    :: Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes-    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-    , _heScheduleActivityTaskFailedEventAttributes                      :: Maybe ScheduleActivityTaskFailedEventAttributes-    , _heSignalExternalWorkflowExecutionFailedEventAttributes           :: Maybe SignalExternalWorkflowExecutionFailedEventAttributes-    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes        :: Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes-    , _heStartChildWorkflowExecutionFailedEventAttributes               :: Maybe StartChildWorkflowExecutionFailedEventAttributes-    , _heStartChildWorkflowExecutionInitiatedEventAttributes            :: Maybe StartChildWorkflowExecutionInitiatedEventAttributes-    , _heStartTimerFailedEventAttributes                                :: Maybe StartTimerFailedEventAttributes-    , _heTimerCanceledEventAttributes                                   :: Maybe TimerCanceledEventAttributes-    , _heTimerFiredEventAttributes                                      :: Maybe TimerFiredEventAttributes-    , _heTimerStartedEventAttributes                                    :: Maybe TimerStartedEventAttributes-    , _heWorkflowExecutionCancelRequestedEventAttributes                :: Maybe WorkflowExecutionCancelRequestedEventAttributes-    , _heWorkflowExecutionCanceledEventAttributes                       :: Maybe WorkflowExecutionCanceledEventAttributes-    , _heWorkflowExecutionCompletedEventAttributes                      :: Maybe WorkflowExecutionCompletedEventAttributes-    , _heWorkflowExecutionContinuedAsNewEventAttributes                 :: Maybe WorkflowExecutionContinuedAsNewEventAttributes-    , _heWorkflowExecutionFailedEventAttributes                         :: Maybe WorkflowExecutionFailedEventAttributes-    , _heWorkflowExecutionSignaledEventAttributes                       :: Maybe WorkflowExecutionSignaledEventAttributes-    , _heWorkflowExecutionStartedEventAttributes                        :: Maybe WorkflowExecutionStartedEventAttributes-    , _heWorkflowExecutionTerminatedEventAttributes                     :: Maybe WorkflowExecutionTerminatedEventAttributes-    , _heWorkflowExecutionTimedOutEventAttributes                       :: Maybe WorkflowExecutionTimedOutEventAttributes-    } deriving (Eq, Read, Show)---- | 'HistoryEvent' constructor.------ The fields accessible through corresponding lenses are:------ * 'heActivityTaskCancelRequestedEventAttributes' @::@ 'Maybe' 'ActivityTaskCancelRequestedEventAttributes'------ * 'heActivityTaskCanceledEventAttributes' @::@ 'Maybe' 'ActivityTaskCanceledEventAttributes'------ * 'heActivityTaskCompletedEventAttributes' @::@ 'Maybe' 'ActivityTaskCompletedEventAttributes'------ * 'heActivityTaskFailedEventAttributes' @::@ 'Maybe' 'ActivityTaskFailedEventAttributes'------ * 'heActivityTaskScheduledEventAttributes' @::@ 'Maybe' 'ActivityTaskScheduledEventAttributes'------ * 'heActivityTaskStartedEventAttributes' @::@ 'Maybe' 'ActivityTaskStartedEventAttributes'------ * 'heActivityTaskTimedOutEventAttributes' @::@ 'Maybe' 'ActivityTaskTimedOutEventAttributes'------ * 'heCancelTimerFailedEventAttributes' @::@ 'Maybe' 'CancelTimerFailedEventAttributes'------ * 'heCancelWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'CancelWorkflowExecutionFailedEventAttributes'------ * 'heChildWorkflowExecutionCanceledEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionCanceledEventAttributes'------ * 'heChildWorkflowExecutionCompletedEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionCompletedEventAttributes'------ * 'heChildWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionFailedEventAttributes'------ * 'heChildWorkflowExecutionStartedEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionStartedEventAttributes'------ * 'heChildWorkflowExecutionTerminatedEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionTerminatedEventAttributes'------ * 'heChildWorkflowExecutionTimedOutEventAttributes' @::@ 'Maybe' 'ChildWorkflowExecutionTimedOutEventAttributes'------ * 'heCompleteWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'CompleteWorkflowExecutionFailedEventAttributes'------ * 'heContinueAsNewWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'ContinueAsNewWorkflowExecutionFailedEventAttributes'------ * 'heDecisionTaskCompletedEventAttributes' @::@ 'Maybe' 'DecisionTaskCompletedEventAttributes'------ * 'heDecisionTaskScheduledEventAttributes' @::@ 'Maybe' 'DecisionTaskScheduledEventAttributes'------ * 'heDecisionTaskStartedEventAttributes' @::@ 'Maybe' 'DecisionTaskStartedEventAttributes'------ * 'heDecisionTaskTimedOutEventAttributes' @::@ 'Maybe' 'DecisionTaskTimedOutEventAttributes'------ * 'heEventId' @::@ 'Integer'------ * 'heEventTimestamp' @::@ 'UTCTime'------ * 'heEventType' @::@ 'EventType'------ * 'heExternalWorkflowExecutionCancelRequestedEventAttributes' @::@ 'Maybe' 'ExternalWorkflowExecutionCancelRequestedEventAttributes'------ * 'heExternalWorkflowExecutionSignaledEventAttributes' @::@ 'Maybe' 'ExternalWorkflowExecutionSignaledEventAttributes'------ * 'heFailWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'FailWorkflowExecutionFailedEventAttributes'------ * 'heMarkerRecordedEventAttributes' @::@ 'Maybe' 'MarkerRecordedEventAttributes'------ * 'heRecordMarkerFailedEventAttributes' @::@ 'Maybe' 'RecordMarkerFailedEventAttributes'------ * 'heRequestCancelActivityTaskFailedEventAttributes' @::@ 'Maybe' 'RequestCancelActivityTaskFailedEventAttributes'------ * 'heRequestCancelExternalWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'RequestCancelExternalWorkflowExecutionFailedEventAttributes'------ * 'heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes' @::@ 'Maybe' 'RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'------ * 'heScheduleActivityTaskFailedEventAttributes' @::@ 'Maybe' 'ScheduleActivityTaskFailedEventAttributes'------ * 'heSignalExternalWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'SignalExternalWorkflowExecutionFailedEventAttributes'------ * 'heSignalExternalWorkflowExecutionInitiatedEventAttributes' @::@ 'Maybe' 'SignalExternalWorkflowExecutionInitiatedEventAttributes'------ * 'heStartChildWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'StartChildWorkflowExecutionFailedEventAttributes'------ * 'heStartChildWorkflowExecutionInitiatedEventAttributes' @::@ 'Maybe' 'StartChildWorkflowExecutionInitiatedEventAttributes'------ * 'heStartTimerFailedEventAttributes' @::@ 'Maybe' 'StartTimerFailedEventAttributes'------ * 'heTimerCanceledEventAttributes' @::@ 'Maybe' 'TimerCanceledEventAttributes'------ * 'heTimerFiredEventAttributes' @::@ 'Maybe' 'TimerFiredEventAttributes'------ * 'heTimerStartedEventAttributes' @::@ 'Maybe' 'TimerStartedEventAttributes'------ * 'heWorkflowExecutionCancelRequestedEventAttributes' @::@ 'Maybe' 'WorkflowExecutionCancelRequestedEventAttributes'------ * 'heWorkflowExecutionCanceledEventAttributes' @::@ 'Maybe' 'WorkflowExecutionCanceledEventAttributes'------ * 'heWorkflowExecutionCompletedEventAttributes' @::@ 'Maybe' 'WorkflowExecutionCompletedEventAttributes'------ * 'heWorkflowExecutionContinuedAsNewEventAttributes' @::@ 'Maybe' 'WorkflowExecutionContinuedAsNewEventAttributes'------ * 'heWorkflowExecutionFailedEventAttributes' @::@ 'Maybe' 'WorkflowExecutionFailedEventAttributes'------ * 'heWorkflowExecutionSignaledEventAttributes' @::@ 'Maybe' 'WorkflowExecutionSignaledEventAttributes'------ * 'heWorkflowExecutionStartedEventAttributes' @::@ 'Maybe' 'WorkflowExecutionStartedEventAttributes'------ * 'heWorkflowExecutionTerminatedEventAttributes' @::@ 'Maybe' 'WorkflowExecutionTerminatedEventAttributes'------ * 'heWorkflowExecutionTimedOutEventAttributes' @::@ 'Maybe' 'WorkflowExecutionTimedOutEventAttributes'----historyEvent :: UTCTime -- ^ 'heEventTimestamp'-             -> EventType -- ^ 'heEventType'-             -> Integer -- ^ 'heEventId'-             -> HistoryEvent-historyEvent p1 p2 p3 = HistoryEvent-    { _heEventTimestamp                                                 = withIso _Time (const id) p1-    , _heEventType                                                      = p2-    , _heEventId                                                        = p3-    , _heWorkflowExecutionStartedEventAttributes                        = Nothing-    , _heWorkflowExecutionCompletedEventAttributes                      = Nothing-    , _heCompleteWorkflowExecutionFailedEventAttributes                 = Nothing-    , _heWorkflowExecutionFailedEventAttributes                         = Nothing-    , _heFailWorkflowExecutionFailedEventAttributes                     = Nothing-    , _heWorkflowExecutionTimedOutEventAttributes                       = Nothing-    , _heWorkflowExecutionCanceledEventAttributes                       = Nothing-    , _heCancelWorkflowExecutionFailedEventAttributes                   = Nothing-    , _heWorkflowExecutionContinuedAsNewEventAttributes                 = Nothing-    , _heContinueAsNewWorkflowExecutionFailedEventAttributes            = Nothing-    , _heWorkflowExecutionTerminatedEventAttributes                     = Nothing-    , _heWorkflowExecutionCancelRequestedEventAttributes                = Nothing-    , _heDecisionTaskScheduledEventAttributes                           = Nothing-    , _heDecisionTaskStartedEventAttributes                             = Nothing-    , _heDecisionTaskCompletedEventAttributes                           = Nothing-    , _heDecisionTaskTimedOutEventAttributes                            = Nothing-    , _heActivityTaskScheduledEventAttributes                           = Nothing-    , _heActivityTaskStartedEventAttributes                             = Nothing-    , _heActivityTaskCompletedEventAttributes                           = Nothing-    , _heActivityTaskFailedEventAttributes                              = Nothing-    , _heActivityTaskTimedOutEventAttributes                            = Nothing-    , _heActivityTaskCanceledEventAttributes                            = Nothing-    , _heActivityTaskCancelRequestedEventAttributes                     = Nothing-    , _heWorkflowExecutionSignaledEventAttributes                       = Nothing-    , _heMarkerRecordedEventAttributes                                  = Nothing-    , _heRecordMarkerFailedEventAttributes                              = Nothing-    , _heTimerStartedEventAttributes                                    = Nothing-    , _heTimerFiredEventAttributes                                      = Nothing-    , _heTimerCanceledEventAttributes                                   = Nothing-    , _heStartChildWorkflowExecutionInitiatedEventAttributes            = Nothing-    , _heChildWorkflowExecutionStartedEventAttributes                   = Nothing-    , _heChildWorkflowExecutionCompletedEventAttributes                 = Nothing-    , _heChildWorkflowExecutionFailedEventAttributes                    = Nothing-    , _heChildWorkflowExecutionTimedOutEventAttributes                  = Nothing-    , _heChildWorkflowExecutionCanceledEventAttributes                  = Nothing-    , _heChildWorkflowExecutionTerminatedEventAttributes                = Nothing-    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes        = Nothing-    , _heExternalWorkflowExecutionSignaledEventAttributes               = Nothing-    , _heSignalExternalWorkflowExecutionFailedEventAttributes           = Nothing-    , _heExternalWorkflowExecutionCancelRequestedEventAttributes        = Nothing-    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = Nothing-    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes    = Nothing-    , _heScheduleActivityTaskFailedEventAttributes                      = Nothing-    , _heRequestCancelActivityTaskFailedEventAttributes                 = Nothing-    , _heStartTimerFailedEventAttributes                                = Nothing-    , _heCancelTimerFailedEventAttributes                               = Nothing-    , _heStartChildWorkflowExecutionFailedEventAttributes               = Nothing-    }---- | If the event is of type 'ActivityTaskcancelRequested' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)-heActivityTaskCancelRequestedEventAttributes =-    lens _heActivityTaskCancelRequestedEventAttributes-        (\s a -> s { _heActivityTaskCancelRequestedEventAttributes = a })---- | If the event is of type 'ActivityTaskCanceled' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)-heActivityTaskCanceledEventAttributes =-    lens _heActivityTaskCanceledEventAttributes-        (\s a -> s { _heActivityTaskCanceledEventAttributes = a })---- | If the event is of type 'ActivityTaskCompleted' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)-heActivityTaskCompletedEventAttributes =-    lens _heActivityTaskCompletedEventAttributes-        (\s a -> s { _heActivityTaskCompletedEventAttributes = a })---- | If the event is of type 'ActivityTaskFailed' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)-heActivityTaskFailedEventAttributes =-    lens _heActivityTaskFailedEventAttributes-        (\s a -> s { _heActivityTaskFailedEventAttributes = a })---- | If the event is of type 'ActivityTaskScheduled' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)-heActivityTaskScheduledEventAttributes =-    lens _heActivityTaskScheduledEventAttributes-        (\s a -> s { _heActivityTaskScheduledEventAttributes = a })---- | If the event is of type 'ActivityTaskStarted' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)-heActivityTaskStartedEventAttributes =-    lens _heActivityTaskStartedEventAttributes-        (\s a -> s { _heActivityTaskStartedEventAttributes = a })---- | If the event is of type 'ActivityTaskTimedOut' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)-heActivityTaskTimedOutEventAttributes =-    lens _heActivityTaskTimedOutEventAttributes-        (\s a -> s { _heActivityTaskTimedOutEventAttributes = a })---- | If the event is of type 'CancelTimerFailed' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)-heCancelTimerFailedEventAttributes =-    lens _heCancelTimerFailedEventAttributes-        (\s a -> s { _heCancelTimerFailedEventAttributes = a })---- | If the event is of type 'CancelWorkflowExecutionFailed' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)-heCancelWorkflowExecutionFailedEventAttributes =-    lens _heCancelWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heCancelWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionCanceled' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)-heChildWorkflowExecutionCanceledEventAttributes =-    lens _heChildWorkflowExecutionCanceledEventAttributes-        (\s a -> s { _heChildWorkflowExecutionCanceledEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionCompleted' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)-heChildWorkflowExecutionCompletedEventAttributes =-    lens _heChildWorkflowExecutionCompletedEventAttributes-        (\s a -> s { _heChildWorkflowExecutionCompletedEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionFailed' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)-heChildWorkflowExecutionFailedEventAttributes =-    lens _heChildWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heChildWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionStarted' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)-heChildWorkflowExecutionStartedEventAttributes =-    lens _heChildWorkflowExecutionStartedEventAttributes-        (\s a -> s { _heChildWorkflowExecutionStartedEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionTerminated' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)-heChildWorkflowExecutionTerminatedEventAttributes =-    lens _heChildWorkflowExecutionTerminatedEventAttributes-        (\s a -> s { _heChildWorkflowExecutionTerminatedEventAttributes = a })---- | If the event is of type 'ChildWorkflowExecutionTimedOut' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)-heChildWorkflowExecutionTimedOutEventAttributes =-    lens _heChildWorkflowExecutionTimedOutEventAttributes-        (\s a -> s { _heChildWorkflowExecutionTimedOutEventAttributes = a })---- | If the event is of type 'CompleteWorkflowExecutionFailed' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)-heCompleteWorkflowExecutionFailedEventAttributes =-    lens _heCompleteWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heCompleteWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'ContinueAsNewWorkflowExecutionFailed' then this member--- is set and provides detailed information about the event. It is not set for--- other event types.-heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)-heContinueAsNewWorkflowExecutionFailedEventAttributes =-    lens _heContinueAsNewWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heContinueAsNewWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'DecisionTaskCompleted' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)-heDecisionTaskCompletedEventAttributes =-    lens _heDecisionTaskCompletedEventAttributes-        (\s a -> s { _heDecisionTaskCompletedEventAttributes = a })---- | If the event is of type 'DecisionTaskScheduled' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)-heDecisionTaskScheduledEventAttributes =-    lens _heDecisionTaskScheduledEventAttributes-        (\s a -> s { _heDecisionTaskScheduledEventAttributes = a })---- | If the event is of type 'DecisionTaskStarted' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)-heDecisionTaskStartedEventAttributes =-    lens _heDecisionTaskStartedEventAttributes-        (\s a -> s { _heDecisionTaskStartedEventAttributes = a })---- | If the event is of type 'DecisionTaskTimedOut' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)-heDecisionTaskTimedOutEventAttributes =-    lens _heDecisionTaskTimedOutEventAttributes-        (\s a -> s { _heDecisionTaskTimedOutEventAttributes = a })---- | The system generated id of the event. This id uniquely identifies the event--- with in the workflow execution history.-heEventId :: Lens' HistoryEvent Integer-heEventId = lens _heEventId (\s a -> s { _heEventId = a })---- | The date and time when the event occurred.-heEventTimestamp :: Lens' HistoryEvent UTCTime-heEventTimestamp = lens _heEventTimestamp (\s a -> s { _heEventTimestamp = a }) . _Time---- | The type of the history event.-heEventType :: Lens' HistoryEvent EventType-heEventType = lens _heEventType (\s a -> s { _heEventType = a })---- | If the event is of type 'ExternalWorkflowExecutionCancelRequested' then this--- member is set and provides detailed information about the event. It is not--- set for other event types.-heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)-heExternalWorkflowExecutionCancelRequestedEventAttributes =-    lens _heExternalWorkflowExecutionCancelRequestedEventAttributes-        (\s a -> s { _heExternalWorkflowExecutionCancelRequestedEventAttributes = a })---- | If the event is of type 'ExternalWorkflowExecutionSignaled' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)-heExternalWorkflowExecutionSignaledEventAttributes =-    lens _heExternalWorkflowExecutionSignaledEventAttributes-        (\s a -> s { _heExternalWorkflowExecutionSignaledEventAttributes = a })---- | If the event is of type 'FailWorkflowExecutionFailed' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)-heFailWorkflowExecutionFailedEventAttributes =-    lens _heFailWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heFailWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'MarkerRecorded' then this member is set and provides--- detailed information about the event. It is not set for other event types.-heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)-heMarkerRecordedEventAttributes =-    lens _heMarkerRecordedEventAttributes-        (\s a -> s { _heMarkerRecordedEventAttributes = a })---- | If the event is of type 'DecisionTaskFailed' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)-heRecordMarkerFailedEventAttributes =-    lens _heRecordMarkerFailedEventAttributes-        (\s a -> s { _heRecordMarkerFailedEventAttributes = a })---- | If the event is of type 'RequestCancelActivityTaskFailed' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)-heRequestCancelActivityTaskFailedEventAttributes =-    lens _heRequestCancelActivityTaskFailedEventAttributes-        (\s a -> s { _heRequestCancelActivityTaskFailedEventAttributes = a })---- | If the event is of type 'RequestCancelExternalWorkflowExecutionFailed' then--- this member is set and provides detailed information about the event. It is--- not set for other event types.-heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)-heRequestCancelExternalWorkflowExecutionFailedEventAttributes =-    lens _heRequestCancelExternalWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heRequestCancelExternalWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'RequestCancelExternalWorkflowExecutionInitiated' then--- this member is set and provides detailed information about the event. It is--- not set for other event types.-heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)-heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes =-    lens _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes-        (\s a -> s { _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = a })---- | If the event is of type 'ScheduleActivityTaskFailed' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)-heScheduleActivityTaskFailedEventAttributes =-    lens _heScheduleActivityTaskFailedEventAttributes-        (\s a -> s { _heScheduleActivityTaskFailedEventAttributes = a })---- | If the event is of type 'SignalExternalWorkflowExecutionFailed' then this--- member is set and provides detailed information about the event. It is not--- set for other event types.-heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)-heSignalExternalWorkflowExecutionFailedEventAttributes =-    lens _heSignalExternalWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heSignalExternalWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'SignalExternalWorkflowExecutionInitiated' then this--- member is set and provides detailed information about the event. It is not--- set for other event types.-heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)-heSignalExternalWorkflowExecutionInitiatedEventAttributes =-    lens _heSignalExternalWorkflowExecutionInitiatedEventAttributes-        (\s a -> s { _heSignalExternalWorkflowExecutionInitiatedEventAttributes = a })---- | If the event is of type 'StartChildWorkflowExecutionFailed' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)-heStartChildWorkflowExecutionFailedEventAttributes =-    lens _heStartChildWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heStartChildWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'StartChildWorkflowExecutionInitiated' then this member--- is set and provides detailed information about the event. It is not set for--- other event types.-heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)-heStartChildWorkflowExecutionInitiatedEventAttributes =-    lens _heStartChildWorkflowExecutionInitiatedEventAttributes-        (\s a -> s { _heStartChildWorkflowExecutionInitiatedEventAttributes = a })---- | If the event is of type 'StartTimerFailed' then this member is set and provides--- detailed information about the event. It is not set for other event types.-heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)-heStartTimerFailedEventAttributes =-    lens _heStartTimerFailedEventAttributes-        (\s a -> s { _heStartTimerFailedEventAttributes = a })---- | If the event is of type 'TimerCanceled' then this member is set and provides--- detailed information about the event. It is not set for other event types.-heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)-heTimerCanceledEventAttributes =-    lens _heTimerCanceledEventAttributes-        (\s a -> s { _heTimerCanceledEventAttributes = a })---- | If the event is of type 'TimerFired' then this member is set and provides--- detailed information about the event. It is not set for other event types.-heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)-heTimerFiredEventAttributes =-    lens _heTimerFiredEventAttributes-        (\s a -> s { _heTimerFiredEventAttributes = a })---- | If the event is of type 'TimerStarted' then this member is set and provides--- detailed information about the event. It is not set for other event types.-heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)-heTimerStartedEventAttributes =-    lens _heTimerStartedEventAttributes-        (\s a -> s { _heTimerStartedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionCancelRequested' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)-heWorkflowExecutionCancelRequestedEventAttributes =-    lens _heWorkflowExecutionCancelRequestedEventAttributes-        (\s a -> s { _heWorkflowExecutionCancelRequestedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionCanceled' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)-heWorkflowExecutionCanceledEventAttributes =-    lens _heWorkflowExecutionCanceledEventAttributes-        (\s a -> s { _heWorkflowExecutionCanceledEventAttributes = a })---- | If the event is of type 'WorkflowExecutionCompleted' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)-heWorkflowExecutionCompletedEventAttributes =-    lens _heWorkflowExecutionCompletedEventAttributes-        (\s a -> s { _heWorkflowExecutionCompletedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionContinuedAsNew' then this member is--- set and provides detailed information about the event. It is not set for--- other event types.-heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)-heWorkflowExecutionContinuedAsNewEventAttributes =-    lens _heWorkflowExecutionContinuedAsNewEventAttributes-        (\s a -> s { _heWorkflowExecutionContinuedAsNewEventAttributes = a })---- | If the event is of type 'WorkflowExecutionFailed' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)-heWorkflowExecutionFailedEventAttributes =-    lens _heWorkflowExecutionFailedEventAttributes-        (\s a -> s { _heWorkflowExecutionFailedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionSignaled' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)-heWorkflowExecutionSignaledEventAttributes =-    lens _heWorkflowExecutionSignaledEventAttributes-        (\s a -> s { _heWorkflowExecutionSignaledEventAttributes = a })---- | If the event is of type 'WorkflowExecutionStarted' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)-heWorkflowExecutionStartedEventAttributes =-    lens _heWorkflowExecutionStartedEventAttributes-        (\s a -> s { _heWorkflowExecutionStartedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionTerminated' then this member is set--- and provides detailed information about the event. It is not set for other--- event types.-heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)-heWorkflowExecutionTerminatedEventAttributes =-    lens _heWorkflowExecutionTerminatedEventAttributes-        (\s a -> s { _heWorkflowExecutionTerminatedEventAttributes = a })---- | If the event is of type 'WorkflowExecutionTimedOut' then this member is set and--- provides detailed information about the event. It is not set for other event--- types.-heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)-heWorkflowExecutionTimedOutEventAttributes =-    lens _heWorkflowExecutionTimedOutEventAttributes-        (\s a -> s { _heWorkflowExecutionTimedOutEventAttributes = a })--instance FromJSON HistoryEvent where-    parseJSON = withObject "HistoryEvent" $ \o -> HistoryEvent-        <$> o .:? "activityTaskCancelRequestedEventAttributes"-        <*> o .:? "activityTaskCanceledEventAttributes"-        <*> o .:? "activityTaskCompletedEventAttributes"-        <*> o .:? "activityTaskFailedEventAttributes"-        <*> o .:? "activityTaskScheduledEventAttributes"-        <*> o .:? "activityTaskStartedEventAttributes"-        <*> o .:? "activityTaskTimedOutEventAttributes"-        <*> o .:? "cancelTimerFailedEventAttributes"-        <*> o .:? "cancelWorkflowExecutionFailedEventAttributes"-        <*> o .:? "childWorkflowExecutionCanceledEventAttributes"-        <*> o .:? "childWorkflowExecutionCompletedEventAttributes"-        <*> o .:? "childWorkflowExecutionFailedEventAttributes"-        <*> o .:? "childWorkflowExecutionStartedEventAttributes"-        <*> o .:? "childWorkflowExecutionTerminatedEventAttributes"-        <*> o .:? "childWorkflowExecutionTimedOutEventAttributes"-        <*> o .:? "completeWorkflowExecutionFailedEventAttributes"-        <*> o .:? "continueAsNewWorkflowExecutionFailedEventAttributes"-        <*> o .:? "decisionTaskCompletedEventAttributes"-        <*> o .:? "decisionTaskScheduledEventAttributes"-        <*> o .:? "decisionTaskStartedEventAttributes"-        <*> o .:? "decisionTaskTimedOutEventAttributes"-        <*> o .:  "eventId"-        <*> o .:  "eventTimestamp"-        <*> o .:  "eventType"-        <*> o .:? "externalWorkflowExecutionCancelRequestedEventAttributes"-        <*> o .:? "externalWorkflowExecutionSignaledEventAttributes"-        <*> o .:? "failWorkflowExecutionFailedEventAttributes"-        <*> o .:? "markerRecordedEventAttributes"-        <*> o .:? "recordMarkerFailedEventAttributes"-        <*> o .:? "requestCancelActivityTaskFailedEventAttributes"-        <*> o .:? "requestCancelExternalWorkflowExecutionFailedEventAttributes"-        <*> o .:? "requestCancelExternalWorkflowExecutionInitiatedEventAttributes"-        <*> o .:? "scheduleActivityTaskFailedEventAttributes"-        <*> o .:? "signalExternalWorkflowExecutionFailedEventAttributes"-        <*> o .:? "signalExternalWorkflowExecutionInitiatedEventAttributes"-        <*> o .:? "startChildWorkflowExecutionFailedEventAttributes"-        <*> o .:? "startChildWorkflowExecutionInitiatedEventAttributes"-        <*> o .:? "startTimerFailedEventAttributes"-        <*> o .:? "timerCanceledEventAttributes"-        <*> o .:? "timerFiredEventAttributes"-        <*> o .:? "timerStartedEventAttributes"-        <*> o .:? "workflowExecutionCancelRequestedEventAttributes"-        <*> o .:? "workflowExecutionCanceledEventAttributes"-        <*> o .:? "workflowExecutionCompletedEventAttributes"-        <*> o .:? "workflowExecutionContinuedAsNewEventAttributes"-        <*> o .:? "workflowExecutionFailedEventAttributes"-        <*> o .:? "workflowExecutionSignaledEventAttributes"-        <*> o .:? "workflowExecutionStartedEventAttributes"-        <*> o .:? "workflowExecutionTerminatedEventAttributes"-        <*> o .:? "workflowExecutionTimedOutEventAttributes"--instance ToJSON HistoryEvent where-    toJSON HistoryEvent{..} = object-        [ "eventTimestamp"                                                 .= _heEventTimestamp-        , "eventType"                                                      .= _heEventType-        , "eventId"                                                        .= _heEventId-        , "workflowExecutionStartedEventAttributes"                        .= _heWorkflowExecutionStartedEventAttributes-        , "workflowExecutionCompletedEventAttributes"                      .= _heWorkflowExecutionCompletedEventAttributes-        , "completeWorkflowExecutionFailedEventAttributes"                 .= _heCompleteWorkflowExecutionFailedEventAttributes-        , "workflowExecutionFailedEventAttributes"                         .= _heWorkflowExecutionFailedEventAttributes-        , "failWorkflowExecutionFailedEventAttributes"                     .= _heFailWorkflowExecutionFailedEventAttributes-        , "workflowExecutionTimedOutEventAttributes"                       .= _heWorkflowExecutionTimedOutEventAttributes-        , "workflowExecutionCanceledEventAttributes"                       .= _heWorkflowExecutionCanceledEventAttributes-        , "cancelWorkflowExecutionFailedEventAttributes"                   .= _heCancelWorkflowExecutionFailedEventAttributes-        , "workflowExecutionContinuedAsNewEventAttributes"                 .= _heWorkflowExecutionContinuedAsNewEventAttributes-        , "continueAsNewWorkflowExecutionFailedEventAttributes"            .= _heContinueAsNewWorkflowExecutionFailedEventAttributes-        , "workflowExecutionTerminatedEventAttributes"                     .= _heWorkflowExecutionTerminatedEventAttributes-        , "workflowExecutionCancelRequestedEventAttributes"                .= _heWorkflowExecutionCancelRequestedEventAttributes-        , "decisionTaskScheduledEventAttributes"                           .= _heDecisionTaskScheduledEventAttributes-        , "decisionTaskStartedEventAttributes"                             .= _heDecisionTaskStartedEventAttributes-        , "decisionTaskCompletedEventAttributes"                           .= _heDecisionTaskCompletedEventAttributes-        , "decisionTaskTimedOutEventAttributes"                            .= _heDecisionTaskTimedOutEventAttributes-        , "activityTaskScheduledEventAttributes"                           .= _heActivityTaskScheduledEventAttributes-        , "activityTaskStartedEventAttributes"                             .= _heActivityTaskStartedEventAttributes-        , "activityTaskCompletedEventAttributes"                           .= _heActivityTaskCompletedEventAttributes-        , "activityTaskFailedEventAttributes"                              .= _heActivityTaskFailedEventAttributes-        , "activityTaskTimedOutEventAttributes"                            .= _heActivityTaskTimedOutEventAttributes-        , "activityTaskCanceledEventAttributes"                            .= _heActivityTaskCanceledEventAttributes-        , "activityTaskCancelRequestedEventAttributes"                     .= _heActivityTaskCancelRequestedEventAttributes-        , "workflowExecutionSignaledEventAttributes"                       .= _heWorkflowExecutionSignaledEventAttributes-        , "markerRecordedEventAttributes"                                  .= _heMarkerRecordedEventAttributes-        , "recordMarkerFailedEventAttributes"                              .= _heRecordMarkerFailedEventAttributes-        , "timerStartedEventAttributes"                                    .= _heTimerStartedEventAttributes-        , "timerFiredEventAttributes"                                      .= _heTimerFiredEventAttributes-        , "timerCanceledEventAttributes"                                   .= _heTimerCanceledEventAttributes-        , "startChildWorkflowExecutionInitiatedEventAttributes"            .= _heStartChildWorkflowExecutionInitiatedEventAttributes-        , "childWorkflowExecutionStartedEventAttributes"                   .= _heChildWorkflowExecutionStartedEventAttributes-        , "childWorkflowExecutionCompletedEventAttributes"                 .= _heChildWorkflowExecutionCompletedEventAttributes-        , "childWorkflowExecutionFailedEventAttributes"                    .= _heChildWorkflowExecutionFailedEventAttributes-        , "childWorkflowExecutionTimedOutEventAttributes"                  .= _heChildWorkflowExecutionTimedOutEventAttributes-        , "childWorkflowExecutionCanceledEventAttributes"                  .= _heChildWorkflowExecutionCanceledEventAttributes-        , "childWorkflowExecutionTerminatedEventAttributes"                .= _heChildWorkflowExecutionTerminatedEventAttributes-        , "signalExternalWorkflowExecutionInitiatedEventAttributes"        .= _heSignalExternalWorkflowExecutionInitiatedEventAttributes-        , "externalWorkflowExecutionSignaledEventAttributes"               .= _heExternalWorkflowExecutionSignaledEventAttributes-        , "signalExternalWorkflowExecutionFailedEventAttributes"           .= _heSignalExternalWorkflowExecutionFailedEventAttributes-        , "externalWorkflowExecutionCancelRequestedEventAttributes"        .= _heExternalWorkflowExecutionCancelRequestedEventAttributes-        , "requestCancelExternalWorkflowExecutionInitiatedEventAttributes" .= _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes-        , "requestCancelExternalWorkflowExecutionFailedEventAttributes"    .= _heRequestCancelExternalWorkflowExecutionFailedEventAttributes-        , "scheduleActivityTaskFailedEventAttributes"                      .= _heScheduleActivityTaskFailedEventAttributes-        , "requestCancelActivityTaskFailedEventAttributes"                 .= _heRequestCancelActivityTaskFailedEventAttributes-        , "startTimerFailedEventAttributes"                                .= _heStartTimerFailedEventAttributes-        , "cancelTimerFailedEventAttributes"                               .= _heCancelTimerFailedEventAttributes-        , "startChildWorkflowExecutionFailedEventAttributes"               .= _heStartChildWorkflowExecutionFailedEventAttributes-        ]--data ContinueAsNewWorkflowExecutionFailedEventAttributes = ContinueAsNewWorkflowExecutionFailedEventAttributes-    { _canwefeaCause                        :: ContinueAsNewWorkflowExecutionFailedCause-    , _canwefeaDecisionTaskCompletedEventId :: Integer-    } deriving (Eq, Read, Show)---- | 'ContinueAsNewWorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'canwefeaCause' @::@ 'ContinueAsNewWorkflowExecutionFailedCause'------ * 'canwefeaDecisionTaskCompletedEventId' @::@ 'Integer'----continueAsNewWorkflowExecutionFailedEventAttributes :: ContinueAsNewWorkflowExecutionFailedCause -- ^ 'canwefeaCause'-                                                    -> Integer -- ^ 'canwefeaDecisionTaskCompletedEventId'-                                                    -> ContinueAsNewWorkflowExecutionFailedEventAttributes-continueAsNewWorkflowExecutionFailedEventAttributes p1 p2 = ContinueAsNewWorkflowExecutionFailedEventAttributes-    { _canwefeaCause                        = p1-    , _canwefeaDecisionTaskCompletedEventId = p2-    }---- | The cause of the failure. This information is generated by the system and can--- be useful for diagnostic purposes.------ If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it--- lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause-canwefeaCause = lens _canwefeaCause (\s a -> s { _canwefeaCause = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'ContinueAsNewWorkflowExecution' decision that started--- this execution. This information can be useful for diagnosing problems by--- tracing back the chain of events leading up to this event.-canwefeaDecisionTaskCompletedEventId :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes Integer-canwefeaDecisionTaskCompletedEventId =-    lens _canwefeaDecisionTaskCompletedEventId-        (\s a -> s { _canwefeaDecisionTaskCompletedEventId = a })--instance FromJSON ContinueAsNewWorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "ContinueAsNewWorkflowExecutionFailedEventAttributes" $ \o -> ContinueAsNewWorkflowExecutionFailedEventAttributes-        <$> o .:  "cause"-        <*> o .:  "decisionTaskCompletedEventId"--instance ToJSON ContinueAsNewWorkflowExecutionFailedEventAttributes where-    toJSON ContinueAsNewWorkflowExecutionFailedEventAttributes{..} = object-        [ "cause"                        .= _canwefeaCause-        , "decisionTaskCompletedEventId" .= _canwefeaDecisionTaskCompletedEventId-        ]--data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes-    { _seweieaControl                      :: Maybe Text-    , _seweieaDecisionTaskCompletedEventId :: Integer-    , _seweieaInput                        :: Maybe Text-    , _seweieaRunId                        :: Maybe Text-    , _seweieaSignalName                   :: Text-    , _seweieaWorkflowId                   :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'SignalExternalWorkflowExecutionInitiatedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'seweieaControl' @::@ 'Maybe' 'Text'------ * 'seweieaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'seweieaInput' @::@ 'Maybe' 'Text'------ * 'seweieaRunId' @::@ 'Maybe' 'Text'------ * 'seweieaSignalName' @::@ 'Text'------ * 'seweieaWorkflowId' @::@ 'Text'----signalExternalWorkflowExecutionInitiatedEventAttributes :: Text -- ^ 'seweieaWorkflowId'-                                                        -> Text -- ^ 'seweieaSignalName'-                                                        -> Integer -- ^ 'seweieaDecisionTaskCompletedEventId'-                                                        -> SignalExternalWorkflowExecutionInitiatedEventAttributes-signalExternalWorkflowExecutionInitiatedEventAttributes p1 p2 p3 = SignalExternalWorkflowExecutionInitiatedEventAttributes-    { _seweieaWorkflowId                   = p1-    , _seweieaSignalName                   = p2-    , _seweieaDecisionTaskCompletedEventId = p3-    , _seweieaRunId                        = Nothing-    , _seweieaInput                        = Nothing-    , _seweieaControl                      = Nothing-    }---- | /Optional./ data attached to the event that can be used by the decider in--- subsequent decision tasks.-seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaControl = lens _seweieaControl (\s a -> s { _seweieaControl = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'SignalExternalWorkflowExecution' decision for this--- signal. This information can be useful for diagnosing problems by tracing--- back the chain of events leading up to this event.-seweieaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Integer-seweieaDecisionTaskCompletedEventId =-    lens _seweieaDecisionTaskCompletedEventId-        (\s a -> s { _seweieaDecisionTaskCompletedEventId = a })---- | Input provided to the signal (if any).-seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaInput = lens _seweieaInput (\s a -> s { _seweieaInput = a })---- | The 'runId' of the external workflow execution to send the signal to.-seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaRunId = lens _seweieaRunId (\s a -> s { _seweieaRunId = a })---- | The name of the signal.-seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text-seweieaSignalName =-    lens _seweieaSignalName (\s a -> s { _seweieaSignalName = a })---- | The 'workflowId' of the external workflow execution.-seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text-seweieaWorkflowId =-    lens _seweieaWorkflowId (\s a -> s { _seweieaWorkflowId = a })--instance FromJSON SignalExternalWorkflowExecutionInitiatedEventAttributes where-    parseJSON = withObject "SignalExternalWorkflowExecutionInitiatedEventAttributes" $ \o -> SignalExternalWorkflowExecutionInitiatedEventAttributes-        <$> o .:? "control"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "input"-        <*> o .:? "runId"-        <*> o .:  "signalName"-        <*> o .:  "workflowId"--instance ToJSON SignalExternalWorkflowExecutionInitiatedEventAttributes where-    toJSON SignalExternalWorkflowExecutionInitiatedEventAttributes{..} = object-        [ "workflowId"                   .= _seweieaWorkflowId-        , "runId"                        .= _seweieaRunId-        , "signalName"                   .= _seweieaSignalName-        , "input"                        .= _seweieaInput-        , "decisionTaskCompletedEventId" .= _seweieaDecisionTaskCompletedEventId-        , "control"                      .= _seweieaControl-        ]--newtype CancelTimerDecisionAttributes = CancelTimerDecisionAttributes-    { _ctdaTimerId :: Text-    } deriving (Eq, Ord, Read, Show, Monoid, IsString)---- | 'CancelTimerDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'ctdaTimerId' @::@ 'Text'----cancelTimerDecisionAttributes :: Text -- ^ 'ctdaTimerId'-                              -> CancelTimerDecisionAttributes-cancelTimerDecisionAttributes p1 = CancelTimerDecisionAttributes-    { _ctdaTimerId = p1-    }---- | Required. The unique Id of the timer to cancel.-ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text-ctdaTimerId = lens _ctdaTimerId (\s a -> s { _ctdaTimerId = a })--instance FromJSON CancelTimerDecisionAttributes where-    parseJSON = withObject "CancelTimerDecisionAttributes" $ \o -> CancelTimerDecisionAttributes-        <$> o .:  "timerId"--instance ToJSON CancelTimerDecisionAttributes where-    toJSON CancelTimerDecisionAttributes{..} = object-        [ "timerId" .= _ctdaTimerId-        ]--data WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes-    { _wefeaDecisionTaskCompletedEventId :: Integer-    , _wefeaDetails                      :: Maybe Text-    , _wefeaReason                       :: Maybe Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecutionFailedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wefeaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'wefeaDetails' @::@ 'Maybe' 'Text'------ * 'wefeaReason' @::@ 'Maybe' 'Text'----workflowExecutionFailedEventAttributes :: Integer -- ^ 'wefeaDecisionTaskCompletedEventId'-                                       -> WorkflowExecutionFailedEventAttributes-workflowExecutionFailedEventAttributes p1 = WorkflowExecutionFailedEventAttributes-    { _wefeaDecisionTaskCompletedEventId = p1-    , _wefeaReason                       = Nothing-    , _wefeaDetails                      = Nothing-    }---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'FailWorkflowExecution' decision to fail this execution.--- This information can be useful for diagnosing problems by tracing back the--- chain of events leading up to this event.-wefeaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionFailedEventAttributes Integer-wefeaDecisionTaskCompletedEventId =-    lens _wefeaDecisionTaskCompletedEventId-        (\s a -> s { _wefeaDecisionTaskCompletedEventId = a })---- | The details of the failure (if any).-wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)-wefeaDetails = lens _wefeaDetails (\s a -> s { _wefeaDetails = a })---- | The descriptive reason provided for the failure (if any).-wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)-wefeaReason = lens _wefeaReason (\s a -> s { _wefeaReason = a })--instance FromJSON WorkflowExecutionFailedEventAttributes where-    parseJSON = withObject "WorkflowExecutionFailedEventAttributes" $ \o -> WorkflowExecutionFailedEventAttributes-        <$> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "details"-        <*> o .:? "reason"--instance ToJSON WorkflowExecutionFailedEventAttributes where-    toJSON WorkflowExecutionFailedEventAttributes{..} = object-        [ "reason"                       .= _wefeaReason-        , "details"                      .= _wefeaDetails-        , "decisionTaskCompletedEventId" .= _wefeaDecisionTaskCompletedEventId-        ]--data WorkflowExecutionConfiguration = WorkflowExecutionConfiguration-    { _wecChildPolicy                  :: ChildPolicy-    , _wecExecutionStartToCloseTimeout :: Text-    , _wecTaskList                     :: TaskList-    , _wecTaskPriority                 :: Maybe Text-    , _wecTaskStartToCloseTimeout      :: Text-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionConfiguration' constructor.------ The fields accessible through corresponding lenses are:------ * 'wecChildPolicy' @::@ 'ChildPolicy'------ * 'wecExecutionStartToCloseTimeout' @::@ 'Text'------ * 'wecTaskList' @::@ 'TaskList'------ * 'wecTaskPriority' @::@ 'Maybe' 'Text'------ * 'wecTaskStartToCloseTimeout' @::@ 'Text'----workflowExecutionConfiguration :: Text -- ^ 'wecTaskStartToCloseTimeout'-                               -> Text -- ^ 'wecExecutionStartToCloseTimeout'-                               -> TaskList -- ^ 'wecTaskList'-                               -> ChildPolicy -- ^ 'wecChildPolicy'-                               -> WorkflowExecutionConfiguration-workflowExecutionConfiguration p1 p2 p3 p4 = WorkflowExecutionConfiguration-    { _wecTaskStartToCloseTimeout      = p1-    , _wecExecutionStartToCloseTimeout = p2-    , _wecTaskList                     = p3-    , _wecChildPolicy                  = p4-    , _wecTaskPriority                 = Nothing-    }---- | The policy to use for the child workflow executions if this workflow--- execution is terminated, by calling the 'TerminateWorkflowExecution' action--- explicitly or due to an expired timeout.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy-wecChildPolicy = lens _wecChildPolicy (\s a -> s { _wecChildPolicy = a })---- | The total duration for this workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text-wecExecutionStartToCloseTimeout =-    lens _wecExecutionStartToCloseTimeout-        (\s a -> s { _wecExecutionStartToCloseTimeout = a })---- | The task list used for the decision tasks generated for this workflow--- execution.-wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList-wecTaskList = lens _wecTaskList (\s a -> s { _wecTaskList = a })---- | The priority assigned to decision tasks for this workflow execution. Valid--- values are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)-wecTaskPriority = lens _wecTaskPriority (\s a -> s { _wecTaskPriority = a })---- | The maximum duration allowed for decision tasks for this workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text-wecTaskStartToCloseTimeout =-    lens _wecTaskStartToCloseTimeout-        (\s a -> s { _wecTaskStartToCloseTimeout = a })--instance FromJSON WorkflowExecutionConfiguration where-    parseJSON = withObject "WorkflowExecutionConfiguration" $ \o -> WorkflowExecutionConfiguration-        <$> o .:  "childPolicy"-        <*> o .:  "executionStartToCloseTimeout"-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"-        <*> o .:  "taskStartToCloseTimeout"--instance ToJSON WorkflowExecutionConfiguration where-    toJSON WorkflowExecutionConfiguration{..} = object-        [ "taskStartToCloseTimeout"      .= _wecTaskStartToCloseTimeout-        , "executionStartToCloseTimeout" .= _wecExecutionStartToCloseTimeout-        , "taskList"                     .= _wecTaskList-        , "taskPriority"                 .= _wecTaskPriority-        , "childPolicy"                  .= _wecChildPolicy-        ]--data WorkflowExecution = WorkflowExecution-    { _weRunId      :: Text-    , _weWorkflowId :: Text-    } deriving (Eq, Ord, Read, Show)---- | 'WorkflowExecution' constructor.------ The fields accessible through corresponding lenses are:------ * 'weRunId' @::@ 'Text'------ * 'weWorkflowId' @::@ 'Text'----workflowExecution :: Text -- ^ 'weWorkflowId'-                  -> Text -- ^ 'weRunId'-                  -> WorkflowExecution-workflowExecution p1 p2 = WorkflowExecution-    { _weWorkflowId = p1-    , _weRunId      = p2-    }---- | A system-generated unique identifier for the workflow execution.-weRunId :: Lens' WorkflowExecution Text-weRunId = lens _weRunId (\s a -> s { _weRunId = a })---- | The user defined identifier associated with the workflow execution.-weWorkflowId :: Lens' WorkflowExecution Text-weWorkflowId = lens _weWorkflowId (\s a -> s { _weWorkflowId = a })--instance FromJSON WorkflowExecution where-    parseJSON = withObject "WorkflowExecution" $ \o -> WorkflowExecution-        <$> o .:  "runId"-        <*> o .:  "workflowId"--instance ToJSON WorkflowExecution where-    toJSON WorkflowExecution{..} = object-        [ "workflowId" .= _weWorkflowId-        , "runId"      .= _weRunId-        ]--data RequestCancelExternalWorkflowExecutionFailedCause-    = RCEWEFCOperationNotPermitted                              -- ^ OPERATION_NOT_PERMITTED-    | RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded -- ^ REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED-    | RCEWEFCUnknownExternalWorkflowExecution                   -- ^ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION-      deriving (Eq, Ord, Read, Show, Generic, Enum)--instance Hashable RequestCancelExternalWorkflowExecutionFailedCause--instance FromText RequestCancelExternalWorkflowExecutionFailedCause where-    parser = takeLowerText >>= \case-        "operation_not_permitted"                                  -> pure RCEWEFCOperationNotPermitted-        "request_cancel_external_workflow_execution_rate_exceeded" -> pure RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded-        "unknown_external_workflow_execution"                      -> pure RCEWEFCUnknownExternalWorkflowExecution-        e                                                          -> fail $-            "Failure parsing RequestCancelExternalWorkflowExecutionFailedCause from " ++ show e--instance ToText RequestCancelExternalWorkflowExecutionFailedCause where-    toText = \case-        RCEWEFCOperationNotPermitted                              -> "OPERATION_NOT_PERMITTED"-        RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded -> "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"-        RCEWEFCUnknownExternalWorkflowExecution                   -> "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"--instance ToByteString RequestCancelExternalWorkflowExecutionFailedCause-instance ToHeader     RequestCancelExternalWorkflowExecutionFailedCause-instance ToQuery      RequestCancelExternalWorkflowExecutionFailedCause--instance FromJSON RequestCancelExternalWorkflowExecutionFailedCause where-    parseJSON = parseJSONText "RequestCancelExternalWorkflowExecutionFailedCause"--instance ToJSON RequestCancelExternalWorkflowExecutionFailedCause where-    toJSON = toJSONText--data ContinueAsNewWorkflowExecutionDecisionAttributes = ContinueAsNewWorkflowExecutionDecisionAttributes-    { _canwedaChildPolicy                  :: Maybe ChildPolicy-    , _canwedaExecutionStartToCloseTimeout :: Maybe Text-    , _canwedaInput                        :: Maybe Text-    , _canwedaTagList                      :: List "tagList" Text-    , _canwedaTaskList                     :: Maybe TaskList-    , _canwedaTaskPriority                 :: Maybe Text-    , _canwedaTaskStartToCloseTimeout      :: Maybe Text-    , _canwedaWorkflowTypeVersion          :: Maybe Text-    } deriving (Eq, Read, Show)---- | 'ContinueAsNewWorkflowExecutionDecisionAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'canwedaChildPolicy' @::@ 'Maybe' 'ChildPolicy'------ * 'canwedaExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'canwedaInput' @::@ 'Maybe' 'Text'------ * 'canwedaTagList' @::@ ['Text']------ * 'canwedaTaskList' @::@ 'Maybe' 'TaskList'------ * 'canwedaTaskPriority' @::@ 'Maybe' 'Text'------ * 'canwedaTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'canwedaWorkflowTypeVersion' @::@ 'Maybe' 'Text'----continueAsNewWorkflowExecutionDecisionAttributes :: ContinueAsNewWorkflowExecutionDecisionAttributes-continueAsNewWorkflowExecutionDecisionAttributes = ContinueAsNewWorkflowExecutionDecisionAttributes-    { _canwedaInput                        = Nothing-    , _canwedaExecutionStartToCloseTimeout = Nothing-    , _canwedaTaskList                     = Nothing-    , _canwedaTaskPriority                 = Nothing-    , _canwedaTaskStartToCloseTimeout      = Nothing-    , _canwedaChildPolicy                  = Nothing-    , _canwedaTagList                      = mempty-    , _canwedaWorkflowTypeVersion          = Nothing-    }---- | If set, specifies the policy to use for the child workflow executions of the--- new execution if it is terminated by calling the 'TerminateWorkflowExecution'--- action explicitly or due to an expired timeout. This policy overrides the--- default child policy specified when registering the workflow type using 'RegisterWorkflowType'.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.  A child policy for--- this workflow execution must be specified either as a default for the--- workflow type or through this parameter. If neither this parameter is set nor--- a default child policy was specified at registration time then a fault will--- be returned.-canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)-canwedaChildPolicy =-    lens _canwedaChildPolicy (\s a -> s { _canwedaChildPolicy = a })---- | If set, specifies the total duration for this workflow execution. This--- overrides the 'defaultExecutionStartToCloseTimeout' specified when registering--- the workflow type.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ An execution start-to-close timeout for this workflow execution must be--- specified either as a default for the workflow type or through this field. If--- neither this field is set nor a default execution start-to-close timeout was--- specified at registration time then a fault will be returned.-canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaExecutionStartToCloseTimeout =-    lens _canwedaExecutionStartToCloseTimeout-        (\s a -> s { _canwedaExecutionStartToCloseTimeout = a })---- | The input provided to the new workflow execution.-canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaInput = lens _canwedaInput (\s a -> s { _canwedaInput = a })---- | The list of tags to associate with the new workflow execution. A maximum of 5--- tags can be specified. You can list workflow executions with a specific tag--- by calling 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and--- specifying a 'TagFilter'.-canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]-canwedaTagList = lens _canwedaTagList (\s a -> s { _canwedaTagList = a }) . _List--canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)-canwedaTaskList = lens _canwedaTaskList (\s a -> s { _canwedaTaskList = a })---- | /Optional./ The task priority that, if set, specifies the priority for the--- decision tasks for this workflow execution. This overrides the--- defaultTaskPriority specified when registering the workflow type. Valid--- values are integers that range from Java's 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>--- in the /Amazon Simple Workflow Developer Guide/.-canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaTaskPriority =-    lens _canwedaTaskPriority (\s a -> s { _canwedaTaskPriority = a })---- | Specifies the maximum duration of decision tasks for the new workflow--- execution. This parameter overrides the 'defaultTaskStartToCloseTimout'--- specified when registering the workflow type using 'RegisterWorkflowType'.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.------ A task start-to-close timeout for the new workflow execution must be--- specified either as a default for the workflow type or through this--- parameter. If neither this parameter is set nor a default task start-to-close--- timeout was specified at registration time then a fault will be returned.-canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaTaskStartToCloseTimeout =-    lens _canwedaTaskStartToCloseTimeout-        (\s a -> s { _canwedaTaskStartToCloseTimeout = a })--canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaWorkflowTypeVersion =-    lens _canwedaWorkflowTypeVersion-        (\s a -> s { _canwedaWorkflowTypeVersion = a })--instance FromJSON ContinueAsNewWorkflowExecutionDecisionAttributes where-    parseJSON = withObject "ContinueAsNewWorkflowExecutionDecisionAttributes" $ \o -> ContinueAsNewWorkflowExecutionDecisionAttributes-        <$> o .:? "childPolicy"-        <*> o .:? "executionStartToCloseTimeout"-        <*> o .:? "input"-        <*> o .:? "tagList" .!= mempty-        <*> o .:? "taskList"-        <*> o .:? "taskPriority"-        <*> o .:? "taskStartToCloseTimeout"-        <*> o .:? "workflowTypeVersion"--instance ToJSON ContinueAsNewWorkflowExecutionDecisionAttributes where-    toJSON ContinueAsNewWorkflowExecutionDecisionAttributes{..} = object-        [ "input"                        .= _canwedaInput-        , "executionStartToCloseTimeout" .= _canwedaExecutionStartToCloseTimeout-        , "taskList"                     .= _canwedaTaskList-        , "taskPriority"                 .= _canwedaTaskPriority-        , "taskStartToCloseTimeout"      .= _canwedaTaskStartToCloseTimeout-        , "childPolicy"                  .= _canwedaChildPolicy-        , "tagList"                      .= _canwedaTagList-        , "workflowTypeVersion"          .= _canwedaWorkflowTypeVersion-        ]--data ExternalWorkflowExecutionCancelRequestedEventAttributes = ExternalWorkflowExecutionCancelRequestedEventAttributes-    { _ewecreaInitiatedEventId  :: Integer-    , _ewecreaWorkflowExecution :: WorkflowExecution-    } deriving (Eq, Read, Show)---- | 'ExternalWorkflowExecutionCancelRequestedEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'ewecreaInitiatedEventId' @::@ 'Integer'------ * 'ewecreaWorkflowExecution' @::@ 'WorkflowExecution'----externalWorkflowExecutionCancelRequestedEventAttributes :: WorkflowExecution -- ^ 'ewecreaWorkflowExecution'-                                                        -> Integer -- ^ 'ewecreaInitiatedEventId'-                                                        -> ExternalWorkflowExecutionCancelRequestedEventAttributes-externalWorkflowExecutionCancelRequestedEventAttributes p1 p2 = ExternalWorkflowExecutionCancelRequestedEventAttributes-    { _ewecreaWorkflowExecution = p1-    , _ewecreaInitiatedEventId  = p2-    }---- | The id of the 'RequestCancelExternalWorkflowExecutionInitiated' event--- corresponding to the 'RequestCancelExternalWorkflowExecution' decision to--- cancel this external workflow execution. This information can be useful for--- diagnosing problems by tracing back the chain of events leading up to this--- event.-ewecreaInitiatedEventId :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes Integer-ewecreaInitiatedEventId =-    lens _ewecreaInitiatedEventId (\s a -> s { _ewecreaInitiatedEventId = a })---- | The external workflow execution to which the cancellation request was--- delivered.-ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution-ewecreaWorkflowExecution =-    lens _ewecreaWorkflowExecution-        (\s a -> s { _ewecreaWorkflowExecution = a })--instance FromJSON ExternalWorkflowExecutionCancelRequestedEventAttributes where-    parseJSON = withObject "ExternalWorkflowExecutionCancelRequestedEventAttributes" $ \o -> ExternalWorkflowExecutionCancelRequestedEventAttributes-        <$> o .:  "initiatedEventId"-        <*> o .:  "workflowExecution"--instance ToJSON ExternalWorkflowExecutionCancelRequestedEventAttributes where-    toJSON ExternalWorkflowExecutionCancelRequestedEventAttributes{..} = object-        [ "workflowExecution" .= _ewecreaWorkflowExecution-        , "initiatedEventId"  .= _ewecreaInitiatedEventId-        ]--data PendingTaskCount = PendingTaskCount-    { _ptcCount     :: Nat-    , _ptcTruncated :: Maybe Bool-    } deriving (Eq, Ord, Read, Show)---- | 'PendingTaskCount' constructor.------ The fields accessible through corresponding lenses are:------ * 'ptcCount' @::@ 'Natural'------ * 'ptcTruncated' @::@ 'Maybe' 'Bool'----pendingTaskCount :: Natural -- ^ 'ptcCount'-                 -> PendingTaskCount-pendingTaskCount p1 = PendingTaskCount-    { _ptcCount     = withIso _Nat (const id) p1-    , _ptcTruncated = Nothing-    }---- | The number of tasks in the task list.-ptcCount :: Lens' PendingTaskCount Natural-ptcCount = lens _ptcCount (\s a -> s { _ptcCount = a }) . _Nat---- | If set to true, indicates that the actual count was more than the maximum--- supported by this API and the count returned is the truncated value.-ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)-ptcTruncated = lens _ptcTruncated (\s a -> s { _ptcTruncated = a })--instance FromJSON PendingTaskCount where-    parseJSON = withObject "PendingTaskCount" $ \o -> PendingTaskCount-        <$> o .:  "count"-        <*> o .:? "truncated"--instance ToJSON PendingTaskCount where-    toJSON PendingTaskCount{..} = object-        [ "count"     .= _ptcCount-        , "truncated" .= _ptcTruncated-        ]--data WorkflowExecutionContinuedAsNewEventAttributes = WorkflowExecutionContinuedAsNewEventAttributes-    { _wecaneaChildPolicy                  :: ChildPolicy-    , _wecaneaDecisionTaskCompletedEventId :: Integer-    , _wecaneaExecutionStartToCloseTimeout :: Maybe Text-    , _wecaneaInput                        :: Maybe Text-    , _wecaneaNewExecutionRunId            :: Text-    , _wecaneaTagList                      :: List "tagList" Text-    , _wecaneaTaskList                     :: TaskList-    , _wecaneaTaskPriority                 :: Maybe Text-    , _wecaneaTaskStartToCloseTimeout      :: Maybe Text-    , _wecaneaWorkflowType                 :: WorkflowType-    } deriving (Eq, Read, Show)---- | 'WorkflowExecutionContinuedAsNewEventAttributes' constructor.------ The fields accessible through corresponding lenses are:------ * 'wecaneaChildPolicy' @::@ 'ChildPolicy'------ * 'wecaneaDecisionTaskCompletedEventId' @::@ 'Integer'------ * 'wecaneaExecutionStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'wecaneaInput' @::@ 'Maybe' 'Text'------ * 'wecaneaNewExecutionRunId' @::@ 'Text'------ * 'wecaneaTagList' @::@ ['Text']------ * 'wecaneaTaskList' @::@ 'TaskList'------ * 'wecaneaTaskPriority' @::@ 'Maybe' 'Text'------ * 'wecaneaTaskStartToCloseTimeout' @::@ 'Maybe' 'Text'------ * 'wecaneaWorkflowType' @::@ 'WorkflowType'----workflowExecutionContinuedAsNewEventAttributes :: Integer -- ^ 'wecaneaDecisionTaskCompletedEventId'-                                               -> Text -- ^ 'wecaneaNewExecutionRunId'-                                               -> TaskList -- ^ 'wecaneaTaskList'-                                               -> ChildPolicy -- ^ 'wecaneaChildPolicy'-                                               -> WorkflowType -- ^ 'wecaneaWorkflowType'-                                               -> WorkflowExecutionContinuedAsNewEventAttributes-workflowExecutionContinuedAsNewEventAttributes p1 p2 p3 p4 p5 = WorkflowExecutionContinuedAsNewEventAttributes-    { _wecaneaDecisionTaskCompletedEventId = p1-    , _wecaneaNewExecutionRunId            = p2-    , _wecaneaTaskList                     = p3-    , _wecaneaChildPolicy                  = p4-    , _wecaneaWorkflowType                 = p5-    , _wecaneaInput                        = Nothing-    , _wecaneaExecutionStartToCloseTimeout = Nothing-    , _wecaneaTaskPriority                 = Nothing-    , _wecaneaTaskStartToCloseTimeout      = Nothing-    , _wecaneaTagList                      = mempty-    }---- | The policy to use for the child workflow executions of the new execution if--- it is terminated by calling the 'TerminateWorkflowExecution' action explicitly--- or due to an expired timeout.------ The supported child policies are:------ TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a--- request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions--- when it receives an execution history with this event. ABANDON: no action--- will be taken. The child executions will continue to run.-wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy-wecaneaChildPolicy =-    lens _wecaneaChildPolicy (\s a -> s { _wecaneaChildPolicy = a })---- | The id of the 'DecisionTaskCompleted' event corresponding to the decision task--- that resulted in the 'ContinueAsNewWorkflowExecution' decision that started--- this execution. This information can be useful for diagnosing problems by--- tracing back the chain of events leading up to this event.-wecaneaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Integer-wecaneaDecisionTaskCompletedEventId =-    lens _wecaneaDecisionTaskCompletedEventId-        (\s a -> s { _wecaneaDecisionTaskCompletedEventId = a })---- | The total duration allowed for the new workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaExecutionStartToCloseTimeout =-    lens _wecaneaExecutionStartToCloseTimeout-        (\s a -> s { _wecaneaExecutionStartToCloseTimeout = a })---- | The input provided to the new workflow execution.-wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaInput = lens _wecaneaInput (\s a -> s { _wecaneaInput = a })---- | The 'runId' of the new workflow execution.-wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text-wecaneaNewExecutionRunId =-    lens _wecaneaNewExecutionRunId-        (\s a -> s { _wecaneaNewExecutionRunId = a })---- | The list of tags associated with the new workflow execution.-wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]-wecaneaTagList = lens _wecaneaTagList (\s a -> s { _wecaneaTagList = a }) . _List--wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList-wecaneaTaskList = lens _wecaneaTaskList (\s a -> s { _wecaneaTaskList = a })--wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaTaskPriority =-    lens _wecaneaTaskPriority (\s a -> s { _wecaneaTaskPriority = a })---- | The maximum duration of decision tasks for the new workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0.--- The value "NONE" can be used to specify unlimited duration.-wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaTaskStartToCloseTimeout =-    lens _wecaneaTaskStartToCloseTimeout-        (\s a -> s { _wecaneaTaskStartToCloseTimeout = a })--wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType-wecaneaWorkflowType =-    lens _wecaneaWorkflowType (\s a -> s { _wecaneaWorkflowType = a })--instance FromJSON WorkflowExecutionContinuedAsNewEventAttributes where-    parseJSON = withObject "WorkflowExecutionContinuedAsNewEventAttributes" $ \o -> WorkflowExecutionContinuedAsNewEventAttributes-        <$> o .:  "childPolicy"-        <*> o .:  "decisionTaskCompletedEventId"-        <*> o .:? "executionStartToCloseTimeout"-        <*> o .:? "input"-        <*> o .:  "newExecutionRunId"-        <*> o .:? "tagList" .!= mempty-        <*> o .:  "taskList"-        <*> o .:? "taskPriority"-        <*> o .:? "taskStartToCloseTimeout"-        <*> o .:  "workflowType"--instance ToJSON WorkflowExecutionContinuedAsNewEventAttributes where-    toJSON WorkflowExecutionContinuedAsNewEventAttributes{..} = object-        [ "input"                        .= _wecaneaInput-        , "decisionTaskCompletedEventId" .= _wecaneaDecisionTaskCompletedEventId-        , "newExecutionRunId"            .= _wecaneaNewExecutionRunId-        , "executionStartToCloseTimeout" .= _wecaneaExecutionStartToCloseTimeout-        , "taskList"                     .= _wecaneaTaskList-        , "taskPriority"                 .= _wecaneaTaskPriority-        , "taskStartToCloseTimeout"      .= _wecaneaTaskStartToCloseTimeout-        , "childPolicy"                  .= _wecaneaChildPolicy-        , "tagList"                      .= _wecaneaTagList-        , "workflowType"                 .= _wecaneaWorkflowType-        ]+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies      #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.SWF.Types+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.SWF.Types+    (+    -- * Service+      SWF++    -- * Errors+    , _LimitExceededFault+    , _WorkflowExecutionAlreadyStartedFault+    , _DomainAlreadyExistsFault+    , _UnknownResourceFault+    , _OperationNotPermittedFault+    , _DefaultUndefinedFault+    , _TypeDeprecatedFault+    , _TypeAlreadyExistsFault+    , _DomainDeprecatedFault++    -- * ActivityTaskTimeoutType+    , ActivityTaskTimeoutType (..)++    -- * CancelTimerFailedCause+    , CancelTimerFailedCause (..)++    -- * CancelWorkflowExecutionFailedCause+    , CancelWorkflowExecutionFailedCause (..)++    -- * ChildPolicy+    , ChildPolicy (..)++    -- * CloseStatus+    , CloseStatus (..)++    -- * CompleteWorkflowExecutionFailedCause+    , CompleteWorkflowExecutionFailedCause (..)++    -- * ContinueAsNewWorkflowExecutionFailedCause+    , ContinueAsNewWorkflowExecutionFailedCause (..)++    -- * DecisionTaskTimeoutType+    , DecisionTaskTimeoutType (..)++    -- * DecisionType+    , DecisionType (..)++    -- * EventType+    , EventType (..)++    -- * ExecutionStatus+    , ExecutionStatus (..)++    -- * FailWorkflowExecutionFailedCause+    , FailWorkflowExecutionFailedCause (..)++    -- * LambdaFunctionTimeoutType+    , LambdaFunctionTimeoutType (..)++    -- * RecordMarkerFailedCause+    , RecordMarkerFailedCause (..)++    -- * RegistrationStatus+    , RegistrationStatus (..)++    -- * RequestCancelActivityTaskFailedCause+    , RequestCancelActivityTaskFailedCause (..)++    -- * RequestCancelExternalWorkflowExecutionFailedCause+    , RequestCancelExternalWorkflowExecutionFailedCause (..)++    -- * ScheduleActivityTaskFailedCause+    , ScheduleActivityTaskFailedCause (..)++    -- * ScheduleLambdaFunctionFailedCause+    , ScheduleLambdaFunctionFailedCause (..)++    -- * SignalExternalWorkflowExecutionFailedCause+    , SignalExternalWorkflowExecutionFailedCause (..)++    -- * StartChildWorkflowExecutionFailedCause+    , StartChildWorkflowExecutionFailedCause (..)++    -- * StartLambdaFunctionFailedCause+    , StartLambdaFunctionFailedCause (..)++    -- * StartTimerFailedCause+    , StartTimerFailedCause (..)++    -- * WorkflowExecutionCancelRequestedCause+    , WorkflowExecutionCancelRequestedCause (..)++    -- * WorkflowExecutionTerminatedCause+    , WorkflowExecutionTerminatedCause (..)++    -- * WorkflowExecutionTimeoutType+    , WorkflowExecutionTimeoutType (..)++    -- * ActivityTaskCancelRequestedEventAttributes+    , ActivityTaskCancelRequestedEventAttributes+    , activityTaskCancelRequestedEventAttributes+    , atcreaDecisionTaskCompletedEventId+    , atcreaActivityId++    -- * ActivityTaskCanceledEventAttributes+    , ActivityTaskCanceledEventAttributes+    , activityTaskCanceledEventAttributes+    , aLatestCancelRequestedEventId+    , aDetails+    , aScheduledEventId+    , aStartedEventId++    -- * ActivityTaskCompletedEventAttributes+    , ActivityTaskCompletedEventAttributes+    , activityTaskCompletedEventAttributes+    , atceaResult+    , atceaScheduledEventId+    , atceaStartedEventId++    -- * ActivityTaskFailedEventAttributes+    , ActivityTaskFailedEventAttributes+    , activityTaskFailedEventAttributes+    , atfeaReason+    , atfeaDetails+    , atfeaScheduledEventId+    , atfeaStartedEventId++    -- * ActivityTaskScheduledEventAttributes+    , ActivityTaskScheduledEventAttributes+    , activityTaskScheduledEventAttributes+    , atseaControl+    , atseaScheduleToCloseTimeout+    , atseaHeartbeatTimeout+    , atseaInput+    , atseaTaskPriority+    , atseaScheduleToStartTimeout+    , atseaStartToCloseTimeout+    , atseaActivityType+    , atseaActivityId+    , atseaTaskList+    , atseaDecisionTaskCompletedEventId++    -- * ActivityTaskStartedEventAttributes+    , ActivityTaskStartedEventAttributes+    , activityTaskStartedEventAttributes+    , atseaIdentity+    , atseaScheduledEventId++    -- * ActivityTaskTimedOutEventAttributes+    , ActivityTaskTimedOutEventAttributes+    , activityTaskTimedOutEventAttributes+    , attoeaDetails+    , attoeaTimeoutType+    , attoeaScheduledEventId+    , attoeaStartedEventId++    -- * ActivityType+    , ActivityType+    , activityType+    , atName+    , atVersion++    -- * ActivityTypeConfiguration+    , ActivityTypeConfiguration+    , activityTypeConfiguration+    , atcDefaultTaskScheduleToStartTimeout+    , atcDefaultTaskList+    , atcDefaultTaskPriority+    , atcDefaultTaskHeartbeatTimeout+    , atcDefaultTaskScheduleToCloseTimeout+    , atcDefaultTaskStartToCloseTimeout++    -- * ActivityTypeInfo+    , ActivityTypeInfo+    , activityTypeInfo+    , atiDeprecationDate+    , atiDescription+    , atiActivityType+    , atiStatus+    , atiCreationDate++    -- * CancelTimerDecisionAttributes+    , CancelTimerDecisionAttributes+    , cancelTimerDecisionAttributes+    , ctdaTimerId++    -- * CancelTimerFailedEventAttributes+    , CancelTimerFailedEventAttributes+    , cancelTimerFailedEventAttributes+    , ctfeaTimerId+    , ctfeaCause+    , ctfeaDecisionTaskCompletedEventId++    -- * CancelWorkflowExecutionDecisionAttributes+    , CancelWorkflowExecutionDecisionAttributes+    , cancelWorkflowExecutionDecisionAttributes+    , cwedaDetails++    -- * CancelWorkflowExecutionFailedEventAttributes+    , CancelWorkflowExecutionFailedEventAttributes+    , cancelWorkflowExecutionFailedEventAttributes+    , cCause+    , cDecisionTaskCompletedEventId++    -- * ChildWorkflowExecutionCanceledEventAttributes+    , ChildWorkflowExecutionCanceledEventAttributes+    , childWorkflowExecutionCanceledEventAttributes+    , cDetails+    , cWorkflowExecution+    , cWorkflowType+    , cInitiatedEventId+    , cStartedEventId++    -- * ChildWorkflowExecutionCompletedEventAttributes+    , ChildWorkflowExecutionCompletedEventAttributes+    , childWorkflowExecutionCompletedEventAttributes+    , cweceaResult+    , cweceaWorkflowExecution+    , cweceaWorkflowType+    , cweceaInitiatedEventId+    , cweceaStartedEventId++    -- * ChildWorkflowExecutionFailedEventAttributes+    , ChildWorkflowExecutionFailedEventAttributes+    , childWorkflowExecutionFailedEventAttributes+    , cwefeaReason+    , cwefeaDetails+    , cwefeaWorkflowExecution+    , cwefeaWorkflowType+    , cwefeaInitiatedEventId+    , cwefeaStartedEventId++    -- * ChildWorkflowExecutionStartedEventAttributes+    , ChildWorkflowExecutionStartedEventAttributes+    , childWorkflowExecutionStartedEventAttributes+    , cweseaWorkflowExecution+    , cweseaWorkflowType+    , cweseaInitiatedEventId++    -- * ChildWorkflowExecutionTerminatedEventAttributes+    , ChildWorkflowExecutionTerminatedEventAttributes+    , childWorkflowExecutionTerminatedEventAttributes+    , cweteaWorkflowExecution+    , cweteaWorkflowType+    , cweteaInitiatedEventId+    , cweteaStartedEventId++    -- * ChildWorkflowExecutionTimedOutEventAttributes+    , ChildWorkflowExecutionTimedOutEventAttributes+    , childWorkflowExecutionTimedOutEventAttributes+    , cwetoeaWorkflowExecution+    , cwetoeaWorkflowType+    , cwetoeaTimeoutType+    , cwetoeaInitiatedEventId+    , cwetoeaStartedEventId++    -- * CloseStatusFilter+    , CloseStatusFilter+    , closeStatusFilter+    , csfStatus++    -- * CompleteWorkflowExecutionDecisionAttributes+    , CompleteWorkflowExecutionDecisionAttributes+    , completeWorkflowExecutionDecisionAttributes+    , cwedaResult++    -- * CompleteWorkflowExecutionFailedEventAttributes+    , CompleteWorkflowExecutionFailedEventAttributes+    , completeWorkflowExecutionFailedEventAttributes+    , cwefeaCause+    , cwefeaDecisionTaskCompletedEventId++    -- * ContinueAsNewWorkflowExecutionDecisionAttributes+    , ContinueAsNewWorkflowExecutionDecisionAttributes+    , continueAsNewWorkflowExecutionDecisionAttributes+    , canwedaTagList+    , canwedaTaskStartToCloseTimeout+    , canwedaLambdaRole+    , canwedaInput+    , canwedaWorkflowTypeVersion+    , canwedaExecutionStartToCloseTimeout+    , canwedaTaskList+    , canwedaTaskPriority+    , canwedaChildPolicy++    -- * ContinueAsNewWorkflowExecutionFailedEventAttributes+    , ContinueAsNewWorkflowExecutionFailedEventAttributes+    , continueAsNewWorkflowExecutionFailedEventAttributes+    , canwefeaCause+    , canwefeaDecisionTaskCompletedEventId++    -- * Decision+    , Decision+    , decision+    , dRequestCancelExternalWorkflowExecutionDecisionAttributes+    , dScheduleActivityTaskDecisionAttributes+    , dSignalExternalWorkflowExecutionDecisionAttributes+    , dStartTimerDecisionAttributes+    , dRecordMarkerDecisionAttributes+    , dFailWorkflowExecutionDecisionAttributes+    , dStartChildWorkflowExecutionDecisionAttributes+    , dScheduleLambdaFunctionDecisionAttributes+    , dCompleteWorkflowExecutionDecisionAttributes+    , dRequestCancelActivityTaskDecisionAttributes+    , dCancelWorkflowExecutionDecisionAttributes+    , dCancelTimerDecisionAttributes+    , dContinueAsNewWorkflowExecutionDecisionAttributes+    , dDecisionType++    -- * DecisionTaskCompletedEventAttributes+    , DecisionTaskCompletedEventAttributes+    , decisionTaskCompletedEventAttributes+    , dtceaExecutionContext+    , dtceaScheduledEventId+    , dtceaStartedEventId++    -- * DecisionTaskScheduledEventAttributes+    , DecisionTaskScheduledEventAttributes+    , decisionTaskScheduledEventAttributes+    , dtseaTaskPriority+    , dtseaStartToCloseTimeout+    , dtseaTaskList++    -- * DecisionTaskStartedEventAttributes+    , DecisionTaskStartedEventAttributes+    , decisionTaskStartedEventAttributes+    , dtseaIdentity+    , dtseaScheduledEventId++    -- * DecisionTaskTimedOutEventAttributes+    , DecisionTaskTimedOutEventAttributes+    , decisionTaskTimedOutEventAttributes+    , dttoeaTimeoutType+    , dttoeaScheduledEventId+    , dttoeaStartedEventId++    -- * DomainConfiguration+    , DomainConfiguration+    , domainConfiguration+    , dcWorkflowExecutionRetentionPeriodInDays++    -- * DomainInfo+    , DomainInfo+    , domainInfo+    , diDescription+    , diName+    , diStatus++    -- * ExecutionTimeFilter+    , ExecutionTimeFilter+    , executionTimeFilter+    , etfLatestDate+    , etfOldestDate++    -- * ExternalWorkflowExecutionCancelRequestedEventAttributes+    , ExternalWorkflowExecutionCancelRequestedEventAttributes+    , externalWorkflowExecutionCancelRequestedEventAttributes+    , ewecreaWorkflowExecution+    , ewecreaInitiatedEventId++    -- * ExternalWorkflowExecutionSignaledEventAttributes+    , ExternalWorkflowExecutionSignaledEventAttributes+    , externalWorkflowExecutionSignaledEventAttributes+    , eweseaWorkflowExecution+    , eweseaInitiatedEventId++    -- * FailWorkflowExecutionDecisionAttributes+    , FailWorkflowExecutionDecisionAttributes+    , failWorkflowExecutionDecisionAttributes+    , fwedaReason+    , fwedaDetails++    -- * FailWorkflowExecutionFailedEventAttributes+    , FailWorkflowExecutionFailedEventAttributes+    , failWorkflowExecutionFailedEventAttributes+    , fwefeaCause+    , fwefeaDecisionTaskCompletedEventId++    -- * HistoryEvent+    , HistoryEvent+    , historyEvent+    , heWorkflowExecutionCancelRequestedEventAttributes+    , heDecisionTaskScheduledEventAttributes+    , heStartTimerFailedEventAttributes+    , heLambdaFunctionStartedEventAttributes+    , heRecordMarkerFailedEventAttributes+    , heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , heWorkflowExecutionCompletedEventAttributes+    , heActivityTaskScheduledEventAttributes+    , heChildWorkflowExecutionCompletedEventAttributes+    , heScheduleActivityTaskFailedEventAttributes+    , heMarkerRecordedEventAttributes+    , heScheduleLambdaFunctionFailedEventAttributes+    , heCompleteWorkflowExecutionFailedEventAttributes+    , heRequestCancelExternalWorkflowExecutionFailedEventAttributes+    , heLambdaFunctionCompletedEventAttributes+    , heTimerCanceledEventAttributes+    , heWorkflowExecutionStartedEventAttributes+    , heActivityTaskCompletedEventAttributes+    , heChildWorkflowExecutionStartedEventAttributes+    , heDecisionTaskTimedOutEventAttributes+    , heCancelTimerFailedEventAttributes+    , heActivityTaskTimedOutEventAttributes+    , heActivityTaskCanceledEventAttributes+    , heChildWorkflowExecutionCanceledEventAttributes+    , heDecisionTaskStartedEventAttributes+    , heCancelWorkflowExecutionFailedEventAttributes+    , heLambdaFunctionScheduledEventAttributes+    , heChildWorkflowExecutionTimedOutEventAttributes+    , heRequestCancelActivityTaskFailedEventAttributes+    , heWorkflowExecutionTerminatedEventAttributes+    , heStartChildWorkflowExecutionInitiatedEventAttributes+    , heActivityTaskStartedEventAttributes+    , heSignalExternalWorkflowExecutionFailedEventAttributes+    , heTimerStartedEventAttributes+    , heWorkflowExecutionTimedOutEventAttributes+    , heActivityTaskCancelRequestedEventAttributes+    , heStartLambdaFunctionFailedEventAttributes+    , heChildWorkflowExecutionTerminatedEventAttributes+    , heLambdaFunctionFailedEventAttributes+    , heWorkflowExecutionCanceledEventAttributes+    , heWorkflowExecutionSignaledEventAttributes+    , heActivityTaskFailedEventAttributes+    , heExternalWorkflowExecutionSignaledEventAttributes+    , heTimerFiredEventAttributes+    , heFailWorkflowExecutionFailedEventAttributes+    , heChildWorkflowExecutionFailedEventAttributes+    , heDecisionTaskCompletedEventAttributes+    , heStartChildWorkflowExecutionFailedEventAttributes+    , heSignalExternalWorkflowExecutionInitiatedEventAttributes+    , heContinueAsNewWorkflowExecutionFailedEventAttributes+    , heWorkflowExecutionFailedEventAttributes+    , heWorkflowExecutionContinuedAsNewEventAttributes+    , heExternalWorkflowExecutionCancelRequestedEventAttributes+    , heLambdaFunctionTimedOutEventAttributes+    , heEventTimestamp+    , heEventType+    , heEventId++    -- * LambdaFunctionCompletedEventAttributes+    , LambdaFunctionCompletedEventAttributes+    , lambdaFunctionCompletedEventAttributes+    , lfceaResult+    , lfceaScheduledEventId+    , lfceaStartedEventId++    -- * LambdaFunctionFailedEventAttributes+    , LambdaFunctionFailedEventAttributes+    , lambdaFunctionFailedEventAttributes+    , lffeaReason+    , lffeaDetails+    , lffeaScheduledEventId+    , lffeaStartedEventId++    -- * LambdaFunctionScheduledEventAttributes+    , LambdaFunctionScheduledEventAttributes+    , lambdaFunctionScheduledEventAttributes+    , lfseaInput+    , lfseaStartToCloseTimeout+    , lfseaId+    , lfseaName+    , lfseaDecisionTaskCompletedEventId++    -- * LambdaFunctionStartedEventAttributes+    , LambdaFunctionStartedEventAttributes+    , lambdaFunctionStartedEventAttributes+    , lfseaScheduledEventId++    -- * LambdaFunctionTimedOutEventAttributes+    , LambdaFunctionTimedOutEventAttributes+    , lambdaFunctionTimedOutEventAttributes+    , lftoeaTimeoutType+    , lftoeaScheduledEventId+    , lftoeaStartedEventId++    -- * MarkerRecordedEventAttributes+    , MarkerRecordedEventAttributes+    , markerRecordedEventAttributes+    , mreaDetails+    , mreaMarkerName+    , mreaDecisionTaskCompletedEventId++    -- * PendingTaskCount+    , PendingTaskCount+    , pendingTaskCount+    , ptcTruncated+    , ptcCount++    -- * RecordMarkerDecisionAttributes+    , RecordMarkerDecisionAttributes+    , recordMarkerDecisionAttributes+    , rmdaDetails+    , rmdaMarkerName++    -- * RecordMarkerFailedEventAttributes+    , RecordMarkerFailedEventAttributes+    , recordMarkerFailedEventAttributes+    , rmfeaMarkerName+    , rmfeaCause+    , rmfeaDecisionTaskCompletedEventId++    -- * RequestCancelActivityTaskDecisionAttributes+    , RequestCancelActivityTaskDecisionAttributes+    , requestCancelActivityTaskDecisionAttributes+    , rcatdaActivityId++    -- * RequestCancelActivityTaskFailedEventAttributes+    , RequestCancelActivityTaskFailedEventAttributes+    , requestCancelActivityTaskFailedEventAttributes+    , rcatfeaActivityId+    , rcatfeaCause+    , rcatfeaDecisionTaskCompletedEventId++    -- * RequestCancelExternalWorkflowExecutionDecisionAttributes+    , RequestCancelExternalWorkflowExecutionDecisionAttributes+    , requestCancelExternalWorkflowExecutionDecisionAttributes+    , rcewedaControl+    , rcewedaRunId+    , rcewedaWorkflowId++    -- * RequestCancelExternalWorkflowExecutionFailedEventAttributes+    , RequestCancelExternalWorkflowExecutionFailedEventAttributes+    , requestCancelExternalWorkflowExecutionFailedEventAttributes+    , rcewefeaControl+    , rcewefeaRunId+    , rcewefeaWorkflowId+    , rcewefeaCause+    , rcewefeaInitiatedEventId+    , rcewefeaDecisionTaskCompletedEventId++    -- * RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , requestCancelExternalWorkflowExecutionInitiatedEventAttributes+    , rceweieaControl+    , rceweieaRunId+    , rceweieaWorkflowId+    , rceweieaDecisionTaskCompletedEventId++    -- * ScheduleActivityTaskDecisionAttributes+    , ScheduleActivityTaskDecisionAttributes+    , scheduleActivityTaskDecisionAttributes+    , satdaControl+    , satdaScheduleToCloseTimeout+    , satdaHeartbeatTimeout+    , satdaInput+    , satdaTaskList+    , satdaTaskPriority+    , satdaScheduleToStartTimeout+    , satdaStartToCloseTimeout+    , satdaActivityType+    , satdaActivityId++    -- * ScheduleActivityTaskFailedEventAttributes+    , ScheduleActivityTaskFailedEventAttributes+    , scheduleActivityTaskFailedEventAttributes+    , satfeaActivityType+    , satfeaActivityId+    , satfeaCause+    , satfeaDecisionTaskCompletedEventId++    -- * ScheduleLambdaFunctionDecisionAttributes+    , ScheduleLambdaFunctionDecisionAttributes+    , scheduleLambdaFunctionDecisionAttributes+    , slfdaInput+    , slfdaStartToCloseTimeout+    , slfdaId+    , slfdaName++    -- * ScheduleLambdaFunctionFailedEventAttributes+    , ScheduleLambdaFunctionFailedEventAttributes+    , scheduleLambdaFunctionFailedEventAttributes+    , slffeaId+    , slffeaName+    , slffeaCause+    , slffeaDecisionTaskCompletedEventId++    -- * SignalExternalWorkflowExecutionDecisionAttributes+    , SignalExternalWorkflowExecutionDecisionAttributes+    , signalExternalWorkflowExecutionDecisionAttributes+    , sewedaControl+    , sewedaInput+    , sewedaRunId+    , sewedaWorkflowId+    , sewedaSignalName++    -- * SignalExternalWorkflowExecutionFailedEventAttributes+    , SignalExternalWorkflowExecutionFailedEventAttributes+    , signalExternalWorkflowExecutionFailedEventAttributes+    , sewefeaControl+    , sewefeaRunId+    , sewefeaWorkflowId+    , sewefeaCause+    , sewefeaInitiatedEventId+    , sewefeaDecisionTaskCompletedEventId++    -- * SignalExternalWorkflowExecutionInitiatedEventAttributes+    , SignalExternalWorkflowExecutionInitiatedEventAttributes+    , signalExternalWorkflowExecutionInitiatedEventAttributes+    , seweieaControl+    , seweieaInput+    , seweieaRunId+    , seweieaWorkflowId+    , seweieaSignalName+    , seweieaDecisionTaskCompletedEventId++    -- * StartChildWorkflowExecutionDecisionAttributes+    , StartChildWorkflowExecutionDecisionAttributes+    , startChildWorkflowExecutionDecisionAttributes+    , scwedaControl+    , scwedaTagList+    , scwedaTaskStartToCloseTimeout+    , scwedaLambdaRole+    , scwedaInput+    , scwedaExecutionStartToCloseTimeout+    , scwedaTaskList+    , scwedaTaskPriority+    , scwedaChildPolicy+    , scwedaWorkflowType+    , scwedaWorkflowId++    -- * StartChildWorkflowExecutionFailedEventAttributes+    , StartChildWorkflowExecutionFailedEventAttributes+    , startChildWorkflowExecutionFailedEventAttributes+    , scwefeaControl+    , scwefeaWorkflowType+    , scwefeaCause+    , scwefeaWorkflowId+    , scwefeaInitiatedEventId+    , scwefeaDecisionTaskCompletedEventId++    -- * StartChildWorkflowExecutionInitiatedEventAttributes+    , StartChildWorkflowExecutionInitiatedEventAttributes+    , startChildWorkflowExecutionInitiatedEventAttributes+    , scweieaControl+    , scweieaTagList+    , scweieaTaskStartToCloseTimeout+    , scweieaLambdaRole+    , scweieaInput+    , scweieaExecutionStartToCloseTimeout+    , scweieaTaskPriority+    , scweieaWorkflowId+    , scweieaWorkflowType+    , scweieaTaskList+    , scweieaDecisionTaskCompletedEventId+    , scweieaChildPolicy++    -- * StartLambdaFunctionFailedEventAttributes+    , StartLambdaFunctionFailedEventAttributes+    , startLambdaFunctionFailedEventAttributes+    , sScheduledEventId+    , sCause+    , sMessage++    -- * StartTimerDecisionAttributes+    , StartTimerDecisionAttributes+    , startTimerDecisionAttributes+    , stdaControl+    , stdaTimerId+    , stdaStartToFireTimeout++    -- * StartTimerFailedEventAttributes+    , StartTimerFailedEventAttributes+    , startTimerFailedEventAttributes+    , stfeaTimerId+    , stfeaCause+    , stfeaDecisionTaskCompletedEventId++    -- * TagFilter+    , TagFilter+    , tagFilter+    , tfTag++    -- * TaskList+    , TaskList+    , taskList+    , tlName++    -- * TimerCanceledEventAttributes+    , TimerCanceledEventAttributes+    , timerCanceledEventAttributes+    , tceaTimerId+    , tceaStartedEventId+    , tceaDecisionTaskCompletedEventId++    -- * TimerFiredEventAttributes+    , TimerFiredEventAttributes+    , timerFiredEventAttributes+    , tfeaTimerId+    , tfeaStartedEventId++    -- * TimerStartedEventAttributes+    , TimerStartedEventAttributes+    , timerStartedEventAttributes+    , tseaControl+    , tseaTimerId+    , tseaStartToFireTimeout+    , tseaDecisionTaskCompletedEventId++    -- * WorkflowExecution+    , WorkflowExecution+    , workflowExecution+    , weWorkflowId+    , weRunId++    -- * WorkflowExecutionCancelRequestedEventAttributes+    , WorkflowExecutionCancelRequestedEventAttributes+    , workflowExecutionCancelRequestedEventAttributes+    , wecreaExternalWorkflowExecution+    , wecreaExternalInitiatedEventId+    , wecreaCause++    -- * WorkflowExecutionCanceledEventAttributes+    , WorkflowExecutionCanceledEventAttributes+    , workflowExecutionCanceledEventAttributes+    , wDetails+    , wDecisionTaskCompletedEventId++    -- * WorkflowExecutionCompletedEventAttributes+    , WorkflowExecutionCompletedEventAttributes+    , workflowExecutionCompletedEventAttributes+    , weceaResult+    , weceaDecisionTaskCompletedEventId++    -- * WorkflowExecutionConfiguration+    , WorkflowExecutionConfiguration+    , workflowExecutionConfiguration+    , wecLambdaRole+    , wecTaskPriority+    , wecTaskStartToCloseTimeout+    , wecExecutionStartToCloseTimeout+    , wecTaskList+    , wecChildPolicy++    -- * WorkflowExecutionContinuedAsNewEventAttributes+    , WorkflowExecutionContinuedAsNewEventAttributes+    , workflowExecutionContinuedAsNewEventAttributes+    , wecaneaTagList+    , wecaneaTaskStartToCloseTimeout+    , wecaneaLambdaRole+    , wecaneaInput+    , wecaneaExecutionStartToCloseTimeout+    , wecaneaTaskPriority+    , wecaneaDecisionTaskCompletedEventId+    , wecaneaNewExecutionRunId+    , wecaneaTaskList+    , wecaneaChildPolicy+    , wecaneaWorkflowType++    -- * WorkflowExecutionCount+    , WorkflowExecutionCount+    , workflowExecutionCount+    , wecTruncated+    , wecCount++    -- * WorkflowExecutionFailedEventAttributes+    , WorkflowExecutionFailedEventAttributes+    , workflowExecutionFailedEventAttributes+    , wefeaReason+    , wefeaDetails+    , wefeaDecisionTaskCompletedEventId++    -- * WorkflowExecutionFilter+    , WorkflowExecutionFilter+    , workflowExecutionFilter+    , wefWorkflowId++    -- * WorkflowExecutionInfo+    , WorkflowExecutionInfo+    , workflowExecutionInfo+    , weiParent+    , weiTagList+    , weiCloseStatus+    , weiCloseTimestamp+    , weiCancelRequested+    , weiExecution+    , weiWorkflowType+    , weiStartTimestamp+    , weiExecutionStatus++    -- * WorkflowExecutionInfos+    , WorkflowExecutionInfos+    , workflowExecutionInfos+    , weiNextPageToken+    , weiExecutionInfos++    -- * WorkflowExecutionOpenCounts+    , WorkflowExecutionOpenCounts+    , workflowExecutionOpenCounts+    , weocOpenLambdaFunctions+    , weocOpenActivityTasks+    , weocOpenDecisionTasks+    , weocOpenTimers+    , weocOpenChildWorkflowExecutions++    -- * WorkflowExecutionSignaledEventAttributes+    , WorkflowExecutionSignaledEventAttributes+    , workflowExecutionSignaledEventAttributes+    , wExternalWorkflowExecution+    , wExternalInitiatedEventId+    , wInput+    , wSignalName++    -- * WorkflowExecutionStartedEventAttributes+    , WorkflowExecutionStartedEventAttributes+    , workflowExecutionStartedEventAttributes+    , weseaParentInitiatedEventId+    , weseaTagList+    , weseaTaskStartToCloseTimeout+    , weseaLambdaRole+    , weseaInput+    , weseaExecutionStartToCloseTimeout+    , weseaTaskPriority+    , weseaParentWorkflowExecution+    , weseaContinuedExecutionRunId+    , weseaChildPolicy+    , weseaTaskList+    , weseaWorkflowType++    -- * WorkflowExecutionTerminatedEventAttributes+    , WorkflowExecutionTerminatedEventAttributes+    , workflowExecutionTerminatedEventAttributes+    , weteaCause+    , weteaReason+    , weteaDetails+    , weteaChildPolicy++    -- * WorkflowExecutionTimedOutEventAttributes+    , WorkflowExecutionTimedOutEventAttributes+    , workflowExecutionTimedOutEventAttributes+    , wetoeaTimeoutType+    , wetoeaChildPolicy++    -- * WorkflowType+    , WorkflowType+    , workflowType+    , wtName+    , wtVersion++    -- * WorkflowTypeConfiguration+    , WorkflowTypeConfiguration+    , workflowTypeConfiguration+    , wtcDefaultLambdaRole+    , wtcDefaultChildPolicy+    , wtcDefaultTaskList+    , wtcDefaultTaskPriority+    , wtcDefaultExecutionStartToCloseTimeout+    , wtcDefaultTaskStartToCloseTimeout++    -- * WorkflowTypeFilter+    , WorkflowTypeFilter+    , workflowTypeFilter+    , wtfVersion+    , wtfName++    -- * WorkflowTypeInfo+    , WorkflowTypeInfo+    , workflowTypeInfo+    , wtiDeprecationDate+    , wtiDescription+    , wtiWorkflowType+    , wtiStatus+    , wtiCreationDate+    ) where++import           Network.AWS.Prelude+import           Network.AWS.Sign.V4+import           Network.AWS.SWF.Types.Product+import           Network.AWS.SWF.Types.Sum++-- | Version @2012-01-25@ of the Amazon Simple Workflow Service SDK.+data SWF++instance AWSService SWF where+    type Sg SWF = V4+    service = const svc+      where+        svc =+            Service+            { _svcAbbrev = "SWF"+            , _svcPrefix = "swf"+            , _svcVersion = "2012-01-25"+            , _svcEndpoint = defaultEndpoint svc+            , _svcTimeout = Just 70+            , _svcStatus = statusSuccess+            , _svcError = parseJSONError+            , _svcRetry = retry+            }+        retry =+            Exponential+            { _retryBase = 5.0e-2+            , _retryGrowth = 2+            , _retryAttempts = 5+            , _retryCheck = check+            }+        check e+          | has (hasCode "ThrottlingException" . hasStatus 400) e =+              Just "throttling_exception"+          | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+          | has (hasStatus 503) e = Just "service_unavailable"+          | has (hasStatus 500) e = Just "general_server_error"+          | has (hasStatus 509) e = Just "limit_exceeded"+          | otherwise = Nothing++-- | Returned by any operation if a system imposed limitation has been+-- reached. To address this fault you should either clean up unused+-- resources or increase the limit by contacting AWS.+_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError+_LimitExceededFault = _ServiceError . hasCode "LimitExceededFault"++-- | Returned by StartWorkflowExecution when an open execution with the same+-- workflowId is already running in the specified domain.+_WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError+_WorkflowExecutionAlreadyStartedFault =+    _ServiceError . hasCode "WorkflowExecutionAlreadyStartedFault"++-- | Returned if the specified domain already exists. You will get this fault+-- even if the existing domain is in deprecated status.+_DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError+_DomainAlreadyExistsFault = _ServiceError . hasCode "DomainAlreadyExistsFault"++-- | Returned when the named resource cannot be found with in the scope of+-- this operation (region or domain). This could happen if the named+-- resource was never created or is no longer available for this operation.+_UnknownResourceFault :: AsError a => Getting (First ServiceError) a ServiceError+_UnknownResourceFault = _ServiceError . hasCode "UnknownResourceFault"++-- | Returned when the caller does not have sufficient permissions to invoke+-- the action.+_OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError+_OperationNotPermittedFault =+    _ServiceError . hasCode "OperationNotPermittedFault"++-- | Prism for DefaultUndefinedFault' errors.+_DefaultUndefinedFault :: AsError a => Getting (First ServiceError) a ServiceError+_DefaultUndefinedFault = _ServiceError . hasCode "DefaultUndefinedFault"++-- | Returned when the specified activity or workflow type was already+-- deprecated.+_TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError+_TypeDeprecatedFault = _ServiceError . hasCode "TypeDeprecatedFault"++-- | Returned if the type already exists in the specified domain. You will+-- get this fault even if the existing type is in deprecated status. You+-- can specify another version if the intent is to create a new distinct+-- version of the type.+_TypeAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError+_TypeAlreadyExistsFault = _ServiceError . hasCode "TypeAlreadyExistsFault"++-- | Returned when the specified domain has been deprecated.+_DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError+_DomainDeprecatedFault = _ServiceError . hasCode "DomainDeprecatedFault"
+ gen/Network/AWS/SWF/Types/Product.hs view
@@ -0,0 +1,7342 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.SWF.Types.Product+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.SWF.Types.Product where++import           Network.AWS.Prelude+import           Network.AWS.SWF.Types.Sum++-- | Provides details of the 'ActivityTaskCancelRequested' event.+--+-- /See:/ 'activityTaskCancelRequestedEventAttributes' smart constructor.+data ActivityTaskCancelRequestedEventAttributes = ActivityTaskCancelRequestedEventAttributes'+    { _atcreaDecisionTaskCompletedEventId :: !Integer+    , _atcreaActivityId                   :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atcreaDecisionTaskCompletedEventId'+--+-- * 'atcreaActivityId'+activityTaskCancelRequestedEventAttributes+    :: Integer -- ^ 'atcreaDecisionTaskCompletedEventId'+    -> Text -- ^ 'atcreaActivityId'+    -> ActivityTaskCancelRequestedEventAttributes+activityTaskCancelRequestedEventAttributes pDecisionTaskCompletedEventId_ pActivityId_ =+    ActivityTaskCancelRequestedEventAttributes'+    { _atcreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _atcreaActivityId = pActivityId_+    }++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'RequestCancelActivityTask' decision+-- for this cancellation request. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+atcreaDecisionTaskCompletedEventId :: Lens' ActivityTaskCancelRequestedEventAttributes Integer+atcreaDecisionTaskCompletedEventId = lens _atcreaDecisionTaskCompletedEventId (\ s a -> s{_atcreaDecisionTaskCompletedEventId = a});++-- | The unique ID of the task.+atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text+atcreaActivityId = lens _atcreaActivityId (\ s a -> s{_atcreaActivityId = a});++instance FromJSON+         ActivityTaskCancelRequestedEventAttributes where+        parseJSON+          = withObject+              "ActivityTaskCancelRequestedEventAttributes"+              (\ x ->+                 ActivityTaskCancelRequestedEventAttributes' <$>+                   (x .: "decisionTaskCompletedEventId") <*>+                     (x .: "activityId"))++-- | Provides details of the 'ActivityTaskCanceled' event.+--+-- /See:/ 'activityTaskCanceledEventAttributes' smart constructor.+data ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes'+    { _aLatestCancelRequestedEventId :: !(Maybe Integer)+    , _aDetails                      :: !(Maybe Text)+    , _aScheduledEventId             :: !Integer+    , _aStartedEventId               :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aLatestCancelRequestedEventId'+--+-- * 'aDetails'+--+-- * 'aScheduledEventId'+--+-- * 'aStartedEventId'+activityTaskCanceledEventAttributes+    :: Integer -- ^ 'aScheduledEventId'+    -> Integer -- ^ 'aStartedEventId'+    -> ActivityTaskCanceledEventAttributes+activityTaskCanceledEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskCanceledEventAttributes'+    { _aLatestCancelRequestedEventId = Nothing+    , _aDetails = Nothing+    , _aScheduledEventId = pScheduledEventId_+    , _aStartedEventId = pStartedEventId_+    }++-- | If set, contains the ID of the last 'ActivityTaskCancelRequested' event+-- recorded for this activity task. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+aLatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)+aLatestCancelRequestedEventId = lens _aLatestCancelRequestedEventId (\ s a -> s{_aLatestCancelRequestedEventId = a});++-- | Details of the cancellation (if any).+aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)+aDetails = lens _aDetails (\ s a -> s{_aDetails = a});++-- | The ID of the 'ActivityTaskScheduled' event that was recorded when this+-- activity task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+aScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer+aScheduledEventId = lens _aScheduledEventId (\ s a -> s{_aScheduledEventId = a});++-- | The ID of the 'ActivityTaskStarted' event recorded when this activity+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+aStartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer+aStartedEventId = lens _aStartedEventId (\ s a -> s{_aStartedEventId = a});++instance FromJSON ActivityTaskCanceledEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskCanceledEventAttributes"+              (\ x ->+                 ActivityTaskCanceledEventAttributes' <$>+                   (x .:? "latestCancelRequestedEventId") <*>+                     (x .:? "details")+                     <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ActivityTaskCompleted' event.+--+-- /See:/ 'activityTaskCompletedEventAttributes' smart constructor.+data ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes'+    { _atceaResult           :: !(Maybe Text)+    , _atceaScheduledEventId :: !Integer+    , _atceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atceaResult'+--+-- * 'atceaScheduledEventId'+--+-- * 'atceaStartedEventId'+activityTaskCompletedEventAttributes+    :: Integer -- ^ 'atceaScheduledEventId'+    -> Integer -- ^ 'atceaStartedEventId'+    -> ActivityTaskCompletedEventAttributes+activityTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskCompletedEventAttributes'+    { _atceaResult = Nothing+    , _atceaScheduledEventId = pScheduledEventId_+    , _atceaStartedEventId = pStartedEventId_+    }++-- | The results of the activity task (if any).+atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)+atceaResult = lens _atceaResult (\ s a -> s{_atceaResult = a});++-- | The ID of the 'ActivityTaskScheduled' event that was recorded when this+-- activity task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+atceaScheduledEventId :: Lens' ActivityTaskCompletedEventAttributes Integer+atceaScheduledEventId = lens _atceaScheduledEventId (\ s a -> s{_atceaScheduledEventId = a});++-- | The ID of the 'ActivityTaskStarted' event recorded when this activity+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+atceaStartedEventId :: Lens' ActivityTaskCompletedEventAttributes Integer+atceaStartedEventId = lens _atceaStartedEventId (\ s a -> s{_atceaStartedEventId = a});++instance FromJSON+         ActivityTaskCompletedEventAttributes where+        parseJSON+          = withObject "ActivityTaskCompletedEventAttributes"+              (\ x ->+                 ActivityTaskCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "scheduledEventId") <*>+                     (x .: "startedEventId"))++-- | Provides details of the 'ActivityTaskFailed' event.+--+-- /See:/ 'activityTaskFailedEventAttributes' smart constructor.+data ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes'+    { _atfeaReason           :: !(Maybe Text)+    , _atfeaDetails          :: !(Maybe Text)+    , _atfeaScheduledEventId :: !Integer+    , _atfeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atfeaReason'+--+-- * 'atfeaDetails'+--+-- * 'atfeaScheduledEventId'+--+-- * 'atfeaStartedEventId'+activityTaskFailedEventAttributes+    :: Integer -- ^ 'atfeaScheduledEventId'+    -> Integer -- ^ 'atfeaStartedEventId'+    -> ActivityTaskFailedEventAttributes+activityTaskFailedEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskFailedEventAttributes'+    { _atfeaReason = Nothing+    , _atfeaDetails = Nothing+    , _atfeaScheduledEventId = pScheduledEventId_+    , _atfeaStartedEventId = pStartedEventId_+    }++-- | The reason provided for the failure (if any).+atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)+atfeaReason = lens _atfeaReason (\ s a -> s{_atfeaReason = a});++-- | The details of the failure (if any).+atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)+atfeaDetails = lens _atfeaDetails (\ s a -> s{_atfeaDetails = a});++-- | The ID of the 'ActivityTaskScheduled' event that was recorded when this+-- activity task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+atfeaScheduledEventId :: Lens' ActivityTaskFailedEventAttributes Integer+atfeaScheduledEventId = lens _atfeaScheduledEventId (\ s a -> s{_atfeaScheduledEventId = a});++-- | The ID of the 'ActivityTaskStarted' event recorded when this activity+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+atfeaStartedEventId :: Lens' ActivityTaskFailedEventAttributes Integer+atfeaStartedEventId = lens _atfeaStartedEventId (\ s a -> s{_atfeaStartedEventId = a});++instance FromJSON ActivityTaskFailedEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskFailedEventAttributes"+              (\ x ->+                 ActivityTaskFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ActivityTaskScheduled' event.+--+-- /See:/ 'activityTaskScheduledEventAttributes' smart constructor.+data ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes'+    { _atseaControl                      :: !(Maybe Text)+    , _atseaScheduleToCloseTimeout       :: !(Maybe Text)+    , _atseaHeartbeatTimeout             :: !(Maybe Text)+    , _atseaInput                        :: !(Maybe Text)+    , _atseaTaskPriority                 :: !(Maybe Text)+    , _atseaScheduleToStartTimeout       :: !(Maybe Text)+    , _atseaStartToCloseTimeout          :: !(Maybe Text)+    , _atseaActivityType                 :: !ActivityType+    , _atseaActivityId                   :: !Text+    , _atseaTaskList                     :: !TaskList+    , _atseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atseaControl'+--+-- * 'atseaScheduleToCloseTimeout'+--+-- * 'atseaHeartbeatTimeout'+--+-- * 'atseaInput'+--+-- * 'atseaTaskPriority'+--+-- * 'atseaScheduleToStartTimeout'+--+-- * 'atseaStartToCloseTimeout'+--+-- * 'atseaActivityType'+--+-- * 'atseaActivityId'+--+-- * 'atseaTaskList'+--+-- * 'atseaDecisionTaskCompletedEventId'+activityTaskScheduledEventAttributes+    :: ActivityType -- ^ 'atseaActivityType'+    -> Text -- ^ 'atseaActivityId'+    -> TaskList -- ^ 'atseaTaskList'+    -> Integer -- ^ 'atseaDecisionTaskCompletedEventId'+    -> ActivityTaskScheduledEventAttributes+activityTaskScheduledEventAttributes pActivityType_ pActivityId_ pTaskList_ pDecisionTaskCompletedEventId_ =+    ActivityTaskScheduledEventAttributes'+    { _atseaControl = Nothing+    , _atseaScheduleToCloseTimeout = Nothing+    , _atseaHeartbeatTimeout = Nothing+    , _atseaInput = Nothing+    , _atseaTaskPriority = Nothing+    , _atseaScheduleToStartTimeout = Nothing+    , _atseaStartToCloseTimeout = Nothing+    , _atseaActivityType = pActivityType_+    , _atseaActivityId = pActivityId_+    , _atseaTaskList = pTaskList_+    , _atseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks. This data is not sent to the activity.+atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaControl = lens _atseaControl (\ s a -> s{_atseaControl = a});++-- | The maximum amount of time for this activity task.+atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaScheduleToCloseTimeout = lens _atseaScheduleToCloseTimeout (\ s a -> s{_atseaScheduleToCloseTimeout = a});++-- | The maximum time before which the worker processing this task must+-- report progress by calling RecordActivityTaskHeartbeat. If the timeout+-- is exceeded, the activity task is automatically timed out. If the worker+-- subsequently attempts to record a heartbeat or return a result, it will+-- be ignored.+atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaHeartbeatTimeout = lens _atseaHeartbeatTimeout (\ s a -> s{_atseaHeartbeatTimeout = a});++-- | The input provided to the activity task.+atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaInput = lens _atseaInput (\ s a -> s{_atseaInput = a});++-- | /Optional./ The priority to assign to the scheduled activity task. If+-- set, this will override any default priority value that was assigned+-- when the activity type was registered.+--+-- Valid values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaTaskPriority = lens _atseaTaskPriority (\ s a -> s{_atseaTaskPriority = a});++-- | The maximum amount of time the activity task can wait to be assigned to+-- a worker.+atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaScheduleToStartTimeout = lens _atseaScheduleToStartTimeout (\ s a -> s{_atseaScheduleToStartTimeout = a});++-- | The maximum amount of time a worker may take to process the activity+-- task.+atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaStartToCloseTimeout = lens _atseaStartToCloseTimeout (\ s a -> s{_atseaStartToCloseTimeout = a});++-- | The type of the activity task.+atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType+atseaActivityType = lens _atseaActivityType (\ s a -> s{_atseaActivityType = a});++-- | The unique ID of the activity task.+atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text+atseaActivityId = lens _atseaActivityId (\ s a -> s{_atseaActivityId = a});++-- | The task list in which the activity task has been scheduled.+atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList+atseaTaskList = lens _atseaTaskList (\ s a -> s{_atseaTaskList = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision that resulted in the scheduling of this activity task. This+-- information can be useful for diagnosing problems by tracing back the+-- chain of events leading up to this event.+atseaDecisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer+atseaDecisionTaskCompletedEventId = lens _atseaDecisionTaskCompletedEventId (\ s a -> s{_atseaDecisionTaskCompletedEventId = a});++instance FromJSON+         ActivityTaskScheduledEventAttributes where+        parseJSON+          = withObject "ActivityTaskScheduledEventAttributes"+              (\ x ->+                 ActivityTaskScheduledEventAttributes' <$>+                   (x .:? "control") <*>+                     (x .:? "scheduleToCloseTimeout")+                     <*> (x .:? "heartbeatTimeout")+                     <*> (x .:? "input")+                     <*> (x .:? "taskPriority")+                     <*> (x .:? "scheduleToStartTimeout")+                     <*> (x .:? "startToCloseTimeout")+                     <*> (x .: "activityType")+                     <*> (x .: "activityId")+                     <*> (x .: "taskList")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'ActivityTaskStarted' event.+--+-- /See:/ 'activityTaskStartedEventAttributes' smart constructor.+data ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes'+    { _atseaIdentity         :: !(Maybe Text)+    , _atseaScheduledEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atseaIdentity'+--+-- * 'atseaScheduledEventId'+activityTaskStartedEventAttributes+    :: Integer -- ^ 'atseaScheduledEventId'+    -> ActivityTaskStartedEventAttributes+activityTaskStartedEventAttributes pScheduledEventId_ =+    ActivityTaskStartedEventAttributes'+    { _atseaIdentity = Nothing+    , _atseaScheduledEventId = pScheduledEventId_+    }++-- | Identity of the worker that was assigned this task. This aids+-- diagnostics when problems arise. The form of this identity is user+-- defined.+atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)+atseaIdentity = lens _atseaIdentity (\ s a -> s{_atseaIdentity = a});++-- | The ID of the 'ActivityTaskScheduled' event that was recorded when this+-- activity task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+atseaScheduledEventId :: Lens' ActivityTaskStartedEventAttributes Integer+atseaScheduledEventId = lens _atseaScheduledEventId (\ s a -> s{_atseaScheduledEventId = a});++instance FromJSON ActivityTaskStartedEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskStartedEventAttributes"+              (\ x ->+                 ActivityTaskStartedEventAttributes' <$>+                   (x .:? "identity") <*> (x .: "scheduledEventId"))++-- | Provides details of the 'ActivityTaskTimedOut' event.+--+-- /See:/ 'activityTaskTimedOutEventAttributes' smart constructor.+data ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes'+    { _attoeaDetails          :: !(Maybe Text)+    , _attoeaTimeoutType      :: !ActivityTaskTimeoutType+    , _attoeaScheduledEventId :: !Integer+    , _attoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'attoeaDetails'+--+-- * 'attoeaTimeoutType'+--+-- * 'attoeaScheduledEventId'+--+-- * 'attoeaStartedEventId'+activityTaskTimedOutEventAttributes+    :: ActivityTaskTimeoutType -- ^ 'attoeaTimeoutType'+    -> Integer -- ^ 'attoeaScheduledEventId'+    -> Integer -- ^ 'attoeaStartedEventId'+    -> ActivityTaskTimedOutEventAttributes+activityTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =+    ActivityTaskTimedOutEventAttributes'+    { _attoeaDetails = Nothing+    , _attoeaTimeoutType = pTimeoutType_+    , _attoeaScheduledEventId = pScheduledEventId_+    , _attoeaStartedEventId = pStartedEventId_+    }++-- | Contains the content of the 'details' parameter for the last call made+-- by the activity to 'RecordActivityTaskHeartbeat'.+attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)+attoeaDetails = lens _attoeaDetails (\ s a -> s{_attoeaDetails = a});++-- | The type of the timeout that caused this event.+attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType+attoeaTimeoutType = lens _attoeaTimeoutType (\ s a -> s{_attoeaTimeoutType = a});++-- | The ID of the 'ActivityTaskScheduled' event that was recorded when this+-- activity task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+attoeaScheduledEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer+attoeaScheduledEventId = lens _attoeaScheduledEventId (\ s a -> s{_attoeaScheduledEventId = a});++-- | The ID of the 'ActivityTaskStarted' event recorded when this activity+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+attoeaStartedEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer+attoeaStartedEventId = lens _attoeaStartedEventId (\ s a -> s{_attoeaStartedEventId = a});++instance FromJSON ActivityTaskTimedOutEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskTimedOutEventAttributes"+              (\ x ->+                 ActivityTaskTimedOutEventAttributes' <$>+                   (x .:? "details") <*> (x .: "timeoutType") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Represents an activity type.+--+-- /See:/ 'activityType' smart constructor.+data ActivityType = ActivityType'+    { _atName    :: !Text+    , _atVersion :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atName'+--+-- * 'atVersion'+activityType+    :: Text -- ^ 'atName'+    -> Text -- ^ 'atVersion'+    -> ActivityType+activityType pName_ pVersion_ =+    ActivityType'+    { _atName = pName_+    , _atVersion = pVersion_+    }++-- | The name of this activity.+--+-- The combination of activity type name and version must be unique within+-- a domain.+atName :: Lens' ActivityType Text+atName = lens _atName (\ s a -> s{_atName = a});++-- | The version of this activity.+--+-- The combination of activity type name and version must be unique with in+-- a domain.+atVersion :: Lens' ActivityType Text+atVersion = lens _atVersion (\ s a -> s{_atVersion = a});++instance FromJSON ActivityType where+        parseJSON+          = withObject "ActivityType"+              (\ x ->+                 ActivityType' <$> (x .: "name") <*> (x .: "version"))++instance ToJSON ActivityType where+        toJSON ActivityType'{..}+          = object ["name" .= _atName, "version" .= _atVersion]++-- | Configuration settings registered with the activity type.+--+-- /See:/ 'activityTypeConfiguration' smart constructor.+data ActivityTypeConfiguration = ActivityTypeConfiguration'+    { _atcDefaultTaskScheduleToStartTimeout :: !(Maybe Text)+    , _atcDefaultTaskList                   :: !(Maybe TaskList)+    , _atcDefaultTaskPriority               :: !(Maybe Text)+    , _atcDefaultTaskHeartbeatTimeout       :: !(Maybe Text)+    , _atcDefaultTaskScheduleToCloseTimeout :: !(Maybe Text)+    , _atcDefaultTaskStartToCloseTimeout    :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTypeConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atcDefaultTaskScheduleToStartTimeout'+--+-- * 'atcDefaultTaskList'+--+-- * 'atcDefaultTaskPriority'+--+-- * 'atcDefaultTaskHeartbeatTimeout'+--+-- * 'atcDefaultTaskScheduleToCloseTimeout'+--+-- * 'atcDefaultTaskStartToCloseTimeout'+activityTypeConfiguration+    :: ActivityTypeConfiguration+activityTypeConfiguration =+    ActivityTypeConfiguration'+    { _atcDefaultTaskScheduleToStartTimeout = Nothing+    , _atcDefaultTaskList = Nothing+    , _atcDefaultTaskPriority = Nothing+    , _atcDefaultTaskHeartbeatTimeout = Nothing+    , _atcDefaultTaskScheduleToCloseTimeout = Nothing+    , _atcDefaultTaskStartToCloseTimeout = Nothing+    }++-- | /Optional./ The default maximum duration, specified when registering the+-- activity type, that a task of an activity type can wait before being+-- assigned to a worker. You can override this default when scheduling a+-- task through the 'ScheduleActivityTask' decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskScheduleToStartTimeout = lens _atcDefaultTaskScheduleToStartTimeout (\ s a -> s{_atcDefaultTaskScheduleToStartTimeout = a});++-- | /Optional./ The default task list specified for this activity type at+-- registration. This default is used if a task list is not provided when a+-- task is scheduled through the 'ScheduleActivityTask' decision. You can+-- override the default registered task list when scheduling a task through+-- the 'ScheduleActivityTask' decision.+atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)+atcDefaultTaskList = lens _atcDefaultTaskList (\ s a -> s{_atcDefaultTaskList = a});++-- | /Optional./ The default task priority for tasks of this activity type,+-- specified at registration. If not set, then \"0\" will be used as the+-- default priority. This default can be overridden when scheduling an+-- activity task.+--+-- Valid values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskPriority = lens _atcDefaultTaskPriority (\ s a -> s{_atcDefaultTaskPriority = a});++-- | /Optional./ The default maximum time, in seconds, before which a worker+-- processing a task must report progress by calling+-- RecordActivityTaskHeartbeat.+--+-- You can specify this value only when /registering/ an activity type. The+-- registered default value can be overridden when you schedule a task+-- through the 'ScheduleActivityTask' decision. If the activity worker+-- subsequently attempts to record a heartbeat or returns a result, the+-- activity worker receives an 'UnknownResource' fault. In this case,+-- Amazon SWF no longer considers the activity task to be valid; the+-- activity worker should clean up the activity task.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskHeartbeatTimeout = lens _atcDefaultTaskHeartbeatTimeout (\ s a -> s{_atcDefaultTaskHeartbeatTimeout = a});++-- | /Optional./ The default maximum duration, specified when registering the+-- activity type, for tasks of this activity type. You can override this+-- default when scheduling a task through the 'ScheduleActivityTask'+-- decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskScheduleToCloseTimeout = lens _atcDefaultTaskScheduleToCloseTimeout (\ s a -> s{_atcDefaultTaskScheduleToCloseTimeout = a});++-- | /Optional./ The default maximum duration for tasks of an activity type+-- specified when registering the activity type. You can override this+-- default when scheduling a task through the 'ScheduleActivityTask'+-- decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskStartToCloseTimeout = lens _atcDefaultTaskStartToCloseTimeout (\ s a -> s{_atcDefaultTaskStartToCloseTimeout = a});++instance FromJSON ActivityTypeConfiguration where+        parseJSON+          = withObject "ActivityTypeConfiguration"+              (\ x ->+                 ActivityTypeConfiguration' <$>+                   (x .:? "defaultTaskScheduleToStartTimeout") <*>+                     (x .:? "defaultTaskList")+                     <*> (x .:? "defaultTaskPriority")+                     <*> (x .:? "defaultTaskHeartbeatTimeout")+                     <*> (x .:? "defaultTaskScheduleToCloseTimeout")+                     <*> (x .:? "defaultTaskStartToCloseTimeout"))++-- | Detailed information about an activity type.+--+-- /See:/ 'activityTypeInfo' smart constructor.+data ActivityTypeInfo = ActivityTypeInfo'+    { _atiDeprecationDate :: !(Maybe POSIX)+    , _atiDescription     :: !(Maybe Text)+    , _atiActivityType    :: !ActivityType+    , _atiStatus          :: !RegistrationStatus+    , _atiCreationDate    :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTypeInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atiDeprecationDate'+--+-- * 'atiDescription'+--+-- * 'atiActivityType'+--+-- * 'atiStatus'+--+-- * 'atiCreationDate'+activityTypeInfo+    :: ActivityType -- ^ 'atiActivityType'+    -> RegistrationStatus -- ^ 'atiStatus'+    -> UTCTime -- ^ 'atiCreationDate'+    -> ActivityTypeInfo+activityTypeInfo pActivityType_ pStatus_ pCreationDate_ =+    ActivityTypeInfo'+    { _atiDeprecationDate = Nothing+    , _atiDescription = Nothing+    , _atiActivityType = pActivityType_+    , _atiStatus = pStatus_+    , _atiCreationDate = _Time # pCreationDate_+    }++-- | If DEPRECATED, the date and time DeprecateActivityType was called.+atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)+atiDeprecationDate = lens _atiDeprecationDate (\ s a -> s{_atiDeprecationDate = a}) . mapping _Time;++-- | The description of the activity type provided in RegisterActivityType.+atiDescription :: Lens' ActivityTypeInfo (Maybe Text)+atiDescription = lens _atiDescription (\ s a -> s{_atiDescription = a});++-- | The ActivityType type structure representing the activity type.+atiActivityType :: Lens' ActivityTypeInfo ActivityType+atiActivityType = lens _atiActivityType (\ s a -> s{_atiActivityType = a});++-- | The current status of the activity type.+atiStatus :: Lens' ActivityTypeInfo RegistrationStatus+atiStatus = lens _atiStatus (\ s a -> s{_atiStatus = a});++-- | The date and time this activity type was created through+-- RegisterActivityType.+atiCreationDate :: Lens' ActivityTypeInfo UTCTime+atiCreationDate = lens _atiCreationDate (\ s a -> s{_atiCreationDate = a}) . _Time;++instance FromJSON ActivityTypeInfo where+        parseJSON+          = withObject "ActivityTypeInfo"+              (\ x ->+                 ActivityTypeInfo' <$>+                   (x .:? "deprecationDate") <*> (x .:? "description")+                     <*> (x .: "activityType")+                     <*> (x .: "status")+                     <*> (x .: "creationDate"))++-- | Provides details of the 'CancelTimer' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'cancelTimerDecisionAttributes' smart constructor.+newtype CancelTimerDecisionAttributes = CancelTimerDecisionAttributes'+    { _ctdaTimerId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelTimerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ctdaTimerId'+cancelTimerDecisionAttributes+    :: Text -- ^ 'ctdaTimerId'+    -> CancelTimerDecisionAttributes+cancelTimerDecisionAttributes pTimerId_ =+    CancelTimerDecisionAttributes'+    { _ctdaTimerId = pTimerId_+    }++-- | __Required.__ The unique ID of the timer to cancel.+ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text+ctdaTimerId = lens _ctdaTimerId (\ s a -> s{_ctdaTimerId = a});++instance ToJSON CancelTimerDecisionAttributes where+        toJSON CancelTimerDecisionAttributes'{..}+          = object ["timerId" .= _ctdaTimerId]++-- | Provides details of the 'CancelTimerFailed' event.+--+-- /See:/ 'cancelTimerFailedEventAttributes' smart constructor.+data CancelTimerFailedEventAttributes = CancelTimerFailedEventAttributes'+    { _ctfeaTimerId                      :: !Text+    , _ctfeaCause                        :: !CancelTimerFailedCause+    , _ctfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelTimerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ctfeaTimerId'+--+-- * 'ctfeaCause'+--+-- * 'ctfeaDecisionTaskCompletedEventId'+cancelTimerFailedEventAttributes+    :: Text -- ^ 'ctfeaTimerId'+    -> CancelTimerFailedCause -- ^ 'ctfeaCause'+    -> Integer -- ^ 'ctfeaDecisionTaskCompletedEventId'+    -> CancelTimerFailedEventAttributes+cancelTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =+    CancelTimerFailedEventAttributes'+    { _ctfeaTimerId = pTimerId_+    , _ctfeaCause = pCause_+    , _ctfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The timerId provided in the 'CancelTimer' decision that failed.+ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text+ctfeaTimerId = lens _ctfeaTimerId (\ s a -> s{_ctfeaTimerId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause+ctfeaCause = lens _ctfeaCause (\ s a -> s{_ctfeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CancelTimer' decision to cancel this+-- timer. This information can be useful for diagnosing problems by tracing+-- back the chain of events leading up to this event.+ctfeaDecisionTaskCompletedEventId :: Lens' CancelTimerFailedEventAttributes Integer+ctfeaDecisionTaskCompletedEventId = lens _ctfeaDecisionTaskCompletedEventId (\ s a -> s{_ctfeaDecisionTaskCompletedEventId = a});++instance FromJSON CancelTimerFailedEventAttributes+         where+        parseJSON+          = withObject "CancelTimerFailedEventAttributes"+              (\ x ->+                 CancelTimerFailedEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'CancelWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'cancelWorkflowExecutionDecisionAttributes' smart constructor.+newtype CancelWorkflowExecutionDecisionAttributes = CancelWorkflowExecutionDecisionAttributes'+    { _cwedaDetails :: Maybe Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwedaDetails'+cancelWorkflowExecutionDecisionAttributes+    :: CancelWorkflowExecutionDecisionAttributes+cancelWorkflowExecutionDecisionAttributes =+    CancelWorkflowExecutionDecisionAttributes'+    { _cwedaDetails = Nothing+    }++-- | /Optional./ details of the cancellation.+cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)+cwedaDetails = lens _cwedaDetails (\ s a -> s{_cwedaDetails = a});++instance ToJSON+         CancelWorkflowExecutionDecisionAttributes where+        toJSON CancelWorkflowExecutionDecisionAttributes'{..}+          = object ["details" .= _cwedaDetails]++-- | Provides details of the 'CancelWorkflowExecutionFailed' event.+--+-- /See:/ 'cancelWorkflowExecutionFailedEventAttributes' smart constructor.+data CancelWorkflowExecutionFailedEventAttributes = CancelWorkflowExecutionFailedEventAttributes'+    { _cCause                        :: !CancelWorkflowExecutionFailedCause+    , _cDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cCause'+--+-- * 'cDecisionTaskCompletedEventId'+cancelWorkflowExecutionFailedEventAttributes+    :: CancelWorkflowExecutionFailedCause -- ^ 'cCause'+    -> Integer -- ^ 'cDecisionTaskCompletedEventId'+    -> CancelWorkflowExecutionFailedEventAttributes+cancelWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    CancelWorkflowExecutionFailedEventAttributes'+    { _cCause = pCause_+    , _cDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause+cCause = lens _cCause (\ s a -> s{_cCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CancelWorkflowExecution' decision+-- for this cancellation request. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cDecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer+cDecisionTaskCompletedEventId = lens _cDecisionTaskCompletedEventId (\ s a -> s{_cDecisionTaskCompletedEventId = a});++instance FromJSON+         CancelWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "CancelWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 CancelWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provide details of the 'ChildWorkflowExecutionCanceled' event.+--+-- /See:/ 'childWorkflowExecutionCanceledEventAttributes' smart constructor.+data ChildWorkflowExecutionCanceledEventAttributes = ChildWorkflowExecutionCanceledEventAttributes'+    { _cDetails           :: !(Maybe Text)+    , _cWorkflowExecution :: !WorkflowExecution+    , _cWorkflowType      :: !WorkflowType+    , _cInitiatedEventId  :: !Integer+    , _cStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cDetails'+--+-- * 'cWorkflowExecution'+--+-- * 'cWorkflowType'+--+-- * 'cInitiatedEventId'+--+-- * 'cStartedEventId'+childWorkflowExecutionCanceledEventAttributes+    :: WorkflowExecution -- ^ 'cWorkflowExecution'+    -> WorkflowType -- ^ 'cWorkflowType'+    -> Integer -- ^ 'cInitiatedEventId'+    -> Integer -- ^ 'cStartedEventId'+    -> ChildWorkflowExecutionCanceledEventAttributes+childWorkflowExecutionCanceledEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionCanceledEventAttributes'+    { _cDetails = Nothing+    , _cWorkflowExecution = pWorkflowExecution_+    , _cWorkflowType = pWorkflowType_+    , _cInitiatedEventId = pInitiatedEventId_+    , _cStartedEventId = pStartedEventId_+    }++-- | Details of the cancellation (if provided).+cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)+cDetails = lens _cDetails (\ s a -> s{_cDetails = a});++-- | The child workflow execution that was canceled.+cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution+cWorkflowExecution = lens _cWorkflowExecution (\ s a -> s{_cWorkflowExecution = a});++-- | The type of the child workflow execution.+cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType+cWorkflowType = lens _cWorkflowType (\ s a -> s{_cWorkflowType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cInitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer+cInitiatedEventId = lens _cInitiatedEventId (\ s a -> s{_cInitiatedEventId = a});++-- | The ID of the 'ChildWorkflowExecutionStarted' event recorded when this+-- child workflow execution was started. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cStartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer+cStartedEventId = lens _cStartedEventId (\ s a -> s{_cStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionCanceledEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionCanceledEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionCanceledEventAttributes' <$>+                   (x .:? "details") <*> (x .: "workflowExecution") <*>+                     (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ChildWorkflowExecutionCompleted' event.+--+-- /See:/ 'childWorkflowExecutionCompletedEventAttributes' smart constructor.+data ChildWorkflowExecutionCompletedEventAttributes = ChildWorkflowExecutionCompletedEventAttributes'+    { _cweceaResult            :: !(Maybe Text)+    , _cweceaWorkflowExecution :: !WorkflowExecution+    , _cweceaWorkflowType      :: !WorkflowType+    , _cweceaInitiatedEventId  :: !Integer+    , _cweceaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweceaResult'+--+-- * 'cweceaWorkflowExecution'+--+-- * 'cweceaWorkflowType'+--+-- * 'cweceaInitiatedEventId'+--+-- * 'cweceaStartedEventId'+childWorkflowExecutionCompletedEventAttributes+    :: WorkflowExecution -- ^ 'cweceaWorkflowExecution'+    -> WorkflowType -- ^ 'cweceaWorkflowType'+    -> Integer -- ^ 'cweceaInitiatedEventId'+    -> Integer -- ^ 'cweceaStartedEventId'+    -> ChildWorkflowExecutionCompletedEventAttributes+childWorkflowExecutionCompletedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionCompletedEventAttributes'+    { _cweceaResult = Nothing+    , _cweceaWorkflowExecution = pWorkflowExecution_+    , _cweceaWorkflowType = pWorkflowType_+    , _cweceaInitiatedEventId = pInitiatedEventId_+    , _cweceaStartedEventId = pStartedEventId_+    }++-- | The result of the child workflow execution (if any).+cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)+cweceaResult = lens _cweceaResult (\ s a -> s{_cweceaResult = a});++-- | The child workflow execution that was completed.+cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution+cweceaWorkflowExecution = lens _cweceaWorkflowExecution (\ s a -> s{_cweceaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType+cweceaWorkflowType = lens _cweceaWorkflowType (\ s a -> s{_cweceaWorkflowType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cweceaInitiatedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer+cweceaInitiatedEventId = lens _cweceaInitiatedEventId (\ s a -> s{_cweceaInitiatedEventId = a});++-- | The ID of the 'ChildWorkflowExecutionStarted' event recorded when this+-- child workflow execution was started. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cweceaStartedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer+cweceaStartedEventId = lens _cweceaStartedEventId (\ s a -> s{_cweceaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionCompletedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionCompletedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "workflowExecution") <*>+                     (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ChildWorkflowExecutionFailed' event.+--+-- /See:/ 'childWorkflowExecutionFailedEventAttributes' smart constructor.+data ChildWorkflowExecutionFailedEventAttributes = ChildWorkflowExecutionFailedEventAttributes'+    { _cwefeaReason            :: !(Maybe Text)+    , _cwefeaDetails           :: !(Maybe Text)+    , _cwefeaWorkflowExecution :: !WorkflowExecution+    , _cwefeaWorkflowType      :: !WorkflowType+    , _cwefeaInitiatedEventId  :: !Integer+    , _cwefeaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwefeaReason'+--+-- * 'cwefeaDetails'+--+-- * 'cwefeaWorkflowExecution'+--+-- * 'cwefeaWorkflowType'+--+-- * 'cwefeaInitiatedEventId'+--+-- * 'cwefeaStartedEventId'+childWorkflowExecutionFailedEventAttributes+    :: WorkflowExecution -- ^ 'cwefeaWorkflowExecution'+    -> WorkflowType -- ^ 'cwefeaWorkflowType'+    -> Integer -- ^ 'cwefeaInitiatedEventId'+    -> Integer -- ^ 'cwefeaStartedEventId'+    -> ChildWorkflowExecutionFailedEventAttributes+childWorkflowExecutionFailedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionFailedEventAttributes'+    { _cwefeaReason = Nothing+    , _cwefeaDetails = Nothing+    , _cwefeaWorkflowExecution = pWorkflowExecution_+    , _cwefeaWorkflowType = pWorkflowType_+    , _cwefeaInitiatedEventId = pInitiatedEventId_+    , _cwefeaStartedEventId = pStartedEventId_+    }++-- | The reason for the failure (if provided).+cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)+cwefeaReason = lens _cwefeaReason (\ s a -> s{_cwefeaReason = a});++-- | The details of the failure (if provided).+cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)+cwefeaDetails = lens _cwefeaDetails (\ s a -> s{_cwefeaDetails = a});++-- | The child workflow execution that failed.+cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution+cwefeaWorkflowExecution = lens _cwefeaWorkflowExecution (\ s a -> s{_cwefeaWorkflowExecution = a});++-- | The type of the child workflow execution.+cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType+cwefeaWorkflowType = lens _cwefeaWorkflowType (\ s a -> s{_cwefeaWorkflowType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cwefeaInitiatedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer+cwefeaInitiatedEventId = lens _cwefeaInitiatedEventId (\ s a -> s{_cwefeaInitiatedEventId = a});++-- | The ID of the 'ChildWorkflowExecutionStarted' event recorded when this+-- child workflow execution was started. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cwefeaStartedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer+cwefeaStartedEventId = lens _cwefeaStartedEventId (\ s a -> s{_cwefeaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "workflowExecution")+                     <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ChildWorkflowExecutionStarted' event.+--+-- /See:/ 'childWorkflowExecutionStartedEventAttributes' smart constructor.+data ChildWorkflowExecutionStartedEventAttributes = ChildWorkflowExecutionStartedEventAttributes'+    { _cweseaWorkflowExecution :: !WorkflowExecution+    , _cweseaWorkflowType      :: !WorkflowType+    , _cweseaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweseaWorkflowExecution'+--+-- * 'cweseaWorkflowType'+--+-- * 'cweseaInitiatedEventId'+childWorkflowExecutionStartedEventAttributes+    :: WorkflowExecution -- ^ 'cweseaWorkflowExecution'+    -> WorkflowType -- ^ 'cweseaWorkflowType'+    -> Integer -- ^ 'cweseaInitiatedEventId'+    -> ChildWorkflowExecutionStartedEventAttributes+childWorkflowExecutionStartedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ =+    ChildWorkflowExecutionStartedEventAttributes'+    { _cweseaWorkflowExecution = pWorkflowExecution_+    , _cweseaWorkflowType = pWorkflowType_+    , _cweseaInitiatedEventId = pInitiatedEventId_+    }++-- | The child workflow execution that was started.+cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution+cweseaWorkflowExecution = lens _cweseaWorkflowExecution (\ s a -> s{_cweseaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType+cweseaWorkflowType = lens _cweseaWorkflowType (\ s a -> s{_cweseaWorkflowType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cweseaInitiatedEventId :: Lens' ChildWorkflowExecutionStartedEventAttributes Integer+cweseaInitiatedEventId = lens _cweseaInitiatedEventId (\ s a -> s{_cweseaInitiatedEventId = a});++instance FromJSON+         ChildWorkflowExecutionStartedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionStartedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionStartedEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId"))++-- | Provides details of the 'ChildWorkflowExecutionTerminated' event.+--+-- /See:/ 'childWorkflowExecutionTerminatedEventAttributes' smart constructor.+data ChildWorkflowExecutionTerminatedEventAttributes = ChildWorkflowExecutionTerminatedEventAttributes'+    { _cweteaWorkflowExecution :: !WorkflowExecution+    , _cweteaWorkflowType      :: !WorkflowType+    , _cweteaInitiatedEventId  :: !Integer+    , _cweteaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweteaWorkflowExecution'+--+-- * 'cweteaWorkflowType'+--+-- * 'cweteaInitiatedEventId'+--+-- * 'cweteaStartedEventId'+childWorkflowExecutionTerminatedEventAttributes+    :: WorkflowExecution -- ^ 'cweteaWorkflowExecution'+    -> WorkflowType -- ^ 'cweteaWorkflowType'+    -> Integer -- ^ 'cweteaInitiatedEventId'+    -> Integer -- ^ 'cweteaStartedEventId'+    -> ChildWorkflowExecutionTerminatedEventAttributes+childWorkflowExecutionTerminatedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionTerminatedEventAttributes'+    { _cweteaWorkflowExecution = pWorkflowExecution_+    , _cweteaWorkflowType = pWorkflowType_+    , _cweteaInitiatedEventId = pInitiatedEventId_+    , _cweteaStartedEventId = pStartedEventId_+    }++-- | The child workflow execution that was terminated.+cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution+cweteaWorkflowExecution = lens _cweteaWorkflowExecution (\ s a -> s{_cweteaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType+cweteaWorkflowType = lens _cweteaWorkflowType (\ s a -> s{_cweteaWorkflowType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cweteaInitiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer+cweteaInitiatedEventId = lens _cweteaInitiatedEventId (\ s a -> s{_cweteaInitiatedEventId = a});++-- | The ID of the 'ChildWorkflowExecutionStarted' event recorded when this+-- child workflow execution was started. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cweteaStartedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer+cweteaStartedEventId = lens _cweteaStartedEventId (\ s a -> s{_cweteaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionTerminatedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionTerminatedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionTerminatedEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'ChildWorkflowExecutionTimedOut' event.+--+-- /See:/ 'childWorkflowExecutionTimedOutEventAttributes' smart constructor.+data ChildWorkflowExecutionTimedOutEventAttributes = ChildWorkflowExecutionTimedOutEventAttributes'+    { _cwetoeaWorkflowExecution :: !WorkflowExecution+    , _cwetoeaWorkflowType      :: !WorkflowType+    , _cwetoeaTimeoutType       :: !WorkflowExecutionTimeoutType+    , _cwetoeaInitiatedEventId  :: !Integer+    , _cwetoeaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwetoeaWorkflowExecution'+--+-- * 'cwetoeaWorkflowType'+--+-- * 'cwetoeaTimeoutType'+--+-- * 'cwetoeaInitiatedEventId'+--+-- * 'cwetoeaStartedEventId'+childWorkflowExecutionTimedOutEventAttributes+    :: WorkflowExecution -- ^ 'cwetoeaWorkflowExecution'+    -> WorkflowType -- ^ 'cwetoeaWorkflowType'+    -> WorkflowExecutionTimeoutType -- ^ 'cwetoeaTimeoutType'+    -> Integer -- ^ 'cwetoeaInitiatedEventId'+    -> Integer -- ^ 'cwetoeaStartedEventId'+    -> ChildWorkflowExecutionTimedOutEventAttributes+childWorkflowExecutionTimedOutEventAttributes pWorkflowExecution_ pWorkflowType_ pTimeoutType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionTimedOutEventAttributes'+    { _cwetoeaWorkflowExecution = pWorkflowExecution_+    , _cwetoeaWorkflowType = pWorkflowType_+    , _cwetoeaTimeoutType = pTimeoutType_+    , _cwetoeaInitiatedEventId = pInitiatedEventId_+    , _cwetoeaStartedEventId = pStartedEventId_+    }++-- | The child workflow execution that timed out.+cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution+cwetoeaWorkflowExecution = lens _cwetoeaWorkflowExecution (\ s a -> s{_cwetoeaWorkflowExecution = a});++-- | The type of the child workflow execution.+cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType+cwetoeaWorkflowType = lens _cwetoeaWorkflowType (\ s a -> s{_cwetoeaWorkflowType = a});++-- | The type of the timeout that caused the child workflow execution to time+-- out.+cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType+cwetoeaTimeoutType = lens _cwetoeaTimeoutType (\ s a -> s{_cwetoeaTimeoutType = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+cwetoeaInitiatedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer+cwetoeaInitiatedEventId = lens _cwetoeaInitiatedEventId (\ s a -> s{_cwetoeaInitiatedEventId = a});++-- | The ID of the 'ChildWorkflowExecutionStarted' event recorded when this+-- child workflow execution was started. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cwetoeaStartedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer+cwetoeaStartedEventId = lens _cwetoeaStartedEventId (\ s a -> s{_cwetoeaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionTimedOutEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionTimedOutEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionTimedOutEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "timeoutType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++-- | Used to filter the closed workflow executions in visibility APIs by+-- their close status.+--+-- /See:/ 'closeStatusFilter' smart constructor.+newtype CloseStatusFilter = CloseStatusFilter'+    { _csfStatus :: CloseStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CloseStatusFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'csfStatus'+closeStatusFilter+    :: CloseStatus -- ^ 'csfStatus'+    -> CloseStatusFilter+closeStatusFilter pStatus_ =+    CloseStatusFilter'+    { _csfStatus = pStatus_+    }++-- | __Required.__ The close status that must match the close status of an+-- execution for it to meet the criteria of this filter.+csfStatus :: Lens' CloseStatusFilter CloseStatus+csfStatus = lens _csfStatus (\ s a -> s{_csfStatus = a});++instance ToJSON CloseStatusFilter where+        toJSON CloseStatusFilter'{..}+          = object ["status" .= _csfStatus]++-- | Provides details of the 'CompleteWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'completeWorkflowExecutionDecisionAttributes' smart constructor.+newtype CompleteWorkflowExecutionDecisionAttributes = CompleteWorkflowExecutionDecisionAttributes'+    { _cwedaResult :: Maybe Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CompleteWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwedaResult'+completeWorkflowExecutionDecisionAttributes+    :: CompleteWorkflowExecutionDecisionAttributes+completeWorkflowExecutionDecisionAttributes =+    CompleteWorkflowExecutionDecisionAttributes'+    { _cwedaResult = Nothing+    }++-- | The result of the workflow execution. The form of the result is+-- implementation defined.+cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)+cwedaResult = lens _cwedaResult (\ s a -> s{_cwedaResult = a});++instance ToJSON+         CompleteWorkflowExecutionDecisionAttributes where+        toJSON+          CompleteWorkflowExecutionDecisionAttributes'{..}+          = object ["result" .= _cwedaResult]++-- | Provides details of the 'CompleteWorkflowExecutionFailed' event.+--+-- /See:/ 'completeWorkflowExecutionFailedEventAttributes' smart constructor.+data CompleteWorkflowExecutionFailedEventAttributes = CompleteWorkflowExecutionFailedEventAttributes'+    { _cwefeaCause                        :: !CompleteWorkflowExecutionFailedCause+    , _cwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CompleteWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwefeaCause'+--+-- * 'cwefeaDecisionTaskCompletedEventId'+completeWorkflowExecutionFailedEventAttributes+    :: CompleteWorkflowExecutionFailedCause -- ^ 'cwefeaCause'+    -> Integer -- ^ 'cwefeaDecisionTaskCompletedEventId'+    -> CompleteWorkflowExecutionFailedEventAttributes+completeWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    CompleteWorkflowExecutionFailedEventAttributes'+    { _cwefeaCause = pCause_+    , _cwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause+cwefeaCause = lens _cwefeaCause (\ s a -> s{_cwefeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CompleteWorkflowExecution' decision+-- to complete this execution. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+cwefeaDecisionTaskCompletedEventId :: Lens' CompleteWorkflowExecutionFailedEventAttributes Integer+cwefeaDecisionTaskCompletedEventId = lens _cwefeaDecisionTaskCompletedEventId (\ s a -> s{_cwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         CompleteWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "CompleteWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 CompleteWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'ContinueAsNewWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tag': /Optional./. A tag used to identify the workflow+--         execution+--     -   'taskList': String constraint. The key is 'swf:taskList.name'.+--     -   'workflowType.version': String constraint. The key is+--         'swf:workflowType.version'.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'continueAsNewWorkflowExecutionDecisionAttributes' smart constructor.+data ContinueAsNewWorkflowExecutionDecisionAttributes = ContinueAsNewWorkflowExecutionDecisionAttributes'+    { _canwedaTagList                      :: !(Maybe [Text])+    , _canwedaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _canwedaLambdaRole                   :: !(Maybe Text)+    , _canwedaInput                        :: !(Maybe Text)+    , _canwedaWorkflowTypeVersion          :: !(Maybe Text)+    , _canwedaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _canwedaTaskList                     :: !(Maybe TaskList)+    , _canwedaTaskPriority                 :: !(Maybe Text)+    , _canwedaChildPolicy                  :: !(Maybe ChildPolicy)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ContinueAsNewWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'canwedaTagList'+--+-- * 'canwedaTaskStartToCloseTimeout'+--+-- * 'canwedaLambdaRole'+--+-- * 'canwedaInput'+--+-- * 'canwedaWorkflowTypeVersion'+--+-- * 'canwedaExecutionStartToCloseTimeout'+--+-- * 'canwedaTaskList'+--+-- * 'canwedaTaskPriority'+--+-- * 'canwedaChildPolicy'+continueAsNewWorkflowExecutionDecisionAttributes+    :: ContinueAsNewWorkflowExecutionDecisionAttributes+continueAsNewWorkflowExecutionDecisionAttributes =+    ContinueAsNewWorkflowExecutionDecisionAttributes'+    { _canwedaTagList = Nothing+    , _canwedaTaskStartToCloseTimeout = Nothing+    , _canwedaLambdaRole = Nothing+    , _canwedaInput = Nothing+    , _canwedaWorkflowTypeVersion = Nothing+    , _canwedaExecutionStartToCloseTimeout = Nothing+    , _canwedaTaskList = Nothing+    , _canwedaTaskPriority = Nothing+    , _canwedaChildPolicy = Nothing+    }++-- | The list of tags to associate with the new workflow execution. A maximum+-- of 5 tags can be specified. You can list workflow executions with a+-- specific tag by calling ListOpenWorkflowExecutions or+-- ListClosedWorkflowExecutions and specifying a TagFilter.+canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]+canwedaTagList = lens _canwedaTagList (\ s a -> s{_canwedaTagList = a}) . _Default . _Coerce;++-- | Specifies the maximum duration of decision tasks for the new workflow+-- execution. This parameter overrides the 'defaultTaskStartToCloseTimout'+-- specified when registering the workflow type using RegisterWorkflowType.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- A task start-to-close timeout for the new workflow execution must be+-- specified either as a default for the workflow type or through this+-- parameter. If neither this parameter is set nor a default task+-- start-to-close timeout was specified at registration time then a fault+-- will be returned.+canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaTaskStartToCloseTimeout = lens _canwedaTaskStartToCloseTimeout (\ s a -> s{_canwedaTaskStartToCloseTimeout = a});++-- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda+-- functions.+--+-- In order for this workflow execution to invoke AWS Lambda functions, an+-- appropriate IAM role must be specified either as a default for the+-- workflow type or through this field.+canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaLambdaRole = lens _canwedaLambdaRole (\ s a -> s{_canwedaLambdaRole = a});++-- | The input provided to the new workflow execution.+canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaInput = lens _canwedaInput (\ s a -> s{_canwedaInput = a});++-- | Undocumented member.+canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaWorkflowTypeVersion = lens _canwedaWorkflowTypeVersion (\ s a -> s{_canwedaWorkflowTypeVersion = a});++-- | If set, specifies the total duration for this workflow execution. This+-- overrides the 'defaultExecutionStartToCloseTimeout' specified when+-- registering the workflow type.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- An execution start-to-close timeout for this workflow execution must be+-- specified either as a default for the workflow type or through this+-- field. If neither this field is set nor a default execution+-- start-to-close timeout was specified at registration time then a fault+-- will be returned.+canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaExecutionStartToCloseTimeout = lens _canwedaExecutionStartToCloseTimeout (\ s a -> s{_canwedaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)+canwedaTaskList = lens _canwedaTaskList (\ s a -> s{_canwedaTaskList = a});++-- | /Optional./ The task priority that, if set, specifies the priority for+-- the decision tasks for this workflow execution. This overrides the+-- defaultTaskPriority specified when registering the workflow type. Valid+-- values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaTaskPriority = lens _canwedaTaskPriority (\ s a -> s{_canwedaTaskPriority = a});++-- | If set, specifies the policy to use for the child workflow executions of+-- the new execution if it is terminated by calling the+-- TerminateWorkflowExecution action explicitly or due to an expired+-- timeout. This policy overrides the default child policy specified when+-- registering the workflow type using RegisterWorkflowType.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+--+-- A child policy for this workflow execution must be specified either as a+-- default for the workflow type or through this parameter. If neither this+-- parameter is set nor a default child policy was specified at+-- registration time then a fault will be returned.+canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)+canwedaChildPolicy = lens _canwedaChildPolicy (\ s a -> s{_canwedaChildPolicy = a});++instance ToJSON+         ContinueAsNewWorkflowExecutionDecisionAttributes+         where+        toJSON+          ContinueAsNewWorkflowExecutionDecisionAttributes'{..}+          = object+              ["tagList" .= _canwedaTagList,+               "taskStartToCloseTimeout" .=+                 _canwedaTaskStartToCloseTimeout,+               "lambdaRole" .= _canwedaLambdaRole,+               "input" .= _canwedaInput,+               "workflowTypeVersion" .= _canwedaWorkflowTypeVersion,+               "executionStartToCloseTimeout" .=+                 _canwedaExecutionStartToCloseTimeout,+               "taskList" .= _canwedaTaskList,+               "taskPriority" .= _canwedaTaskPriority,+               "childPolicy" .= _canwedaChildPolicy]++-- | Provides details of the 'ContinueAsNewWorkflowExecutionFailed' event.+--+-- /See:/ 'continueAsNewWorkflowExecutionFailedEventAttributes' smart constructor.+data ContinueAsNewWorkflowExecutionFailedEventAttributes = ContinueAsNewWorkflowExecutionFailedEventAttributes'+    { _canwefeaCause                        :: !ContinueAsNewWorkflowExecutionFailedCause+    , _canwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ContinueAsNewWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'canwefeaCause'+--+-- * 'canwefeaDecisionTaskCompletedEventId'+continueAsNewWorkflowExecutionFailedEventAttributes+    :: ContinueAsNewWorkflowExecutionFailedCause -- ^ 'canwefeaCause'+    -> Integer -- ^ 'canwefeaDecisionTaskCompletedEventId'+    -> ContinueAsNewWorkflowExecutionFailedEventAttributes+continueAsNewWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    ContinueAsNewWorkflowExecutionFailedEventAttributes'+    { _canwefeaCause = pCause_+    , _canwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause+canwefeaCause = lens _canwefeaCause (\ s a -> s{_canwefeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'ContinueAsNewWorkflowExecution'+-- decision that started this execution. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+canwefeaDecisionTaskCompletedEventId :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes Integer+canwefeaDecisionTaskCompletedEventId = lens _canwefeaDecisionTaskCompletedEventId (\ s a -> s{_canwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ContinueAsNewWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "ContinueAsNewWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 ContinueAsNewWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Specifies a decision made by the decider. A decision can be one of these+-- types:+--+-- -   __CancelTimer__: cancels a previously started timer and records a+--     'TimerCanceled' event in the history.+-- -   __CancelWorkflowExecution__: closes the workflow execution and+--     records a 'WorkflowExecutionCanceled' event in the history.+-- -   __CompleteWorkflowExecution__: closes the workflow execution and+--     records a 'WorkflowExecutionCompleted' event in the history .+-- -   __ContinueAsNewWorkflowExecution__: closes the workflow execution+--     and starts a new workflow execution of the same type using the same+--     workflow ID and a unique run ID. A 'WorkflowExecutionContinuedAsNew'+--     event is recorded in the history.+-- -   __FailWorkflowExecution__: closes the workflow execution and records+--     a 'WorkflowExecutionFailed' event in the history.+-- -   __RecordMarker__: records a 'MarkerRecorded' event in the history.+--     Markers can be used for adding custom information in the history for+--     instance to let deciders know that they do not need to look at the+--     history beyond the marker event.+-- -   __RequestCancelActivityTask__: attempts to cancel a previously+--     scheduled activity task. If the activity task was scheduled but has+--     not been assigned to a worker, then it will be canceled. If the+--     activity task was already assigned to a worker, then the worker will+--     be informed that cancellation has been requested in the response to+--     RecordActivityTaskHeartbeat.+-- -   __RequestCancelExternalWorkflowExecution__: requests that a request+--     be made to cancel the specified external workflow execution and+--     records a 'RequestCancelExternalWorkflowExecutionInitiated' event in+--     the history.+-- -   __ScheduleActivityTask__: schedules an activity task.+-- -   __ScheduleLambdaFunction__: schedules a AWS Lambda function.+-- -   __SignalExternalWorkflowExecution__: requests a signal to be+--     delivered to the specified external workflow execution and records a+--     'SignalExternalWorkflowExecutionInitiated' event in the history.+-- -   __StartChildWorkflowExecution__: requests that a child workflow+--     execution be started and records a+--     'StartChildWorkflowExecutionInitiated' event in the history. The+--     child workflow execution is a separate workflow execution with its+--     own history.+-- -   __StartTimer__: starts a timer for this workflow execution and+--     records a 'TimerStarted' event in the history. This timer will fire+--     after the specified delay and record a 'TimerFired' event.+--+-- __Access Control__+--+-- If you grant permission to use 'RespondDecisionTaskCompleted', you can+-- use IAM policies to express permissions for the list of decisions+-- returned by this action as if they were members of the API. Treating+-- decisions as a pseudo API maintains a uniform conceptual model and helps+-- keep policies readable. For details and example IAM policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- __Decision Failure__+--+-- Decisions can fail for several reasons+--+-- -   The ordering of decisions should follow a logical flow. Some+--     decisions might not make sense in the current context of the+--     workflow execution and will therefore fail.+-- -   A limit on your account was reached.+-- -   The decision lacks sufficient permissions.+--+-- One of the following events might be added to the history to indicate an+-- error. The event attribute\'s __cause__ parameter indicates the cause.+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- -   __ScheduleActivityTaskFailed__: a ScheduleActivityTask decision+--     failed. This could happen if the activity type specified in the+--     decision is not registered, is in a deprecated state, or the+--     decision is not properly configured.+-- -   __ScheduleLambdaFunctionFailed__: a ScheduleLambdaFunctionFailed+--     decision failed. This could happen if the AWS Lambda function+--     specified in the decision does not exist, or the AWS Lambda+--     service\'s limits are exceeded.+-- -   __RequestCancelActivityTaskFailed__: a RequestCancelActivityTask+--     decision failed. This could happen if there is no open activity task+--     with the specified activityId.+-- -   __StartTimerFailed__: a StartTimer decision failed. This could+--     happen if there is another open timer with the same timerId.+-- -   __CancelTimerFailed__: a CancelTimer decision failed. This could+--     happen if there is no open timer with the specified timerId.+-- -   __StartChildWorkflowExecutionFailed__: a StartChildWorkflowExecution+--     decision failed. This could happen if the workflow type specified is+--     not registered, is deprecated, or the decision is not properly+--     configured.+-- -   __SignalExternalWorkflowExecutionFailed__: a+--     SignalExternalWorkflowExecution decision failed. This could happen+--     if the 'workflowID' specified in the decision was incorrect.+-- -   __RequestCancelExternalWorkflowExecutionFailed__: a+--     RequestCancelExternalWorkflowExecution decision failed. This could+--     happen if the 'workflowID' specified in the decision was incorrect.+-- -   __CancelWorkflowExecutionFailed__: a CancelWorkflowExecution+--     decision failed. This could happen if there is an unhandled decision+--     task pending in the workflow execution.+-- -   __CompleteWorkflowExecutionFailed__: a CompleteWorkflowExecution+--     decision failed. This could happen if there is an unhandled decision+--     task pending in the workflow execution.+-- -   __ContinueAsNewWorkflowExecutionFailed__: a+--     ContinueAsNewWorkflowExecution decision failed. This could happen if+--     there is an unhandled decision task pending in the workflow+--     execution or the ContinueAsNewWorkflowExecution decision was not+--     configured correctly.+-- -   __FailWorkflowExecutionFailed__: a FailWorkflowExecution decision+--     failed. This could happen if there is an unhandled decision task+--     pending in the workflow execution.+--+-- The preceding error events might occur due to an error in the decider+-- logic, which might put the workflow execution in an unstable state The+-- cause field in the event structure for the error event indicates the+-- cause of the error.+--+-- A workflow execution may be closed by the decider by returning one of+-- the following decisions when completing a decision task:+-- 'CompleteWorkflowExecution', 'FailWorkflowExecution',+-- 'CancelWorkflowExecution' and 'ContinueAsNewWorkflowExecution'. An+-- UnhandledDecision fault will be returned if a workflow closing decision+-- is specified and a signal or activity event had been added to the+-- history while the decision task was being performed by the decider.+-- Unlike the above situations which are logic issues, this fault is always+-- possible because of race conditions in a distributed system. The right+-- action here is to call RespondDecisionTaskCompleted without any+-- decisions. This would result in another decision task with these new+-- events included in the history. The decider should handle the new events+-- and may decide to close the workflow execution.+--+-- __How to code a decision__+--+-- You code a decision by first setting the decision type field to one of+-- the above decision values, and then set the corresponding attributes+-- field shown below:+--+-- -   ScheduleActivityTaskDecisionAttributes+-- -   ScheduleLambdaFunctionDecisionAttributes+-- -   RequestCancelActivityTaskDecisionAttributes+-- -   CompleteWorkflowExecutionDecisionAttributes+-- -   FailWorkflowExecutionDecisionAttributes+-- -   CancelWorkflowExecutionDecisionAttributes+-- -   ContinueAsNewWorkflowExecutionDecisionAttributes+-- -   RecordMarkerDecisionAttributes+-- -   StartTimerDecisionAttributes+-- -   CancelTimerDecisionAttributes+-- -   SignalExternalWorkflowExecutionDecisionAttributes+-- -   RequestCancelExternalWorkflowExecutionDecisionAttributes+-- -   StartChildWorkflowExecutionDecisionAttributes+--+-- /See:/ 'decision' smart constructor.+data Decision = Decision'+    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)+    , _dScheduleActivityTaskDecisionAttributes                   :: !(Maybe ScheduleActivityTaskDecisionAttributes)+    , _dSignalExternalWorkflowExecutionDecisionAttributes        :: !(Maybe SignalExternalWorkflowExecutionDecisionAttributes)+    , _dStartTimerDecisionAttributes                             :: !(Maybe StartTimerDecisionAttributes)+    , _dRecordMarkerDecisionAttributes                           :: !(Maybe RecordMarkerDecisionAttributes)+    , _dFailWorkflowExecutionDecisionAttributes                  :: !(Maybe FailWorkflowExecutionDecisionAttributes)+    , _dStartChildWorkflowExecutionDecisionAttributes            :: !(Maybe StartChildWorkflowExecutionDecisionAttributes)+    , _dScheduleLambdaFunctionDecisionAttributes                 :: !(Maybe ScheduleLambdaFunctionDecisionAttributes)+    , _dCompleteWorkflowExecutionDecisionAttributes              :: !(Maybe CompleteWorkflowExecutionDecisionAttributes)+    , _dRequestCancelActivityTaskDecisionAttributes              :: !(Maybe RequestCancelActivityTaskDecisionAttributes)+    , _dCancelWorkflowExecutionDecisionAttributes                :: !(Maybe CancelWorkflowExecutionDecisionAttributes)+    , _dCancelTimerDecisionAttributes                            :: !(Maybe CancelTimerDecisionAttributes)+    , _dContinueAsNewWorkflowExecutionDecisionAttributes         :: !(Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)+    , _dDecisionType                                             :: !DecisionType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Decision' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dRequestCancelExternalWorkflowExecutionDecisionAttributes'+--+-- * 'dScheduleActivityTaskDecisionAttributes'+--+-- * 'dSignalExternalWorkflowExecutionDecisionAttributes'+--+-- * 'dStartTimerDecisionAttributes'+--+-- * 'dRecordMarkerDecisionAttributes'+--+-- * 'dFailWorkflowExecutionDecisionAttributes'+--+-- * 'dStartChildWorkflowExecutionDecisionAttributes'+--+-- * 'dScheduleLambdaFunctionDecisionAttributes'+--+-- * 'dCompleteWorkflowExecutionDecisionAttributes'+--+-- * 'dRequestCancelActivityTaskDecisionAttributes'+--+-- * 'dCancelWorkflowExecutionDecisionAttributes'+--+-- * 'dCancelTimerDecisionAttributes'+--+-- * 'dContinueAsNewWorkflowExecutionDecisionAttributes'+--+-- * 'dDecisionType'+decision+    :: DecisionType -- ^ 'dDecisionType'+    -> Decision+decision pDecisionType_ =+    Decision'+    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes = Nothing+    , _dScheduleActivityTaskDecisionAttributes = Nothing+    , _dSignalExternalWorkflowExecutionDecisionAttributes = Nothing+    , _dStartTimerDecisionAttributes = Nothing+    , _dRecordMarkerDecisionAttributes = Nothing+    , _dFailWorkflowExecutionDecisionAttributes = Nothing+    , _dStartChildWorkflowExecutionDecisionAttributes = Nothing+    , _dScheduleLambdaFunctionDecisionAttributes = Nothing+    , _dCompleteWorkflowExecutionDecisionAttributes = Nothing+    , _dRequestCancelActivityTaskDecisionAttributes = Nothing+    , _dCancelWorkflowExecutionDecisionAttributes = Nothing+    , _dCancelTimerDecisionAttributes = Nothing+    , _dContinueAsNewWorkflowExecutionDecisionAttributes = Nothing+    , _dDecisionType = pDecisionType_+    }++-- | Provides details of the 'RequestCancelExternalWorkflowExecution'+-- decision. It is not set for other decision types.+dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)+dRequestCancelExternalWorkflowExecutionDecisionAttributes = lens _dRequestCancelExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dRequestCancelExternalWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the 'ScheduleActivityTask' decision. It is not set+-- for other decision types.+dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)+dScheduleActivityTaskDecisionAttributes = lens _dScheduleActivityTaskDecisionAttributes (\ s a -> s{_dScheduleActivityTaskDecisionAttributes = a});++-- | Provides details of the 'SignalExternalWorkflowExecution' decision. It+-- is not set for other decision types.+dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)+dSignalExternalWorkflowExecutionDecisionAttributes = lens _dSignalExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dSignalExternalWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the 'StartTimer' decision. It is not set for other+-- decision types.+dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)+dStartTimerDecisionAttributes = lens _dStartTimerDecisionAttributes (\ s a -> s{_dStartTimerDecisionAttributes = a});++-- | Provides details of the 'RecordMarker' decision. It is not set for other+-- decision types.+dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)+dRecordMarkerDecisionAttributes = lens _dRecordMarkerDecisionAttributes (\ s a -> s{_dRecordMarkerDecisionAttributes = a});++-- | Provides details of the 'FailWorkflowExecution' decision. It is not set+-- for other decision types.+dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)+dFailWorkflowExecutionDecisionAttributes = lens _dFailWorkflowExecutionDecisionAttributes (\ s a -> s{_dFailWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the 'StartChildWorkflowExecution' decision. It is+-- not set for other decision types.+dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)+dStartChildWorkflowExecutionDecisionAttributes = lens _dStartChildWorkflowExecutionDecisionAttributes (\ s a -> s{_dStartChildWorkflowExecutionDecisionAttributes = a});++-- | Undocumented member.+dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)+dScheduleLambdaFunctionDecisionAttributes = lens _dScheduleLambdaFunctionDecisionAttributes (\ s a -> s{_dScheduleLambdaFunctionDecisionAttributes = a});++-- | Provides details of the 'CompleteWorkflowExecution' decision. It is not+-- set for other decision types.+dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)+dCompleteWorkflowExecutionDecisionAttributes = lens _dCompleteWorkflowExecutionDecisionAttributes (\ s a -> s{_dCompleteWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the 'RequestCancelActivityTask' decision. It is not+-- set for other decision types.+dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)+dRequestCancelActivityTaskDecisionAttributes = lens _dRequestCancelActivityTaskDecisionAttributes (\ s a -> s{_dRequestCancelActivityTaskDecisionAttributes = a});++-- | Provides details of the 'CancelWorkflowExecution' decision. It is not+-- set for other decision types.+dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)+dCancelWorkflowExecutionDecisionAttributes = lens _dCancelWorkflowExecutionDecisionAttributes (\ s a -> s{_dCancelWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the 'CancelTimer' decision. It is not set for other+-- decision types.+dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)+dCancelTimerDecisionAttributes = lens _dCancelTimerDecisionAttributes (\ s a -> s{_dCancelTimerDecisionAttributes = a});++-- | Provides details of the 'ContinueAsNewWorkflowExecution' decision. It is+-- not set for other decision types.+dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)+dContinueAsNewWorkflowExecutionDecisionAttributes = lens _dContinueAsNewWorkflowExecutionDecisionAttributes (\ s a -> s{_dContinueAsNewWorkflowExecutionDecisionAttributes = a});++-- | Specifies the type of the decision.+dDecisionType :: Lens' Decision DecisionType+dDecisionType = lens _dDecisionType (\ s a -> s{_dDecisionType = a});++instance ToJSON Decision where+        toJSON Decision'{..}+          = object+              ["requestCancelExternalWorkflowExecutionDecisionAttributes"+                 .=+                 _dRequestCancelExternalWorkflowExecutionDecisionAttributes,+               "scheduleActivityTaskDecisionAttributes" .=+                 _dScheduleActivityTaskDecisionAttributes,+               "signalExternalWorkflowExecutionDecisionAttributes"+                 .=+                 _dSignalExternalWorkflowExecutionDecisionAttributes,+               "startTimerDecisionAttributes" .=+                 _dStartTimerDecisionAttributes,+               "recordMarkerDecisionAttributes" .=+                 _dRecordMarkerDecisionAttributes,+               "failWorkflowExecutionDecisionAttributes" .=+                 _dFailWorkflowExecutionDecisionAttributes,+               "startChildWorkflowExecutionDecisionAttributes" .=+                 _dStartChildWorkflowExecutionDecisionAttributes,+               "scheduleLambdaFunctionDecisionAttributes" .=+                 _dScheduleLambdaFunctionDecisionAttributes,+               "completeWorkflowExecutionDecisionAttributes" .=+                 _dCompleteWorkflowExecutionDecisionAttributes,+               "requestCancelActivityTaskDecisionAttributes" .=+                 _dRequestCancelActivityTaskDecisionAttributes,+               "cancelWorkflowExecutionDecisionAttributes" .=+                 _dCancelWorkflowExecutionDecisionAttributes,+               "cancelTimerDecisionAttributes" .=+                 _dCancelTimerDecisionAttributes,+               "continueAsNewWorkflowExecutionDecisionAttributes" .=+                 _dContinueAsNewWorkflowExecutionDecisionAttributes,+               "decisionType" .= _dDecisionType]++-- | Provides details of the 'DecisionTaskCompleted' event.+--+-- /See:/ 'decisionTaskCompletedEventAttributes' smart constructor.+data DecisionTaskCompletedEventAttributes = DecisionTaskCompletedEventAttributes'+    { _dtceaExecutionContext :: !(Maybe Text)+    , _dtceaScheduledEventId :: !Integer+    , _dtceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtceaExecutionContext'+--+-- * 'dtceaScheduledEventId'+--+-- * 'dtceaStartedEventId'+decisionTaskCompletedEventAttributes+    :: Integer -- ^ 'dtceaScheduledEventId'+    -> Integer -- ^ 'dtceaStartedEventId'+    -> DecisionTaskCompletedEventAttributes+decisionTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    DecisionTaskCompletedEventAttributes'+    { _dtceaExecutionContext = Nothing+    , _dtceaScheduledEventId = pScheduledEventId_+    , _dtceaStartedEventId = pStartedEventId_+    }++-- | User defined context for the workflow execution.+dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)+dtceaExecutionContext = lens _dtceaExecutionContext (\ s a -> s{_dtceaExecutionContext = a});++-- | The ID of the 'DecisionTaskScheduled' event that was recorded when this+-- decision task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+dtceaScheduledEventId :: Lens' DecisionTaskCompletedEventAttributes Integer+dtceaScheduledEventId = lens _dtceaScheduledEventId (\ s a -> s{_dtceaScheduledEventId = a});++-- | The ID of the 'DecisionTaskStarted' event recorded when this decision+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+dtceaStartedEventId :: Lens' DecisionTaskCompletedEventAttributes Integer+dtceaStartedEventId = lens _dtceaStartedEventId (\ s a -> s{_dtceaStartedEventId = a});++instance FromJSON+         DecisionTaskCompletedEventAttributes where+        parseJSON+          = withObject "DecisionTaskCompletedEventAttributes"+              (\ x ->+                 DecisionTaskCompletedEventAttributes' <$>+                   (x .:? "executionContext") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details about the 'DecisionTaskScheduled' event.+--+-- /See:/ 'decisionTaskScheduledEventAttributes' smart constructor.+data DecisionTaskScheduledEventAttributes = DecisionTaskScheduledEventAttributes'+    { _dtseaTaskPriority        :: !(Maybe Text)+    , _dtseaStartToCloseTimeout :: !(Maybe Text)+    , _dtseaTaskList            :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtseaTaskPriority'+--+-- * 'dtseaStartToCloseTimeout'+--+-- * 'dtseaTaskList'+decisionTaskScheduledEventAttributes+    :: TaskList -- ^ 'dtseaTaskList'+    -> DecisionTaskScheduledEventAttributes+decisionTaskScheduledEventAttributes pTaskList_ =+    DecisionTaskScheduledEventAttributes'+    { _dtseaTaskPriority = Nothing+    , _dtseaStartToCloseTimeout = Nothing+    , _dtseaTaskList = pTaskList_+    }++-- | /Optional./ A task priority that, if set, specifies the priority for+-- this decision task. Valid values are integers that range from Java\'s+-- 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647).+-- Higher numbers indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)+dtseaTaskPriority = lens _dtseaTaskPriority (\ s a -> s{_dtseaTaskPriority = a});++-- | The maximum duration for this decision task. The task is considered+-- timed out if it does not completed within this duration.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)+dtseaStartToCloseTimeout = lens _dtseaStartToCloseTimeout (\ s a -> s{_dtseaStartToCloseTimeout = a});++-- | The name of the task list in which the decision task was scheduled.+dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList+dtseaTaskList = lens _dtseaTaskList (\ s a -> s{_dtseaTaskList = a});++instance FromJSON+         DecisionTaskScheduledEventAttributes where+        parseJSON+          = withObject "DecisionTaskScheduledEventAttributes"+              (\ x ->+                 DecisionTaskScheduledEventAttributes' <$>+                   (x .:? "taskPriority") <*>+                     (x .:? "startToCloseTimeout")+                     <*> (x .: "taskList"))++-- | Provides details of the 'DecisionTaskStarted' event.+--+-- /See:/ 'decisionTaskStartedEventAttributes' smart constructor.+data DecisionTaskStartedEventAttributes = DecisionTaskStartedEventAttributes'+    { _dtseaIdentity         :: !(Maybe Text)+    , _dtseaScheduledEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtseaIdentity'+--+-- * 'dtseaScheduledEventId'+decisionTaskStartedEventAttributes+    :: Integer -- ^ 'dtseaScheduledEventId'+    -> DecisionTaskStartedEventAttributes+decisionTaskStartedEventAttributes pScheduledEventId_ =+    DecisionTaskStartedEventAttributes'+    { _dtseaIdentity = Nothing+    , _dtseaScheduledEventId = pScheduledEventId_+    }++-- | Identity of the decider making the request. This enables diagnostic+-- tracing when problems arise. The form of this identity is user defined.+dtseaIdentity :: Lens' DecisionTaskStartedEventAttributes (Maybe Text)+dtseaIdentity = lens _dtseaIdentity (\ s a -> s{_dtseaIdentity = a});++-- | The ID of the 'DecisionTaskScheduled' event that was recorded when this+-- decision task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+dtseaScheduledEventId :: Lens' DecisionTaskStartedEventAttributes Integer+dtseaScheduledEventId = lens _dtseaScheduledEventId (\ s a -> s{_dtseaScheduledEventId = a});++instance FromJSON DecisionTaskStartedEventAttributes+         where+        parseJSON+          = withObject "DecisionTaskStartedEventAttributes"+              (\ x ->+                 DecisionTaskStartedEventAttributes' <$>+                   (x .:? "identity") <*> (x .: "scheduledEventId"))++-- | Provides details of the 'DecisionTaskTimedOut' event.+--+-- /See:/ 'decisionTaskTimedOutEventAttributes' smart constructor.+data DecisionTaskTimedOutEventAttributes = DecisionTaskTimedOutEventAttributes'+    { _dttoeaTimeoutType      :: !DecisionTaskTimeoutType+    , _dttoeaScheduledEventId :: !Integer+    , _dttoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dttoeaTimeoutType'+--+-- * 'dttoeaScheduledEventId'+--+-- * 'dttoeaStartedEventId'+decisionTaskTimedOutEventAttributes+    :: DecisionTaskTimeoutType -- ^ 'dttoeaTimeoutType'+    -> Integer -- ^ 'dttoeaScheduledEventId'+    -> Integer -- ^ 'dttoeaStartedEventId'+    -> DecisionTaskTimedOutEventAttributes+decisionTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =+    DecisionTaskTimedOutEventAttributes'+    { _dttoeaTimeoutType = pTimeoutType_+    , _dttoeaScheduledEventId = pScheduledEventId_+    , _dttoeaStartedEventId = pStartedEventId_+    }++-- | The type of timeout that expired before the decision task could be+-- completed.+dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType+dttoeaTimeoutType = lens _dttoeaTimeoutType (\ s a -> s{_dttoeaTimeoutType = a});++-- | The ID of the 'DecisionTaskScheduled' event that was recorded when this+-- decision task was scheduled. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+dttoeaScheduledEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer+dttoeaScheduledEventId = lens _dttoeaScheduledEventId (\ s a -> s{_dttoeaScheduledEventId = a});++-- | The ID of the 'DecisionTaskStarted' event recorded when this decision+-- task was started. This information can be useful for diagnosing problems+-- by tracing back the chain of events leading up to this event.+dttoeaStartedEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer+dttoeaStartedEventId = lens _dttoeaStartedEventId (\ s a -> s{_dttoeaStartedEventId = a});++instance FromJSON DecisionTaskTimedOutEventAttributes+         where+        parseJSON+          = withObject "DecisionTaskTimedOutEventAttributes"+              (\ x ->+                 DecisionTaskTimedOutEventAttributes' <$>+                   (x .: "timeoutType") <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Contains the configuration settings of a domain.+--+-- /See:/ 'domainConfiguration' smart constructor.+newtype DomainConfiguration = DomainConfiguration'+    { _dcWorkflowExecutionRetentionPeriodInDays :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DomainConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcWorkflowExecutionRetentionPeriodInDays'+domainConfiguration+    :: Text -- ^ 'dcWorkflowExecutionRetentionPeriodInDays'+    -> DomainConfiguration+domainConfiguration pWorkflowExecutionRetentionPeriodInDays_ =+    DomainConfiguration'+    { _dcWorkflowExecutionRetentionPeriodInDays = pWorkflowExecutionRetentionPeriodInDays_+    }++-- | The retention period for workflow executions in this domain.+dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text+dcWorkflowExecutionRetentionPeriodInDays = lens _dcWorkflowExecutionRetentionPeriodInDays (\ s a -> s{_dcWorkflowExecutionRetentionPeriodInDays = a});++instance FromJSON DomainConfiguration where+        parseJSON+          = withObject "DomainConfiguration"+              (\ x ->+                 DomainConfiguration' <$>+                   (x .: "workflowExecutionRetentionPeriodInDays"))++-- | Contains general information about a domain.+--+-- /See:/ 'domainInfo' smart constructor.+data DomainInfo = DomainInfo'+    { _diDescription :: !(Maybe Text)+    , _diName        :: !Text+    , _diStatus      :: !RegistrationStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DomainInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'diDescription'+--+-- * 'diName'+--+-- * 'diStatus'+domainInfo+    :: Text -- ^ 'diName'+    -> RegistrationStatus -- ^ 'diStatus'+    -> DomainInfo+domainInfo pName_ pStatus_ =+    DomainInfo'+    { _diDescription = Nothing+    , _diName = pName_+    , _diStatus = pStatus_+    }++-- | The description of the domain provided through RegisterDomain.+diDescription :: Lens' DomainInfo (Maybe Text)+diDescription = lens _diDescription (\ s a -> s{_diDescription = a});++-- | The name of the domain. This name is unique within the account.+diName :: Lens' DomainInfo Text+diName = lens _diName (\ s a -> s{_diName = a});++-- | The status of the domain:+--+-- -   __REGISTERED__: The domain is properly registered and available. You+--     can use this domain for registering types and creating new workflow+--     executions.+-- -   __DEPRECATED__: The domain was deprecated using DeprecateDomain, but+--     is still in use. You should not create new workflow executions in+--     this domain.+diStatus :: Lens' DomainInfo RegistrationStatus+diStatus = lens _diStatus (\ s a -> s{_diStatus = a});++instance FromJSON DomainInfo where+        parseJSON+          = withObject "DomainInfo"+              (\ x ->+                 DomainInfo' <$>+                   (x .:? "description") <*> (x .: "name") <*>+                     (x .: "status"))++-- | Used to filter the workflow executions in visibility APIs by various+-- time-based rules. Each parameter, if specified, defines a rule that must+-- be satisfied by each returned query result. The parameter values are in+-- the <https://en.wikipedia.org/wiki/Unix_time Unix Time format>. For+-- example: '\"oldestDate\": 1325376070.'+--+-- /See:/ 'executionTimeFilter' smart constructor.+data ExecutionTimeFilter = ExecutionTimeFilter'+    { _etfLatestDate :: !(Maybe POSIX)+    , _etfOldestDate :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExecutionTimeFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'etfLatestDate'+--+-- * 'etfOldestDate'+executionTimeFilter+    :: UTCTime -- ^ 'etfOldestDate'+    -> ExecutionTimeFilter+executionTimeFilter pOldestDate_ =+    ExecutionTimeFilter'+    { _etfLatestDate = Nothing+    , _etfOldestDate = _Time # pOldestDate_+    }++-- | Specifies the latest start or close date and time to return.+etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)+etfLatestDate = lens _etfLatestDate (\ s a -> s{_etfLatestDate = a}) . mapping _Time;++-- | Specifies the oldest start or close date and time to return.+etfOldestDate :: Lens' ExecutionTimeFilter UTCTime+etfOldestDate = lens _etfOldestDate (\ s a -> s{_etfOldestDate = a}) . _Time;++instance ToJSON ExecutionTimeFilter where+        toJSON ExecutionTimeFilter'{..}+          = object+              ["latestDate" .= _etfLatestDate,+               "oldestDate" .= _etfOldestDate]++-- | Provides details of the 'ExternalWorkflowExecutionCancelRequested'+-- event.+--+-- /See:/ 'externalWorkflowExecutionCancelRequestedEventAttributes' smart constructor.+data ExternalWorkflowExecutionCancelRequestedEventAttributes = ExternalWorkflowExecutionCancelRequestedEventAttributes'+    { _ewecreaWorkflowExecution :: !WorkflowExecution+    , _ewecreaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExternalWorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ewecreaWorkflowExecution'+--+-- * 'ewecreaInitiatedEventId'+externalWorkflowExecutionCancelRequestedEventAttributes+    :: WorkflowExecution -- ^ 'ewecreaWorkflowExecution'+    -> Integer -- ^ 'ewecreaInitiatedEventId'+    -> ExternalWorkflowExecutionCancelRequestedEventAttributes+externalWorkflowExecutionCancelRequestedEventAttributes pWorkflowExecution_ pInitiatedEventId_ =+    ExternalWorkflowExecutionCancelRequestedEventAttributes'+    { _ewecreaWorkflowExecution = pWorkflowExecution_+    , _ewecreaInitiatedEventId = pInitiatedEventId_+    }++-- | The external workflow execution to which the cancellation request was+-- delivered.+ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution+ewecreaWorkflowExecution = lens _ewecreaWorkflowExecution (\ s a -> s{_ewecreaWorkflowExecution = a});++-- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event+-- corresponding to the 'RequestCancelExternalWorkflowExecution' decision+-- to cancel this external workflow execution. This information can be+-- useful for diagnosing problems by tracing back the chain of events+-- leading up to this event.+ewecreaInitiatedEventId :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes Integer+ewecreaInitiatedEventId = lens _ewecreaInitiatedEventId (\ s a -> s{_ewecreaInitiatedEventId = a});++instance FromJSON+         ExternalWorkflowExecutionCancelRequestedEventAttributes+         where+        parseJSON+          = withObject+              "ExternalWorkflowExecutionCancelRequestedEventAttributes"+              (\ x ->+                 ExternalWorkflowExecutionCancelRequestedEventAttributes'+                   <$>+                   (x .: "workflowExecution") <*>+                     (x .: "initiatedEventId"))++-- | Provides details of the 'ExternalWorkflowExecutionSignaled' event.+--+-- /See:/ 'externalWorkflowExecutionSignaledEventAttributes' smart constructor.+data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes'+    { _eweseaWorkflowExecution :: !WorkflowExecution+    , _eweseaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExternalWorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eweseaWorkflowExecution'+--+-- * 'eweseaInitiatedEventId'+externalWorkflowExecutionSignaledEventAttributes+    :: WorkflowExecution -- ^ 'eweseaWorkflowExecution'+    -> Integer -- ^ 'eweseaInitiatedEventId'+    -> ExternalWorkflowExecutionSignaledEventAttributes+externalWorkflowExecutionSignaledEventAttributes pWorkflowExecution_ pInitiatedEventId_ =+    ExternalWorkflowExecutionSignaledEventAttributes'+    { _eweseaWorkflowExecution = pWorkflowExecution_+    , _eweseaInitiatedEventId = pInitiatedEventId_+    }++-- | The external workflow execution that the signal was delivered to.+eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution+eweseaWorkflowExecution = lens _eweseaWorkflowExecution (\ s a -> s{_eweseaWorkflowExecution = a});++-- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event+-- corresponding to the 'SignalExternalWorkflowExecution' decision to+-- request this signal. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+eweseaInitiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer+eweseaInitiatedEventId = lens _eweseaInitiatedEventId (\ s a -> s{_eweseaInitiatedEventId = a});++instance FromJSON+         ExternalWorkflowExecutionSignaledEventAttributes+         where+        parseJSON+          = withObject+              "ExternalWorkflowExecutionSignaledEventAttributes"+              (\ x ->+                 ExternalWorkflowExecutionSignaledEventAttributes' <$>+                   (x .: "workflowExecution") <*>+                     (x .: "initiatedEventId"))++-- | Provides details of the 'FailWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'failWorkflowExecutionDecisionAttributes' smart constructor.+data FailWorkflowExecutionDecisionAttributes = FailWorkflowExecutionDecisionAttributes'+    { _fwedaReason  :: !(Maybe Text)+    , _fwedaDetails :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'FailWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'fwedaReason'+--+-- * 'fwedaDetails'+failWorkflowExecutionDecisionAttributes+    :: FailWorkflowExecutionDecisionAttributes+failWorkflowExecutionDecisionAttributes =+    FailWorkflowExecutionDecisionAttributes'+    { _fwedaReason = Nothing+    , _fwedaDetails = Nothing+    }++-- | A descriptive reason for the failure that may help in diagnostics.+fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)+fwedaReason = lens _fwedaReason (\ s a -> s{_fwedaReason = a});++-- | /Optional./ Details of the failure.+fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)+fwedaDetails = lens _fwedaDetails (\ s a -> s{_fwedaDetails = a});++instance ToJSON+         FailWorkflowExecutionDecisionAttributes where+        toJSON FailWorkflowExecutionDecisionAttributes'{..}+          = object+              ["reason" .= _fwedaReason,+               "details" .= _fwedaDetails]++-- | Provides details of the 'FailWorkflowExecutionFailed' event.+--+-- /See:/ 'failWorkflowExecutionFailedEventAttributes' smart constructor.+data FailWorkflowExecutionFailedEventAttributes = FailWorkflowExecutionFailedEventAttributes'+    { _fwefeaCause                        :: !FailWorkflowExecutionFailedCause+    , _fwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'FailWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'fwefeaCause'+--+-- * 'fwefeaDecisionTaskCompletedEventId'+failWorkflowExecutionFailedEventAttributes+    :: FailWorkflowExecutionFailedCause -- ^ 'fwefeaCause'+    -> Integer -- ^ 'fwefeaDecisionTaskCompletedEventId'+    -> FailWorkflowExecutionFailedEventAttributes+failWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    FailWorkflowExecutionFailedEventAttributes'+    { _fwefeaCause = pCause_+    , _fwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause+fwefeaCause = lens _fwefeaCause (\ s a -> s{_fwefeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'FailWorkflowExecution' decision to+-- fail this execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+fwefeaDecisionTaskCompletedEventId :: Lens' FailWorkflowExecutionFailedEventAttributes Integer+fwefeaDecisionTaskCompletedEventId = lens _fwefeaDecisionTaskCompletedEventId (\ s a -> s{_fwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         FailWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "FailWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 FailWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Event within a workflow execution. A history event can be one of these+-- types:+--+-- -   __WorkflowExecutionStarted__: The workflow execution was started.+-- -   __WorkflowExecutionCompleted__: The workflow execution was closed+--     due to successful completion.+-- -   __WorkflowExecutionFailed__: The workflow execution closed due to a+--     failure.+-- -   __WorkflowExecutionTimedOut__: The workflow execution was closed+--     because a time out was exceeded.+-- -   __WorkflowExecutionCanceled__: The workflow execution was+--     successfully canceled and closed.+-- -   __WorkflowExecutionTerminated__: The workflow execution was+--     terminated.+-- -   __WorkflowExecutionContinuedAsNew__: The workflow execution was+--     closed and a new execution of the same type was created with the+--     same workflowId.+-- -   __WorkflowExecutionCancelRequested__: A request to cancel this+--     workflow execution was made.+-- -   __DecisionTaskScheduled__: A decision task was scheduled for the+--     workflow execution.+-- -   __DecisionTaskStarted__: The decision task was dispatched to a+--     decider.+-- -   __DecisionTaskCompleted__: The decider successfully completed a+--     decision task by calling RespondDecisionTaskCompleted.+-- -   __DecisionTaskTimedOut__: The decision task timed out.+-- -   __ActivityTaskScheduled__: An activity task was scheduled for+--     execution.+-- -   __ScheduleActivityTaskFailed__: Failed to process+--     ScheduleActivityTask decision. This happens when the decision is not+--     configured properly, for example the activity type specified is not+--     registered.+-- -   __ActivityTaskStarted__: The scheduled activity task was dispatched+--     to a worker.+-- -   __ActivityTaskCompleted__: An activity worker successfully completed+--     an activity task by calling RespondActivityTaskCompleted.+-- -   __ActivityTaskFailed__: An activity worker failed an activity task+--     by calling RespondActivityTaskFailed.+-- -   __ActivityTaskTimedOut__: The activity task timed out.+-- -   __ActivityTaskCanceled__: The activity task was successfully+--     canceled.+-- -   __ActivityTaskCancelRequested__: A 'RequestCancelActivityTask'+--     decision was received by the system.+-- -   __RequestCancelActivityTaskFailed__: Failed to process+--     RequestCancelActivityTask decision. This happens when the decision+--     is not configured properly.+-- -   __WorkflowExecutionSignaled__: An external signal was received for+--     the workflow execution.+-- -   __MarkerRecorded__: A marker was recorded in the workflow history as+--     the result of a 'RecordMarker' decision.+-- -   __TimerStarted__: A timer was started for the workflow execution due+--     to a 'StartTimer' decision.+-- -   __StartTimerFailed__: Failed to process StartTimer decision. This+--     happens when the decision is not configured properly, for example a+--     timer already exists with the specified timer ID.+-- -   __TimerFired__: A timer, previously started for this workflow+--     execution, fired.+-- -   __TimerCanceled__: A timer, previously started for this workflow+--     execution, was successfully canceled.+-- -   __CancelTimerFailed__: Failed to process CancelTimer decision. This+--     happens when the decision is not configured properly, for example no+--     timer exists with the specified timer ID.+-- -   __StartChildWorkflowExecutionInitiated__: A request was made to+--     start a child workflow execution.+-- -   __StartChildWorkflowExecutionFailed__: Failed to process+--     StartChildWorkflowExecution decision. This happens when the decision+--     is not configured properly, for example the workflow type specified+--     is not registered.+-- -   __ChildWorkflowExecutionStarted__: A child workflow execution was+--     successfully started.+-- -   __ChildWorkflowExecutionCompleted__: A child workflow execution,+--     started by this workflow execution, completed successfully and was+--     closed.+-- -   __ChildWorkflowExecutionFailed__: A child workflow execution,+--     started by this workflow execution, failed to complete successfully+--     and was closed.+-- -   __ChildWorkflowExecutionTimedOut__: A child workflow execution,+--     started by this workflow execution, timed out and was closed.+-- -   __ChildWorkflowExecutionCanceled__: A child workflow execution,+--     started by this workflow execution, was canceled and closed.+-- -   __ChildWorkflowExecutionTerminated__: A child workflow execution,+--     started by this workflow execution, was terminated.+-- -   __SignalExternalWorkflowExecutionInitiated__: A request to signal an+--     external workflow was made.+-- -   __ExternalWorkflowExecutionSignaled__: A signal, requested by this+--     workflow execution, was successfully delivered to the target+--     external workflow execution.+-- -   __SignalExternalWorkflowExecutionFailed__: The request to signal an+--     external workflow execution failed.+-- -   __RequestCancelExternalWorkflowExecutionInitiated__: A request was+--     made to request the cancellation of an external workflow execution.+-- -   __ExternalWorkflowExecutionCancelRequested__: Request to cancel an+--     external workflow execution was successfully delivered to the target+--     execution.+-- -   __RequestCancelExternalWorkflowExecutionFailed__: Request to cancel+--     an external workflow execution failed.+-- -   __LambdaFunctionScheduled__: An AWS Lambda function was scheduled+--     for execution.+-- -   __LambdaFunctionStarted__: The scheduled function was invoked in the+--     AWS Lambda service.+-- -   __LambdaFunctionCompleted__: The AWS Lambda function successfully+--     completed.+-- -   __LambdaFunctionFailed__: The AWS Lambda function execution failed.+-- -   __LambdaFunctionTimedOut__: The AWS Lambda function execution timed+--     out.+-- -   __ScheduleLambdaFunctionFailed__: Failed to process+--     ScheduleLambdaFunction decision. This happens when the workflow+--     execution does not have the proper IAM role attached to invoke AWS+--     Lambda functions.+-- -   __StartLambdaFunctionFailed__: Failed to invoke the scheduled+--     function in the AWS Lambda service. This happens when the AWS Lambda+--     service is not available in the current region, or received too many+--     requests.+--+-- /See:/ 'historyEvent' smart constructor.+data HistoryEvent = HistoryEvent'+    { _heWorkflowExecutionCancelRequestedEventAttributes                :: !(Maybe WorkflowExecutionCancelRequestedEventAttributes)+    , _heDecisionTaskScheduledEventAttributes                           :: !(Maybe DecisionTaskScheduledEventAttributes)+    , _heStartTimerFailedEventAttributes                                :: !(Maybe StartTimerFailedEventAttributes)+    , _heLambdaFunctionStartedEventAttributes                           :: !(Maybe LambdaFunctionStartedEventAttributes)+    , _heRecordMarkerFailedEventAttributes                              :: !(Maybe RecordMarkerFailedEventAttributes)+    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)+    , _heWorkflowExecutionCompletedEventAttributes                      :: !(Maybe WorkflowExecutionCompletedEventAttributes)+    , _heActivityTaskScheduledEventAttributes                           :: !(Maybe ActivityTaskScheduledEventAttributes)+    , _heChildWorkflowExecutionCompletedEventAttributes                 :: !(Maybe ChildWorkflowExecutionCompletedEventAttributes)+    , _heScheduleActivityTaskFailedEventAttributes                      :: !(Maybe ScheduleActivityTaskFailedEventAttributes)+    , _heMarkerRecordedEventAttributes                                  :: !(Maybe MarkerRecordedEventAttributes)+    , _heScheduleLambdaFunctionFailedEventAttributes                    :: !(Maybe ScheduleLambdaFunctionFailedEventAttributes)+    , _heCompleteWorkflowExecutionFailedEventAttributes                 :: !(Maybe CompleteWorkflowExecutionFailedEventAttributes)+    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes    :: !(Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)+    , _heLambdaFunctionCompletedEventAttributes                         :: !(Maybe LambdaFunctionCompletedEventAttributes)+    , _heTimerCanceledEventAttributes                                   :: !(Maybe TimerCanceledEventAttributes)+    , _heWorkflowExecutionStartedEventAttributes                        :: !(Maybe WorkflowExecutionStartedEventAttributes)+    , _heActivityTaskCompletedEventAttributes                           :: !(Maybe ActivityTaskCompletedEventAttributes)+    , _heChildWorkflowExecutionStartedEventAttributes                   :: !(Maybe ChildWorkflowExecutionStartedEventAttributes)+    , _heDecisionTaskTimedOutEventAttributes                            :: !(Maybe DecisionTaskTimedOutEventAttributes)+    , _heCancelTimerFailedEventAttributes                               :: !(Maybe CancelTimerFailedEventAttributes)+    , _heActivityTaskTimedOutEventAttributes                            :: !(Maybe ActivityTaskTimedOutEventAttributes)+    , _heActivityTaskCanceledEventAttributes                            :: !(Maybe ActivityTaskCanceledEventAttributes)+    , _heChildWorkflowExecutionCanceledEventAttributes                  :: !(Maybe ChildWorkflowExecutionCanceledEventAttributes)+    , _heDecisionTaskStartedEventAttributes                             :: !(Maybe DecisionTaskStartedEventAttributes)+    , _heCancelWorkflowExecutionFailedEventAttributes                   :: !(Maybe CancelWorkflowExecutionFailedEventAttributes)+    , _heLambdaFunctionScheduledEventAttributes                         :: !(Maybe LambdaFunctionScheduledEventAttributes)+    , _heChildWorkflowExecutionTimedOutEventAttributes                  :: !(Maybe ChildWorkflowExecutionTimedOutEventAttributes)+    , _heRequestCancelActivityTaskFailedEventAttributes                 :: !(Maybe RequestCancelActivityTaskFailedEventAttributes)+    , _heWorkflowExecutionTerminatedEventAttributes                     :: !(Maybe WorkflowExecutionTerminatedEventAttributes)+    , _heStartChildWorkflowExecutionInitiatedEventAttributes            :: !(Maybe StartChildWorkflowExecutionInitiatedEventAttributes)+    , _heActivityTaskStartedEventAttributes                             :: !(Maybe ActivityTaskStartedEventAttributes)+    , _heSignalExternalWorkflowExecutionFailedEventAttributes           :: !(Maybe SignalExternalWorkflowExecutionFailedEventAttributes)+    , _heTimerStartedEventAttributes                                    :: !(Maybe TimerStartedEventAttributes)+    , _heWorkflowExecutionTimedOutEventAttributes                       :: !(Maybe WorkflowExecutionTimedOutEventAttributes)+    , _heActivityTaskCancelRequestedEventAttributes                     :: !(Maybe ActivityTaskCancelRequestedEventAttributes)+    , _heStartLambdaFunctionFailedEventAttributes                       :: !(Maybe StartLambdaFunctionFailedEventAttributes)+    , _heChildWorkflowExecutionTerminatedEventAttributes                :: !(Maybe ChildWorkflowExecutionTerminatedEventAttributes)+    , _heLambdaFunctionFailedEventAttributes                            :: !(Maybe LambdaFunctionFailedEventAttributes)+    , _heWorkflowExecutionCanceledEventAttributes                       :: !(Maybe WorkflowExecutionCanceledEventAttributes)+    , _heWorkflowExecutionSignaledEventAttributes                       :: !(Maybe WorkflowExecutionSignaledEventAttributes)+    , _heActivityTaskFailedEventAttributes                              :: !(Maybe ActivityTaskFailedEventAttributes)+    , _heExternalWorkflowExecutionSignaledEventAttributes               :: !(Maybe ExternalWorkflowExecutionSignaledEventAttributes)+    , _heTimerFiredEventAttributes                                      :: !(Maybe TimerFiredEventAttributes)+    , _heFailWorkflowExecutionFailedEventAttributes                     :: !(Maybe FailWorkflowExecutionFailedEventAttributes)+    , _heChildWorkflowExecutionFailedEventAttributes                    :: !(Maybe ChildWorkflowExecutionFailedEventAttributes)+    , _heDecisionTaskCompletedEventAttributes                           :: !(Maybe DecisionTaskCompletedEventAttributes)+    , _heStartChildWorkflowExecutionFailedEventAttributes               :: !(Maybe StartChildWorkflowExecutionFailedEventAttributes)+    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes        :: !(Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)+    , _heContinueAsNewWorkflowExecutionFailedEventAttributes            :: !(Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)+    , _heWorkflowExecutionFailedEventAttributes                         :: !(Maybe WorkflowExecutionFailedEventAttributes)+    , _heWorkflowExecutionContinuedAsNewEventAttributes                 :: !(Maybe WorkflowExecutionContinuedAsNewEventAttributes)+    , _heExternalWorkflowExecutionCancelRequestedEventAttributes        :: !(Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)+    , _heLambdaFunctionTimedOutEventAttributes                          :: !(Maybe LambdaFunctionTimedOutEventAttributes)+    , _heEventTimestamp                                                 :: !POSIX+    , _heEventType                                                      :: !EventType+    , _heEventId                                                        :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'HistoryEvent' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'heWorkflowExecutionCancelRequestedEventAttributes'+--+-- * 'heDecisionTaskScheduledEventAttributes'+--+-- * 'heStartTimerFailedEventAttributes'+--+-- * 'heLambdaFunctionStartedEventAttributes'+--+-- * 'heRecordMarkerFailedEventAttributes'+--+-- * 'heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+--+-- * 'heWorkflowExecutionCompletedEventAttributes'+--+-- * 'heActivityTaskScheduledEventAttributes'+--+-- * 'heChildWorkflowExecutionCompletedEventAttributes'+--+-- * 'heScheduleActivityTaskFailedEventAttributes'+--+-- * 'heMarkerRecordedEventAttributes'+--+-- * 'heScheduleLambdaFunctionFailedEventAttributes'+--+-- * 'heCompleteWorkflowExecutionFailedEventAttributes'+--+-- * 'heRequestCancelExternalWorkflowExecutionFailedEventAttributes'+--+-- * 'heLambdaFunctionCompletedEventAttributes'+--+-- * 'heTimerCanceledEventAttributes'+--+-- * 'heWorkflowExecutionStartedEventAttributes'+--+-- * 'heActivityTaskCompletedEventAttributes'+--+-- * 'heChildWorkflowExecutionStartedEventAttributes'+--+-- * 'heDecisionTaskTimedOutEventAttributes'+--+-- * 'heCancelTimerFailedEventAttributes'+--+-- * 'heActivityTaskTimedOutEventAttributes'+--+-- * 'heActivityTaskCanceledEventAttributes'+--+-- * 'heChildWorkflowExecutionCanceledEventAttributes'+--+-- * 'heDecisionTaskStartedEventAttributes'+--+-- * 'heCancelWorkflowExecutionFailedEventAttributes'+--+-- * 'heLambdaFunctionScheduledEventAttributes'+--+-- * 'heChildWorkflowExecutionTimedOutEventAttributes'+--+-- * 'heRequestCancelActivityTaskFailedEventAttributes'+--+-- * 'heWorkflowExecutionTerminatedEventAttributes'+--+-- * 'heStartChildWorkflowExecutionInitiatedEventAttributes'+--+-- * 'heActivityTaskStartedEventAttributes'+--+-- * 'heSignalExternalWorkflowExecutionFailedEventAttributes'+--+-- * 'heTimerStartedEventAttributes'+--+-- * 'heWorkflowExecutionTimedOutEventAttributes'+--+-- * 'heActivityTaskCancelRequestedEventAttributes'+--+-- * 'heStartLambdaFunctionFailedEventAttributes'+--+-- * 'heChildWorkflowExecutionTerminatedEventAttributes'+--+-- * 'heLambdaFunctionFailedEventAttributes'+--+-- * 'heWorkflowExecutionCanceledEventAttributes'+--+-- * 'heWorkflowExecutionSignaledEventAttributes'+--+-- * 'heActivityTaskFailedEventAttributes'+--+-- * 'heExternalWorkflowExecutionSignaledEventAttributes'+--+-- * 'heTimerFiredEventAttributes'+--+-- * 'heFailWorkflowExecutionFailedEventAttributes'+--+-- * 'heChildWorkflowExecutionFailedEventAttributes'+--+-- * 'heDecisionTaskCompletedEventAttributes'+--+-- * 'heStartChildWorkflowExecutionFailedEventAttributes'+--+-- * 'heSignalExternalWorkflowExecutionInitiatedEventAttributes'+--+-- * 'heContinueAsNewWorkflowExecutionFailedEventAttributes'+--+-- * 'heWorkflowExecutionFailedEventAttributes'+--+-- * 'heWorkflowExecutionContinuedAsNewEventAttributes'+--+-- * 'heExternalWorkflowExecutionCancelRequestedEventAttributes'+--+-- * 'heLambdaFunctionTimedOutEventAttributes'+--+-- * 'heEventTimestamp'+--+-- * 'heEventType'+--+-- * 'heEventId'+historyEvent+    :: UTCTime -- ^ 'heEventTimestamp'+    -> EventType -- ^ 'heEventType'+    -> Integer -- ^ 'heEventId'+    -> HistoryEvent+historyEvent pEventTimestamp_ pEventType_ pEventId_ =+    HistoryEvent'+    { _heWorkflowExecutionCancelRequestedEventAttributes = Nothing+    , _heDecisionTaskScheduledEventAttributes = Nothing+    , _heStartTimerFailedEventAttributes = Nothing+    , _heLambdaFunctionStartedEventAttributes = Nothing+    , _heRecordMarkerFailedEventAttributes = Nothing+    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heWorkflowExecutionCompletedEventAttributes = Nothing+    , _heActivityTaskScheduledEventAttributes = Nothing+    , _heChildWorkflowExecutionCompletedEventAttributes = Nothing+    , _heScheduleActivityTaskFailedEventAttributes = Nothing+    , _heMarkerRecordedEventAttributes = Nothing+    , _heScheduleLambdaFunctionFailedEventAttributes = Nothing+    , _heCompleteWorkflowExecutionFailedEventAttributes = Nothing+    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes = Nothing+    , _heLambdaFunctionCompletedEventAttributes = Nothing+    , _heTimerCanceledEventAttributes = Nothing+    , _heWorkflowExecutionStartedEventAttributes = Nothing+    , _heActivityTaskCompletedEventAttributes = Nothing+    , _heChildWorkflowExecutionStartedEventAttributes = Nothing+    , _heDecisionTaskTimedOutEventAttributes = Nothing+    , _heCancelTimerFailedEventAttributes = Nothing+    , _heActivityTaskTimedOutEventAttributes = Nothing+    , _heActivityTaskCanceledEventAttributes = Nothing+    , _heChildWorkflowExecutionCanceledEventAttributes = Nothing+    , _heDecisionTaskStartedEventAttributes = Nothing+    , _heCancelWorkflowExecutionFailedEventAttributes = Nothing+    , _heLambdaFunctionScheduledEventAttributes = Nothing+    , _heChildWorkflowExecutionTimedOutEventAttributes = Nothing+    , _heRequestCancelActivityTaskFailedEventAttributes = Nothing+    , _heWorkflowExecutionTerminatedEventAttributes = Nothing+    , _heStartChildWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heActivityTaskStartedEventAttributes = Nothing+    , _heSignalExternalWorkflowExecutionFailedEventAttributes = Nothing+    , _heTimerStartedEventAttributes = Nothing+    , _heWorkflowExecutionTimedOutEventAttributes = Nothing+    , _heActivityTaskCancelRequestedEventAttributes = Nothing+    , _heStartLambdaFunctionFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionTerminatedEventAttributes = Nothing+    , _heLambdaFunctionFailedEventAttributes = Nothing+    , _heWorkflowExecutionCanceledEventAttributes = Nothing+    , _heWorkflowExecutionSignaledEventAttributes = Nothing+    , _heActivityTaskFailedEventAttributes = Nothing+    , _heExternalWorkflowExecutionSignaledEventAttributes = Nothing+    , _heTimerFiredEventAttributes = Nothing+    , _heFailWorkflowExecutionFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionFailedEventAttributes = Nothing+    , _heDecisionTaskCompletedEventAttributes = Nothing+    , _heStartChildWorkflowExecutionFailedEventAttributes = Nothing+    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heContinueAsNewWorkflowExecutionFailedEventAttributes = Nothing+    , _heWorkflowExecutionFailedEventAttributes = Nothing+    , _heWorkflowExecutionContinuedAsNewEventAttributes = Nothing+    , _heExternalWorkflowExecutionCancelRequestedEventAttributes = Nothing+    , _heLambdaFunctionTimedOutEventAttributes = Nothing+    , _heEventTimestamp = _Time # pEventTimestamp_+    , _heEventType = pEventType_+    , _heEventId = pEventId_+    }++-- | If the event is of type 'WorkflowExecutionCancelRequested' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)+heWorkflowExecutionCancelRequestedEventAttributes = lens _heWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heWorkflowExecutionCancelRequestedEventAttributes = a});++-- | If the event is of type 'DecisionTaskScheduled' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)+heDecisionTaskScheduledEventAttributes = lens _heDecisionTaskScheduledEventAttributes (\ s a -> s{_heDecisionTaskScheduledEventAttributes = a});++-- | If the event is of type 'StartTimerFailed' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)+heStartTimerFailedEventAttributes = lens _heStartTimerFailedEventAttributes (\ s a -> s{_heStartTimerFailedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)+heLambdaFunctionStartedEventAttributes = lens _heLambdaFunctionStartedEventAttributes (\ s a -> s{_heLambdaFunctionStartedEventAttributes = a});++-- | If the event is of type 'DecisionTaskFailed' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)+heRecordMarkerFailedEventAttributes = lens _heRecordMarkerFailedEventAttributes (\ s a -> s{_heRecordMarkerFailedEventAttributes = a});++-- | If the event is of type+-- 'RequestCancelExternalWorkflowExecutionInitiated' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)+heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionCompleted' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)+heWorkflowExecutionCompletedEventAttributes = lens _heWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heWorkflowExecutionCompletedEventAttributes = a});++-- | If the event is of type 'ActivityTaskScheduled' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)+heActivityTaskScheduledEventAttributes = lens _heActivityTaskScheduledEventAttributes (\ s a -> s{_heActivityTaskScheduledEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionCompleted' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)+heChildWorkflowExecutionCompletedEventAttributes = lens _heChildWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heChildWorkflowExecutionCompletedEventAttributes = a});++-- | If the event is of type 'ScheduleActivityTaskFailed' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)+heScheduleActivityTaskFailedEventAttributes = lens _heScheduleActivityTaskFailedEventAttributes (\ s a -> s{_heScheduleActivityTaskFailedEventAttributes = a});++-- | If the event is of type 'MarkerRecorded' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)+heMarkerRecordedEventAttributes = lens _heMarkerRecordedEventAttributes (\ s a -> s{_heMarkerRecordedEventAttributes = a});++-- | Undocumented member.+heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)+heScheduleLambdaFunctionFailedEventAttributes = lens _heScheduleLambdaFunctionFailedEventAttributes (\ s a -> s{_heScheduleLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type 'CompleteWorkflowExecutionFailed' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)+heCompleteWorkflowExecutionFailedEventAttributes = lens _heCompleteWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCompleteWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'RequestCancelExternalWorkflowExecutionFailed'+-- then this member is set and provides detailed information about the+-- event. It is not set for other event types.+heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)+heRequestCancelExternalWorkflowExecutionFailedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionFailedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)+heLambdaFunctionCompletedEventAttributes = lens _heLambdaFunctionCompletedEventAttributes (\ s a -> s{_heLambdaFunctionCompletedEventAttributes = a});++-- | If the event is of type 'TimerCanceled' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)+heTimerCanceledEventAttributes = lens _heTimerCanceledEventAttributes (\ s a -> s{_heTimerCanceledEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionStarted' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)+heWorkflowExecutionStartedEventAttributes = lens _heWorkflowExecutionStartedEventAttributes (\ s a -> s{_heWorkflowExecutionStartedEventAttributes = a});++-- | If the event is of type 'ActivityTaskCompleted' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)+heActivityTaskCompletedEventAttributes = lens _heActivityTaskCompletedEventAttributes (\ s a -> s{_heActivityTaskCompletedEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionStarted' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)+heChildWorkflowExecutionStartedEventAttributes = lens _heChildWorkflowExecutionStartedEventAttributes (\ s a -> s{_heChildWorkflowExecutionStartedEventAttributes = a});++-- | If the event is of type 'DecisionTaskTimedOut' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)+heDecisionTaskTimedOutEventAttributes = lens _heDecisionTaskTimedOutEventAttributes (\ s a -> s{_heDecisionTaskTimedOutEventAttributes = a});++-- | If the event is of type 'CancelTimerFailed' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)+heCancelTimerFailedEventAttributes = lens _heCancelTimerFailedEventAttributes (\ s a -> s{_heCancelTimerFailedEventAttributes = a});++-- | If the event is of type 'ActivityTaskTimedOut' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)+heActivityTaskTimedOutEventAttributes = lens _heActivityTaskTimedOutEventAttributes (\ s a -> s{_heActivityTaskTimedOutEventAttributes = a});++-- | If the event is of type 'ActivityTaskCanceled' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)+heActivityTaskCanceledEventAttributes = lens _heActivityTaskCanceledEventAttributes (\ s a -> s{_heActivityTaskCanceledEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionCanceled' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)+heChildWorkflowExecutionCanceledEventAttributes = lens _heChildWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heChildWorkflowExecutionCanceledEventAttributes = a});++-- | If the event is of type 'DecisionTaskStarted' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)+heDecisionTaskStartedEventAttributes = lens _heDecisionTaskStartedEventAttributes (\ s a -> s{_heDecisionTaskStartedEventAttributes = a});++-- | If the event is of type 'CancelWorkflowExecutionFailed' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)+heCancelWorkflowExecutionFailedEventAttributes = lens _heCancelWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCancelWorkflowExecutionFailedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)+heLambdaFunctionScheduledEventAttributes = lens _heLambdaFunctionScheduledEventAttributes (\ s a -> s{_heLambdaFunctionScheduledEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionTimedOut' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)+heChildWorkflowExecutionTimedOutEventAttributes = lens _heChildWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heChildWorkflowExecutionTimedOutEventAttributes = a});++-- | If the event is of type 'RequestCancelActivityTaskFailed' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)+heRequestCancelActivityTaskFailedEventAttributes = lens _heRequestCancelActivityTaskFailedEventAttributes (\ s a -> s{_heRequestCancelActivityTaskFailedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionTerminated' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)+heWorkflowExecutionTerminatedEventAttributes = lens _heWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heWorkflowExecutionTerminatedEventAttributes = a});++-- | If the event is of type 'StartChildWorkflowExecutionInitiated' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)+heStartChildWorkflowExecutionInitiatedEventAttributes = lens _heStartChildWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionInitiatedEventAttributes = a});++-- | If the event is of type 'ActivityTaskStarted' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)+heActivityTaskStartedEventAttributes = lens _heActivityTaskStartedEventAttributes (\ s a -> s{_heActivityTaskStartedEventAttributes = a});++-- | If the event is of type 'SignalExternalWorkflowExecutionFailed' then+-- this member is set and provides detailed information about the event. It+-- is not set for other event types.+heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)+heSignalExternalWorkflowExecutionFailedEventAttributes = lens _heSignalExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'TimerStarted' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)+heTimerStartedEventAttributes = lens _heTimerStartedEventAttributes (\ s a -> s{_heTimerStartedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionTimedOut' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)+heWorkflowExecutionTimedOutEventAttributes = lens _heWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heWorkflowExecutionTimedOutEventAttributes = a});++-- | If the event is of type 'ActivityTaskcancelRequested' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)+heActivityTaskCancelRequestedEventAttributes = lens _heActivityTaskCancelRequestedEventAttributes (\ s a -> s{_heActivityTaskCancelRequestedEventAttributes = a});++-- | Undocumented member.+heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)+heStartLambdaFunctionFailedEventAttributes = lens _heStartLambdaFunctionFailedEventAttributes (\ s a -> s{_heStartLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionTerminated' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)+heChildWorkflowExecutionTerminatedEventAttributes = lens _heChildWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heChildWorkflowExecutionTerminatedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)+heLambdaFunctionFailedEventAttributes = lens _heLambdaFunctionFailedEventAttributes (\ s a -> s{_heLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionCanceled' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)+heWorkflowExecutionCanceledEventAttributes = lens _heWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heWorkflowExecutionCanceledEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionSignaled' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)+heWorkflowExecutionSignaledEventAttributes = lens _heWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heWorkflowExecutionSignaledEventAttributes = a});++-- | If the event is of type 'ActivityTaskFailed' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)+heActivityTaskFailedEventAttributes = lens _heActivityTaskFailedEventAttributes (\ s a -> s{_heActivityTaskFailedEventAttributes = a});++-- | If the event is of type 'ExternalWorkflowExecutionSignaled' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)+heExternalWorkflowExecutionSignaledEventAttributes = lens _heExternalWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heExternalWorkflowExecutionSignaledEventAttributes = a});++-- | If the event is of type 'TimerFired' then this member is set and+-- provides detailed information about the event. It is not set for other+-- event types.+heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)+heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\ s a -> s{_heTimerFiredEventAttributes = a});++-- | If the event is of type 'FailWorkflowExecutionFailed' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)+heFailWorkflowExecutionFailedEventAttributes = lens _heFailWorkflowExecutionFailedEventAttributes (\ s a -> s{_heFailWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'ChildWorkflowExecutionFailed' then this member+-- is set and provides detailed information about the event. It is not set+-- for other event types.+heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)+heChildWorkflowExecutionFailedEventAttributes = lens _heChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heChildWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'DecisionTaskCompleted' then this member is set+-- and provides detailed information about the event. It is not set for+-- other event types.+heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)+heDecisionTaskCompletedEventAttributes = lens _heDecisionTaskCompletedEventAttributes (\ s a -> s{_heDecisionTaskCompletedEventAttributes = a});++-- | If the event is of type 'StartChildWorkflowExecutionFailed' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)+heStartChildWorkflowExecutionFailedEventAttributes = lens _heStartChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'SignalExternalWorkflowExecutionInitiated' then+-- this member is set and provides detailed information about the event. It+-- is not set for other event types.+heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)+heSignalExternalWorkflowExecutionInitiatedEventAttributes = lens _heSignalExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionInitiatedEventAttributes = a});++-- | If the event is of type 'ContinueAsNewWorkflowExecutionFailed' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)+heContinueAsNewWorkflowExecutionFailedEventAttributes = lens _heContinueAsNewWorkflowExecutionFailedEventAttributes (\ s a -> s{_heContinueAsNewWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionFailed' then this member is+-- set and provides detailed information about the event. It is not set for+-- other event types.+heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)+heWorkflowExecutionFailedEventAttributes = lens _heWorkflowExecutionFailedEventAttributes (\ s a -> s{_heWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type 'WorkflowExecutionContinuedAsNew' then this+-- member is set and provides detailed information about the event. It is+-- not set for other event types.+heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)+heWorkflowExecutionContinuedAsNewEventAttributes = lens _heWorkflowExecutionContinuedAsNewEventAttributes (\ s a -> s{_heWorkflowExecutionContinuedAsNewEventAttributes = a});++-- | If the event is of type 'ExternalWorkflowExecutionCancelRequested' then+-- this member is set and provides detailed information about the event. It+-- is not set for other event types.+heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)+heExternalWorkflowExecutionCancelRequestedEventAttributes = lens _heExternalWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heExternalWorkflowExecutionCancelRequestedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)+heLambdaFunctionTimedOutEventAttributes = lens _heLambdaFunctionTimedOutEventAttributes (\ s a -> s{_heLambdaFunctionTimedOutEventAttributes = a});++-- | The date and time when the event occurred.+heEventTimestamp :: Lens' HistoryEvent UTCTime+heEventTimestamp = lens _heEventTimestamp (\ s a -> s{_heEventTimestamp = a}) . _Time;++-- | The type of the history event.+heEventType :: Lens' HistoryEvent EventType+heEventType = lens _heEventType (\ s a -> s{_heEventType = a});++-- | The system generated ID of the event. This ID uniquely identifies the+-- event with in the workflow execution history.+heEventId :: Lens' HistoryEvent Integer+heEventId = lens _heEventId (\ s a -> s{_heEventId = a});++instance FromJSON HistoryEvent where+        parseJSON+          = withObject "HistoryEvent"+              (\ x ->+                 HistoryEvent' <$>+                   (x .:?+                      "workflowExecutionCancelRequestedEventAttributes")+                     <*> (x .:? "decisionTaskScheduledEventAttributes")+                     <*> (x .:? "startTimerFailedEventAttributes")+                     <*> (x .:? "lambdaFunctionStartedEventAttributes")+                     <*> (x .:? "recordMarkerFailedEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelExternalWorkflowExecutionInitiatedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionCompletedEventAttributes")+                     <*> (x .:? "activityTaskScheduledEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionCompletedEventAttributes")+                     <*>+                     (x .:? "scheduleActivityTaskFailedEventAttributes")+                     <*> (x .:? "markerRecordedEventAttributes")+                     <*>+                     (x .:? "scheduleLambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:?+                        "completeWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelExternalWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "lambdaFunctionCompletedEventAttributes")+                     <*> (x .:? "timerCanceledEventAttributes")+                     <*> (x .:? "workflowExecutionStartedEventAttributes")+                     <*> (x .:? "activityTaskCompletedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionStartedEventAttributes")+                     <*> (x .:? "decisionTaskTimedOutEventAttributes")+                     <*> (x .:? "cancelTimerFailedEventAttributes")+                     <*> (x .:? "activityTaskTimedOutEventAttributes")+                     <*> (x .:? "activityTaskCanceledEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionCanceledEventAttributes")+                     <*> (x .:? "decisionTaskStartedEventAttributes")+                     <*>+                     (x .:?+                        "cancelWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "lambdaFunctionScheduledEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionTimedOutEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelActivityTaskFailedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionTerminatedEventAttributes")+                     <*>+                     (x .:?+                        "startChildWorkflowExecutionInitiatedEventAttributes")+                     <*> (x .:? "activityTaskStartedEventAttributes")+                     <*>+                     (x .:?+                        "signalExternalWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "timerStartedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionTimedOutEventAttributes")+                     <*>+                     (x .:? "activityTaskCancelRequestedEventAttributes")+                     <*>+                     (x .:? "startLambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionTerminatedEventAttributes")+                     <*> (x .:? "lambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionCanceledEventAttributes")+                     <*>+                     (x .:? "workflowExecutionSignaledEventAttributes")+                     <*> (x .:? "activityTaskFailedEventAttributes")+                     <*>+                     (x .:?+                        "externalWorkflowExecutionSignaledEventAttributes")+                     <*> (x .:? "timerFiredEventAttributes")+                     <*>+                     (x .:? "failWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:? "childWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "decisionTaskCompletedEventAttributes")+                     <*>+                     (x .:?+                        "startChildWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "signalExternalWorkflowExecutionInitiatedEventAttributes")+                     <*>+                     (x .:?+                        "continueAsNewWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "workflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "workflowExecutionContinuedAsNewEventAttributes")+                     <*>+                     (x .:?+                        "externalWorkflowExecutionCancelRequestedEventAttributes")+                     <*> (x .:? "lambdaFunctionTimedOutEventAttributes")+                     <*> (x .: "eventTimestamp")+                     <*> (x .: "eventType")+                     <*> (x .: "eventId"))++-- | Provides details for the 'LambdaFunctionCompleted' event.+--+-- /See:/ 'lambdaFunctionCompletedEventAttributes' smart constructor.+data LambdaFunctionCompletedEventAttributes = LambdaFunctionCompletedEventAttributes'+    { _lfceaResult           :: !(Maybe Text)+    , _lfceaScheduledEventId :: !Integer+    , _lfceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfceaResult'+--+-- * 'lfceaScheduledEventId'+--+-- * 'lfceaStartedEventId'+lambdaFunctionCompletedEventAttributes+    :: Integer -- ^ 'lfceaScheduledEventId'+    -> Integer -- ^ 'lfceaStartedEventId'+    -> LambdaFunctionCompletedEventAttributes+lambdaFunctionCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionCompletedEventAttributes'+    { _lfceaResult = Nothing+    , _lfceaScheduledEventId = pScheduledEventId_+    , _lfceaStartedEventId = pStartedEventId_+    }++-- | The result of the function execution (if any).+lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)+lfceaResult = lens _lfceaResult (\ s a -> s{_lfceaResult = a});++-- | The ID of the 'LambdaFunctionScheduled' event that was recorded when+-- this AWS Lambda function was scheduled. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event.+lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer+lfceaScheduledEventId = lens _lfceaScheduledEventId (\ s a -> s{_lfceaScheduledEventId = a});++-- | The ID of the 'LambdaFunctionStarted' event recorded in the history.+lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer+lfceaStartedEventId = lens _lfceaStartedEventId (\ s a -> s{_lfceaStartedEventId = a});++instance FromJSON+         LambdaFunctionCompletedEventAttributes where+        parseJSON+          = withObject "LambdaFunctionCompletedEventAttributes"+              (\ x ->+                 LambdaFunctionCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "scheduledEventId") <*>+                     (x .: "startedEventId"))++-- | Provides details for the 'LambdaFunctionFailed' event.+--+-- /See:/ 'lambdaFunctionFailedEventAttributes' smart constructor.+data LambdaFunctionFailedEventAttributes = LambdaFunctionFailedEventAttributes'+    { _lffeaReason           :: !(Maybe Text)+    , _lffeaDetails          :: !(Maybe Text)+    , _lffeaScheduledEventId :: !Integer+    , _lffeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lffeaReason'+--+-- * 'lffeaDetails'+--+-- * 'lffeaScheduledEventId'+--+-- * 'lffeaStartedEventId'+lambdaFunctionFailedEventAttributes+    :: Integer -- ^ 'lffeaScheduledEventId'+    -> Integer -- ^ 'lffeaStartedEventId'+    -> LambdaFunctionFailedEventAttributes+lambdaFunctionFailedEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionFailedEventAttributes'+    { _lffeaReason = Nothing+    , _lffeaDetails = Nothing+    , _lffeaScheduledEventId = pScheduledEventId_+    , _lffeaStartedEventId = pStartedEventId_+    }++-- | The reason provided for the failure (if any).+lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)+lffeaReason = lens _lffeaReason (\ s a -> s{_lffeaReason = a});++-- | The details of the failure (if any).+lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)+lffeaDetails = lens _lffeaDetails (\ s a -> s{_lffeaDetails = a});++-- | The ID of the 'LambdaFunctionScheduled' event that was recorded when+-- this AWS Lambda function was scheduled. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event.+lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer+lffeaScheduledEventId = lens _lffeaScheduledEventId (\ s a -> s{_lffeaScheduledEventId = a});++-- | The ID of the 'LambdaFunctionStarted' event recorded in the history.+lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer+lffeaStartedEventId = lens _lffeaStartedEventId (\ s a -> s{_lffeaStartedEventId = a});++instance FromJSON LambdaFunctionFailedEventAttributes+         where+        parseJSON+          = withObject "LambdaFunctionFailedEventAttributes"+              (\ x ->+                 LambdaFunctionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details for the 'LambdaFunctionScheduled' event.+--+-- /See:/ 'lambdaFunctionScheduledEventAttributes' smart constructor.+data LambdaFunctionScheduledEventAttributes = LambdaFunctionScheduledEventAttributes'+    { _lfseaInput                        :: !(Maybe Text)+    , _lfseaStartToCloseTimeout          :: !(Maybe Text)+    , _lfseaId                           :: !Text+    , _lfseaName                         :: !Text+    , _lfseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfseaInput'+--+-- * 'lfseaStartToCloseTimeout'+--+-- * 'lfseaId'+--+-- * 'lfseaName'+--+-- * 'lfseaDecisionTaskCompletedEventId'+lambdaFunctionScheduledEventAttributes+    :: Text -- ^ 'lfseaId'+    -> Text -- ^ 'lfseaName'+    -> Integer -- ^ 'lfseaDecisionTaskCompletedEventId'+    -> LambdaFunctionScheduledEventAttributes+lambdaFunctionScheduledEventAttributes pId_ pName_ pDecisionTaskCompletedEventId_ =+    LambdaFunctionScheduledEventAttributes'+    { _lfseaInput = Nothing+    , _lfseaStartToCloseTimeout = Nothing+    , _lfseaId = pId_+    , _lfseaName = pName_+    , _lfseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Input provided to the AWS Lambda function.+lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)+lfseaInput = lens _lfseaInput (\ s a -> s{_lfseaInput = a});++-- | The maximum time, in seconds, that the AWS Lambda function can take to+-- execute from start to close before it is marked as failed.+lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)+lfseaStartToCloseTimeout = lens _lfseaStartToCloseTimeout (\ s a -> s{_lfseaStartToCloseTimeout = a});++-- | The unique Amazon SWF ID for the AWS Lambda task.+lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text+lfseaId = lens _lfseaId (\ s a -> s{_lfseaId = a});++-- | The name of the scheduled AWS Lambda function.+lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text+lfseaName = lens _lfseaName (\ s a -> s{_lfseaName = a});++-- | The ID of the 'DecisionTaskCompleted' event for the decision that+-- resulted in the scheduling of this AWS Lambda function. This information+-- can be useful for diagnosing problems by tracing back the chain of+-- events leading up to this event.+lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer+lfseaDecisionTaskCompletedEventId = lens _lfseaDecisionTaskCompletedEventId (\ s a -> s{_lfseaDecisionTaskCompletedEventId = a});++instance FromJSON+         LambdaFunctionScheduledEventAttributes where+        parseJSON+          = withObject "LambdaFunctionScheduledEventAttributes"+              (\ x ->+                 LambdaFunctionScheduledEventAttributes' <$>+                   (x .:? "input") <*> (x .:? "startToCloseTimeout") <*>+                     (x .: "id")+                     <*> (x .: "name")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details for the 'LambdaFunctionStarted' event.+--+-- /See:/ 'lambdaFunctionStartedEventAttributes' smart constructor.+newtype LambdaFunctionStartedEventAttributes = LambdaFunctionStartedEventAttributes'+    { _lfseaScheduledEventId :: Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfseaScheduledEventId'+lambdaFunctionStartedEventAttributes+    :: Integer -- ^ 'lfseaScheduledEventId'+    -> LambdaFunctionStartedEventAttributes+lambdaFunctionStartedEventAttributes pScheduledEventId_ =+    LambdaFunctionStartedEventAttributes'+    { _lfseaScheduledEventId = pScheduledEventId_+    }++-- | The ID of the 'LambdaFunctionScheduled' event that was recorded when+-- this AWS Lambda function was scheduled. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event.+lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer+lfseaScheduledEventId = lens _lfseaScheduledEventId (\ s a -> s{_lfseaScheduledEventId = a});++instance FromJSON+         LambdaFunctionStartedEventAttributes where+        parseJSON+          = withObject "LambdaFunctionStartedEventAttributes"+              (\ x ->+                 LambdaFunctionStartedEventAttributes' <$>+                   (x .: "scheduledEventId"))++-- | Provides details for the 'LambdaFunctionTimedOut' event.+--+-- /See:/ 'lambdaFunctionTimedOutEventAttributes' smart constructor.+data LambdaFunctionTimedOutEventAttributes = LambdaFunctionTimedOutEventAttributes'+    { _lftoeaTimeoutType      :: !(Maybe LambdaFunctionTimeoutType)+    , _lftoeaScheduledEventId :: !Integer+    , _lftoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lftoeaTimeoutType'+--+-- * 'lftoeaScheduledEventId'+--+-- * 'lftoeaStartedEventId'+lambdaFunctionTimedOutEventAttributes+    :: Integer -- ^ 'lftoeaScheduledEventId'+    -> Integer -- ^ 'lftoeaStartedEventId'+    -> LambdaFunctionTimedOutEventAttributes+lambdaFunctionTimedOutEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionTimedOutEventAttributes'+    { _lftoeaTimeoutType = Nothing+    , _lftoeaScheduledEventId = pScheduledEventId_+    , _lftoeaStartedEventId = pStartedEventId_+    }++-- | The type of the timeout that caused this event.+lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)+lftoeaTimeoutType = lens _lftoeaTimeoutType (\ s a -> s{_lftoeaTimeoutType = a});++-- | The ID of the 'LambdaFunctionScheduled' event that was recorded when+-- this AWS Lambda function was scheduled. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event.+lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer+lftoeaScheduledEventId = lens _lftoeaScheduledEventId (\ s a -> s{_lftoeaScheduledEventId = a});++-- | The ID of the 'LambdaFunctionStarted' event recorded in the history.+lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer+lftoeaStartedEventId = lens _lftoeaStartedEventId (\ s a -> s{_lftoeaStartedEventId = a});++instance FromJSON+         LambdaFunctionTimedOutEventAttributes where+        parseJSON+          = withObject "LambdaFunctionTimedOutEventAttributes"+              (\ x ->+                 LambdaFunctionTimedOutEventAttributes' <$>+                   (x .:? "timeoutType") <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++-- | Provides details of the 'MarkerRecorded' event.+--+-- /See:/ 'markerRecordedEventAttributes' smart constructor.+data MarkerRecordedEventAttributes = MarkerRecordedEventAttributes'+    { _mreaDetails                      :: !(Maybe Text)+    , _mreaMarkerName                   :: !Text+    , _mreaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'MarkerRecordedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mreaDetails'+--+-- * 'mreaMarkerName'+--+-- * 'mreaDecisionTaskCompletedEventId'+markerRecordedEventAttributes+    :: Text -- ^ 'mreaMarkerName'+    -> Integer -- ^ 'mreaDecisionTaskCompletedEventId'+    -> MarkerRecordedEventAttributes+markerRecordedEventAttributes pMarkerName_ pDecisionTaskCompletedEventId_ =+    MarkerRecordedEventAttributes'+    { _mreaDetails = Nothing+    , _mreaMarkerName = pMarkerName_+    , _mreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Details of the marker (if any).+mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)+mreaDetails = lens _mreaDetails (\ s a -> s{_mreaDetails = a});++-- | The name of the marker.+mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text+mreaMarkerName = lens _mreaMarkerName (\ s a -> s{_mreaMarkerName = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'RecordMarker' decision that+-- requested this marker. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+mreaDecisionTaskCompletedEventId :: Lens' MarkerRecordedEventAttributes Integer+mreaDecisionTaskCompletedEventId = lens _mreaDecisionTaskCompletedEventId (\ s a -> s{_mreaDecisionTaskCompletedEventId = a});++instance FromJSON MarkerRecordedEventAttributes where+        parseJSON+          = withObject "MarkerRecordedEventAttributes"+              (\ x ->+                 MarkerRecordedEventAttributes' <$>+                   (x .:? "details") <*> (x .: "markerName") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Contains the count of tasks in a task list.+--+-- /See:/ 'pendingTaskCount' smart constructor.+data PendingTaskCount = PendingTaskCount'+    { _ptcTruncated :: !(Maybe Bool)+    , _ptcCount     :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PendingTaskCount' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ptcTruncated'+--+-- * 'ptcCount'+pendingTaskCount+    :: Natural -- ^ 'ptcCount'+    -> PendingTaskCount+pendingTaskCount pCount_ =+    PendingTaskCount'+    { _ptcTruncated = Nothing+    , _ptcCount = _Nat # pCount_+    }++-- | If set to true, indicates that the actual count was more than the+-- maximum supported by this API and the count returned is the truncated+-- value.+ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)+ptcTruncated = lens _ptcTruncated (\ s a -> s{_ptcTruncated = a});++-- | The number of tasks in the task list.+ptcCount :: Lens' PendingTaskCount Natural+ptcCount = lens _ptcCount (\ s a -> s{_ptcCount = a}) . _Nat;++instance FromJSON PendingTaskCount where+        parseJSON+          = withObject "PendingTaskCount"+              (\ x ->+                 PendingTaskCount' <$>+                   (x .:? "truncated") <*> (x .: "count"))++-- | Provides details of the 'RecordMarker' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'recordMarkerDecisionAttributes' smart constructor.+data RecordMarkerDecisionAttributes = RecordMarkerDecisionAttributes'+    { _rmdaDetails    :: !(Maybe Text)+    , _rmdaMarkerName :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RecordMarkerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rmdaDetails'+--+-- * 'rmdaMarkerName'+recordMarkerDecisionAttributes+    :: Text -- ^ 'rmdaMarkerName'+    -> RecordMarkerDecisionAttributes+recordMarkerDecisionAttributes pMarkerName_ =+    RecordMarkerDecisionAttributes'+    { _rmdaDetails = Nothing+    , _rmdaMarkerName = pMarkerName_+    }++-- | /Optional./ details of the marker.+rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)+rmdaDetails = lens _rmdaDetails (\ s a -> s{_rmdaDetails = a});++-- | __Required.__ The name of the marker.+rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text+rmdaMarkerName = lens _rmdaMarkerName (\ s a -> s{_rmdaMarkerName = a});++instance ToJSON RecordMarkerDecisionAttributes where+        toJSON RecordMarkerDecisionAttributes'{..}+          = object+              ["details" .= _rmdaDetails,+               "markerName" .= _rmdaMarkerName]++-- | Provides details of the 'RecordMarkerFailed' event.+--+-- /See:/ 'recordMarkerFailedEventAttributes' smart constructor.+data RecordMarkerFailedEventAttributes = RecordMarkerFailedEventAttributes'+    { _rmfeaMarkerName                   :: !Text+    , _rmfeaCause                        :: !RecordMarkerFailedCause+    , _rmfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RecordMarkerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rmfeaMarkerName'+--+-- * 'rmfeaCause'+--+-- * 'rmfeaDecisionTaskCompletedEventId'+recordMarkerFailedEventAttributes+    :: Text -- ^ 'rmfeaMarkerName'+    -> RecordMarkerFailedCause -- ^ 'rmfeaCause'+    -> Integer -- ^ 'rmfeaDecisionTaskCompletedEventId'+    -> RecordMarkerFailedEventAttributes+recordMarkerFailedEventAttributes pMarkerName_ pCause_ pDecisionTaskCompletedEventId_ =+    RecordMarkerFailedEventAttributes'+    { _rmfeaMarkerName = pMarkerName_+    , _rmfeaCause = pCause_+    , _rmfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The marker\'s name.+rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text+rmfeaMarkerName = lens _rmfeaMarkerName (\ s a -> s{_rmfeaMarkerName = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause+rmfeaCause = lens _rmfeaCause (\ s a -> s{_rmfeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'RecordMarkerFailed' decision for+-- this cancellation request. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+rmfeaDecisionTaskCompletedEventId :: Lens' RecordMarkerFailedEventAttributes Integer+rmfeaDecisionTaskCompletedEventId = lens _rmfeaDecisionTaskCompletedEventId (\ s a -> s{_rmfeaDecisionTaskCompletedEventId = a});++instance FromJSON RecordMarkerFailedEventAttributes+         where+        parseJSON+          = withObject "RecordMarkerFailedEventAttributes"+              (\ x ->+                 RecordMarkerFailedEventAttributes' <$>+                   (x .: "markerName") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'RequestCancelActivityTask' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'requestCancelActivityTaskDecisionAttributes' smart constructor.+newtype RequestCancelActivityTaskDecisionAttributes = RequestCancelActivityTaskDecisionAttributes'+    { _rcatdaActivityId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelActivityTaskDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcatdaActivityId'+requestCancelActivityTaskDecisionAttributes+    :: Text -- ^ 'rcatdaActivityId'+    -> RequestCancelActivityTaskDecisionAttributes+requestCancelActivityTaskDecisionAttributes pActivityId_ =+    RequestCancelActivityTaskDecisionAttributes'+    { _rcatdaActivityId = pActivityId_+    }++-- | The 'activityId' of the activity task to be canceled.+rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text+rcatdaActivityId = lens _rcatdaActivityId (\ s a -> s{_rcatdaActivityId = a});++instance ToJSON+         RequestCancelActivityTaskDecisionAttributes where+        toJSON+          RequestCancelActivityTaskDecisionAttributes'{..}+          = object ["activityId" .= _rcatdaActivityId]++-- | Provides details of the 'RequestCancelActivityTaskFailed' event.+--+-- /See:/ 'requestCancelActivityTaskFailedEventAttributes' smart constructor.+data RequestCancelActivityTaskFailedEventAttributes = RequestCancelActivityTaskFailedEventAttributes'+    { _rcatfeaActivityId                   :: !Text+    , _rcatfeaCause                        :: !RequestCancelActivityTaskFailedCause+    , _rcatfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcatfeaActivityId'+--+-- * 'rcatfeaCause'+--+-- * 'rcatfeaDecisionTaskCompletedEventId'+requestCancelActivityTaskFailedEventAttributes+    :: Text -- ^ 'rcatfeaActivityId'+    -> RequestCancelActivityTaskFailedCause -- ^ 'rcatfeaCause'+    -> Integer -- ^ 'rcatfeaDecisionTaskCompletedEventId'+    -> RequestCancelActivityTaskFailedEventAttributes+requestCancelActivityTaskFailedEventAttributes pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =+    RequestCancelActivityTaskFailedEventAttributes'+    { _rcatfeaActivityId = pActivityId_+    , _rcatfeaCause = pCause_+    , _rcatfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The activityId provided in the 'RequestCancelActivityTask' decision that+-- failed.+rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text+rcatfeaActivityId = lens _rcatfeaActivityId (\ s a -> s{_rcatfeaActivityId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause+rcatfeaCause = lens _rcatfeaCause (\ s a -> s{_rcatfeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'RequestCancelActivityTask' decision+-- for this cancellation request. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+rcatfeaDecisionTaskCompletedEventId :: Lens' RequestCancelActivityTaskFailedEventAttributes Integer+rcatfeaDecisionTaskCompletedEventId = lens _rcatfeaDecisionTaskCompletedEventId (\ s a -> s{_rcatfeaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelActivityTaskFailedEventAttributes where+        parseJSON+          = withObject+              "RequestCancelActivityTaskFailedEventAttributes"+              (\ x ->+                 RequestCancelActivityTaskFailedEventAttributes' <$>+                   (x .: "activityId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'RequestCancelExternalWorkflowExecution'+-- decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'requestCancelExternalWorkflowExecutionDecisionAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionDecisionAttributes = RequestCancelExternalWorkflowExecutionDecisionAttributes'+    { _rcewedaControl    :: !(Maybe Text)+    , _rcewedaRunId      :: !(Maybe Text)+    , _rcewedaWorkflowId :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcewedaControl'+--+-- * 'rcewedaRunId'+--+-- * 'rcewedaWorkflowId'+requestCancelExternalWorkflowExecutionDecisionAttributes+    :: Text -- ^ 'rcewedaWorkflowId'+    -> RequestCancelExternalWorkflowExecutionDecisionAttributes+requestCancelExternalWorkflowExecutionDecisionAttributes pWorkflowId_ =+    RequestCancelExternalWorkflowExecutionDecisionAttributes'+    { _rcewedaControl = Nothing+    , _rcewedaRunId = Nothing+    , _rcewedaWorkflowId = pWorkflowId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks.+rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)+rcewedaControl = lens _rcewedaControl (\ s a -> s{_rcewedaControl = a});++-- | The 'runId' of the external workflow execution to cancel.+rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)+rcewedaRunId = lens _rcewedaRunId (\ s a -> s{_rcewedaRunId = a});++-- | __Required.__ The 'workflowId' of the external workflow execution to+-- cancel.+rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text+rcewedaWorkflowId = lens _rcewedaWorkflowId (\ s a -> s{_rcewedaWorkflowId = a});++instance ToJSON+         RequestCancelExternalWorkflowExecutionDecisionAttributes+         where+        toJSON+          RequestCancelExternalWorkflowExecutionDecisionAttributes'{..}+          = object+              ["control" .= _rcewedaControl,+               "runId" .= _rcewedaRunId,+               "workflowId" .= _rcewedaWorkflowId]++-- | Provides details of the 'RequestCancelExternalWorkflowExecutionFailed'+-- event.+--+-- /See:/ 'requestCancelExternalWorkflowExecutionFailedEventAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionFailedEventAttributes = RequestCancelExternalWorkflowExecutionFailedEventAttributes'+    { _rcewefeaControl                      :: !(Maybe Text)+    , _rcewefeaRunId                        :: !(Maybe Text)+    , _rcewefeaWorkflowId                   :: !Text+    , _rcewefeaCause                        :: !RequestCancelExternalWorkflowExecutionFailedCause+    , _rcewefeaInitiatedEventId             :: !Integer+    , _rcewefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcewefeaControl'+--+-- * 'rcewefeaRunId'+--+-- * 'rcewefeaWorkflowId'+--+-- * 'rcewefeaCause'+--+-- * 'rcewefeaInitiatedEventId'+--+-- * 'rcewefeaDecisionTaskCompletedEventId'+requestCancelExternalWorkflowExecutionFailedEventAttributes+    :: Text -- ^ 'rcewefeaWorkflowId'+    -> RequestCancelExternalWorkflowExecutionFailedCause -- ^ 'rcewefeaCause'+    -> Integer -- ^ 'rcewefeaInitiatedEventId'+    -> Integer -- ^ 'rcewefeaDecisionTaskCompletedEventId'+    -> RequestCancelExternalWorkflowExecutionFailedEventAttributes+requestCancelExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    RequestCancelExternalWorkflowExecutionFailedEventAttributes'+    { _rcewefeaControl = Nothing+    , _rcewefeaRunId = Nothing+    , _rcewefeaWorkflowId = pWorkflowId_+    , _rcewefeaCause = pCause_+    , _rcewefeaInitiatedEventId = pInitiatedEventId_+    , _rcewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+rcewefeaControl = lens _rcewefeaControl (\ s a -> s{_rcewefeaControl = a});++-- | The 'runId' of the external workflow execution.+rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+rcewefeaRunId = lens _rcewefeaRunId (\ s a -> s{_rcewefeaRunId = a});++-- | The 'workflowId' of the external workflow to which the cancel request+-- was to be delivered.+rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text+rcewefeaWorkflowId = lens _rcewefeaWorkflowId (\ s a -> s{_rcewefeaWorkflowId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause+rcewefeaCause = lens _rcewefeaCause (\ s a -> s{_rcewefeaCause = a});++-- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event+-- corresponding to the 'RequestCancelExternalWorkflowExecution' decision+-- to cancel this external workflow execution. This information can be+-- useful for diagnosing problems by tracing back the chain of events+-- leading up to this event.+rcewefeaInitiatedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer+rcewefeaInitiatedEventId = lens _rcewefeaInitiatedEventId (\ s a -> s{_rcewefeaInitiatedEventId = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the+-- 'RequestCancelExternalWorkflowExecution' decision for this cancellation+-- request. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+rcewefeaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer+rcewefeaDecisionTaskCompletedEventId = lens _rcewefeaDecisionTaskCompletedEventId (\ s a -> s{_rcewefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelExternalWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "RequestCancelExternalWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 RequestCancelExternalWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "cause")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the+-- 'RequestCancelExternalWorkflowExecutionInitiated' event.+--+-- /See:/ 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+    { _rceweieaControl                      :: !(Maybe Text)+    , _rceweieaRunId                        :: !(Maybe Text)+    , _rceweieaWorkflowId                   :: !Text+    , _rceweieaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rceweieaControl'+--+-- * 'rceweieaRunId'+--+-- * 'rceweieaWorkflowId'+--+-- * 'rceweieaDecisionTaskCompletedEventId'+requestCancelExternalWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'rceweieaWorkflowId'+    -> Integer -- ^ 'rceweieaDecisionTaskCompletedEventId'+    -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+requestCancelExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pDecisionTaskCompletedEventId_ =+    RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+    { _rceweieaControl = Nothing+    , _rceweieaRunId = Nothing+    , _rceweieaWorkflowId = pWorkflowId_+    , _rceweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks.+rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+rceweieaControl = lens _rceweieaControl (\ s a -> s{_rceweieaControl = a});++-- | The 'runId' of the external workflow execution to be canceled.+rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+rceweieaRunId = lens _rceweieaRunId (\ s a -> s{_rceweieaRunId = a});++-- | The 'workflowId' of the external workflow execution to be canceled.+rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text+rceweieaWorkflowId = lens _rceweieaWorkflowId (\ s a -> s{_rceweieaWorkflowId = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the+-- 'RequestCancelExternalWorkflowExecution' decision for this cancellation+-- request. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+rceweieaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Integer+rceweieaDecisionTaskCompletedEventId = lens _rceweieaDecisionTaskCompletedEventId (\ s a -> s{_rceweieaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'ScheduleActivityTask' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'activityType.name': String constraint. The key is+--         'swf:activityType.name'.+--     -   'activityType.version': String constraint. The key is+--         'swf:activityType.version'.+--     -   'taskList': String constraint. The key is 'swf:taskList.name'.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'scheduleActivityTaskDecisionAttributes' smart constructor.+data ScheduleActivityTaskDecisionAttributes = ScheduleActivityTaskDecisionAttributes'+    { _satdaControl                :: !(Maybe Text)+    , _satdaScheduleToCloseTimeout :: !(Maybe Text)+    , _satdaHeartbeatTimeout       :: !(Maybe Text)+    , _satdaInput                  :: !(Maybe Text)+    , _satdaTaskList               :: !(Maybe TaskList)+    , _satdaTaskPriority           :: !(Maybe Text)+    , _satdaScheduleToStartTimeout :: !(Maybe Text)+    , _satdaStartToCloseTimeout    :: !(Maybe Text)+    , _satdaActivityType           :: !ActivityType+    , _satdaActivityId             :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleActivityTaskDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'satdaControl'+--+-- * 'satdaScheduleToCloseTimeout'+--+-- * 'satdaHeartbeatTimeout'+--+-- * 'satdaInput'+--+-- * 'satdaTaskList'+--+-- * 'satdaTaskPriority'+--+-- * 'satdaScheduleToStartTimeout'+--+-- * 'satdaStartToCloseTimeout'+--+-- * 'satdaActivityType'+--+-- * 'satdaActivityId'+scheduleActivityTaskDecisionAttributes+    :: ActivityType -- ^ 'satdaActivityType'+    -> Text -- ^ 'satdaActivityId'+    -> ScheduleActivityTaskDecisionAttributes+scheduleActivityTaskDecisionAttributes pActivityType_ pActivityId_ =+    ScheduleActivityTaskDecisionAttributes'+    { _satdaControl = Nothing+    , _satdaScheduleToCloseTimeout = Nothing+    , _satdaHeartbeatTimeout = Nothing+    , _satdaInput = Nothing+    , _satdaTaskList = Nothing+    , _satdaTaskPriority = Nothing+    , _satdaScheduleToStartTimeout = Nothing+    , _satdaStartToCloseTimeout = Nothing+    , _satdaActivityType = pActivityType_+    , _satdaActivityId = pActivityId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks. This data is not sent to the activity.+satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaControl = lens _satdaControl (\ s a -> s{_satdaControl = a});++-- | The maximum duration for this activity task.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- A schedule-to-close timeout for this activity task must be specified+-- either as a default for the activity type or through this field. If+-- neither this field is set nor a default schedule-to-close timeout was+-- specified at registration time then a fault will be returned.+satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaScheduleToCloseTimeout = lens _satdaScheduleToCloseTimeout (\ s a -> s{_satdaScheduleToCloseTimeout = a});++-- | If set, specifies the maximum time before which a worker processing a+-- task of this type must report progress by calling+-- RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity+-- task is automatically timed out. If the worker subsequently attempts to+-- record a heartbeat or returns a result, it will be ignored. This+-- overrides the default heartbeat timeout specified when registering the+-- activity type using RegisterActivityType.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaHeartbeatTimeout = lens _satdaHeartbeatTimeout (\ s a -> s{_satdaHeartbeatTimeout = a});++-- | The input provided to the activity task.+satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaInput = lens _satdaInput (\ s a -> s{_satdaInput = a});++-- | If set, specifies the name of the task list in which to schedule the+-- activity task. If not specified, the 'defaultTaskList' registered with+-- the activity type will be used.+--+-- A task list for this activity task must be specified either as a default+-- for the activity type or through this field. If neither this field is+-- set nor a default task list was specified at registration time then a+-- fault will be returned.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)+satdaTaskList = lens _satdaTaskList (\ s a -> s{_satdaTaskList = a});++-- | /Optional./ If set, specifies the priority with which the activity task+-- is to be assigned to a worker. This overrides the defaultTaskPriority+-- specified when registering the activity type using RegisterActivityType.+-- Valid values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaTaskPriority = lens _satdaTaskPriority (\ s a -> s{_satdaTaskPriority = a});++-- | /Optional./ If set, specifies the maximum duration the activity task can+-- wait to be assigned to a worker. This overrides the default+-- schedule-to-start timeout specified when registering the activity type+-- using RegisterActivityType.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- A schedule-to-start timeout for this activity task must be specified+-- either as a default for the activity type or through this field. If+-- neither this field is set nor a default schedule-to-start timeout was+-- specified at registration time then a fault will be returned.+satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaScheduleToStartTimeout = lens _satdaScheduleToStartTimeout (\ s a -> s{_satdaScheduleToStartTimeout = a});++-- | If set, specifies the maximum duration a worker may take to process this+-- activity task. This overrides the default start-to-close timeout+-- specified when registering the activity type using RegisterActivityType.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- A start-to-close timeout for this activity task must be specified either+-- as a default for the activity type or through this field. If neither+-- this field is set nor a default start-to-close timeout was specified at+-- registration time then a fault will be returned.+satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaStartToCloseTimeout = lens _satdaStartToCloseTimeout (\ s a -> s{_satdaStartToCloseTimeout = a});++-- | __Required.__ The type of the activity task to schedule.+satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType+satdaActivityType = lens _satdaActivityType (\ s a -> s{_satdaActivityType = a});++-- | __Required.__ The 'activityId' of the activity task.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text+satdaActivityId = lens _satdaActivityId (\ s a -> s{_satdaActivityId = a});++instance ToJSON+         ScheduleActivityTaskDecisionAttributes where+        toJSON ScheduleActivityTaskDecisionAttributes'{..}+          = object+              ["control" .= _satdaControl,+               "scheduleToCloseTimeout" .=+                 _satdaScheduleToCloseTimeout,+               "heartbeatTimeout" .= _satdaHeartbeatTimeout,+               "input" .= _satdaInput, "taskList" .= _satdaTaskList,+               "taskPriority" .= _satdaTaskPriority,+               "scheduleToStartTimeout" .=+                 _satdaScheduleToStartTimeout,+               "startToCloseTimeout" .= _satdaStartToCloseTimeout,+               "activityType" .= _satdaActivityType,+               "activityId" .= _satdaActivityId]++-- | Provides details of the 'ScheduleActivityTaskFailed' event.+--+-- /See:/ 'scheduleActivityTaskFailedEventAttributes' smart constructor.+data ScheduleActivityTaskFailedEventAttributes = ScheduleActivityTaskFailedEventAttributes'+    { _satfeaActivityType                 :: !ActivityType+    , _satfeaActivityId                   :: !Text+    , _satfeaCause                        :: !ScheduleActivityTaskFailedCause+    , _satfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'satfeaActivityType'+--+-- * 'satfeaActivityId'+--+-- * 'satfeaCause'+--+-- * 'satfeaDecisionTaskCompletedEventId'+scheduleActivityTaskFailedEventAttributes+    :: ActivityType -- ^ 'satfeaActivityType'+    -> Text -- ^ 'satfeaActivityId'+    -> ScheduleActivityTaskFailedCause -- ^ 'satfeaCause'+    -> Integer -- ^ 'satfeaDecisionTaskCompletedEventId'+    -> ScheduleActivityTaskFailedEventAttributes+scheduleActivityTaskFailedEventAttributes pActivityType_ pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =+    ScheduleActivityTaskFailedEventAttributes'+    { _satfeaActivityType = pActivityType_+    , _satfeaActivityId = pActivityId_+    , _satfeaCause = pCause_+    , _satfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The activity type provided in the 'ScheduleActivityTask' decision that+-- failed.+satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType+satfeaActivityType = lens _satfeaActivityType (\ s a -> s{_satfeaActivityType = a});++-- | The activityId provided in the 'ScheduleActivityTask' decision that+-- failed.+satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text+satfeaActivityId = lens _satfeaActivityId (\ s a -> s{_satfeaActivityId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause+satfeaCause = lens _satfeaCause (\ s a -> s{_satfeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision that resulted in the scheduling of this activity task. This+-- information can be useful for diagnosing problems by tracing back the+-- chain of events leading up to this event.+satfeaDecisionTaskCompletedEventId :: Lens' ScheduleActivityTaskFailedEventAttributes Integer+satfeaDecisionTaskCompletedEventId = lens _satfeaDecisionTaskCompletedEventId (\ s a -> s{_satfeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ScheduleActivityTaskFailedEventAttributes where+        parseJSON+          = withObject+              "ScheduleActivityTaskFailedEventAttributes"+              (\ x ->+                 ScheduleActivityTaskFailedEventAttributes' <$>+                   (x .: "activityType") <*> (x .: "activityId") <*>+                     (x .: "cause")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'ScheduleLambdaFunction' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'activityType.name': String constraint. The key is+--         'swf:activityType.name'.+--     -   'activityType.version': String constraint. The key is+--         'swf:activityType.version'.+--     -   'taskList': String constraint. The key is 'swf:taskList.name'.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'scheduleLambdaFunctionDecisionAttributes' smart constructor.+data ScheduleLambdaFunctionDecisionAttributes = ScheduleLambdaFunctionDecisionAttributes'+    { _slfdaInput               :: !(Maybe Text)+    , _slfdaStartToCloseTimeout :: !(Maybe Text)+    , _slfdaId                  :: !Text+    , _slfdaName                :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleLambdaFunctionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slfdaInput'+--+-- * 'slfdaStartToCloseTimeout'+--+-- * 'slfdaId'+--+-- * 'slfdaName'+scheduleLambdaFunctionDecisionAttributes+    :: Text -- ^ 'slfdaId'+    -> Text -- ^ 'slfdaName'+    -> ScheduleLambdaFunctionDecisionAttributes+scheduleLambdaFunctionDecisionAttributes pId_ pName_ =+    ScheduleLambdaFunctionDecisionAttributes'+    { _slfdaInput = Nothing+    , _slfdaStartToCloseTimeout = Nothing+    , _slfdaId = pId_+    , _slfdaName = pName_+    }++-- | The input provided to the AWS Lambda function.+slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)+slfdaInput = lens _slfdaInput (\ s a -> s{_slfdaInput = a});++-- | If set, specifies the maximum duration the function may take to execute.+slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)+slfdaStartToCloseTimeout = lens _slfdaStartToCloseTimeout (\ s a -> s{_slfdaStartToCloseTimeout = a});++-- | __Required.__ The SWF 'id' of the AWS Lambda task.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text+slfdaId = lens _slfdaId (\ s a -> s{_slfdaId = a});++-- | __Required.__ The name of the AWS Lambda function to invoke.+slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text+slfdaName = lens _slfdaName (\ s a -> s{_slfdaName = a});++instance ToJSON+         ScheduleLambdaFunctionDecisionAttributes where+        toJSON ScheduleLambdaFunctionDecisionAttributes'{..}+          = object+              ["input" .= _slfdaInput,+               "startToCloseTimeout" .= _slfdaStartToCloseTimeout,+               "id" .= _slfdaId, "name" .= _slfdaName]++-- | Provides details for the 'ScheduleLambdaFunctionFailed' event.+--+-- /See:/ 'scheduleLambdaFunctionFailedEventAttributes' smart constructor.+data ScheduleLambdaFunctionFailedEventAttributes = ScheduleLambdaFunctionFailedEventAttributes'+    { _slffeaId                           :: !Text+    , _slffeaName                         :: !Text+    , _slffeaCause                        :: !ScheduleLambdaFunctionFailedCause+    , _slffeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slffeaId'+--+-- * 'slffeaName'+--+-- * 'slffeaCause'+--+-- * 'slffeaDecisionTaskCompletedEventId'+scheduleLambdaFunctionFailedEventAttributes+    :: Text -- ^ 'slffeaId'+    -> Text -- ^ 'slffeaName'+    -> ScheduleLambdaFunctionFailedCause -- ^ 'slffeaCause'+    -> Integer -- ^ 'slffeaDecisionTaskCompletedEventId'+    -> ScheduleLambdaFunctionFailedEventAttributes+scheduleLambdaFunctionFailedEventAttributes pId_ pName_ pCause_ pDecisionTaskCompletedEventId_ =+    ScheduleLambdaFunctionFailedEventAttributes'+    { _slffeaId = pId_+    , _slffeaName = pName_+    , _slffeaCause = pCause_+    , _slffeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The unique Amazon SWF ID of the AWS Lambda task.+slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text+slffeaId = lens _slffeaId (\ s a -> s{_slffeaId = a});++-- | The name of the scheduled AWS Lambda function.+slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text+slffeaName = lens _slffeaName (\ s a -> s{_slffeaName = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause+slffeaCause = lens _slffeaCause (\ s a -> s{_slffeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision that resulted in the scheduling of this AWS Lambda function.+-- This information can be useful for diagnosing problems by tracing back+-- the chain of events leading up to this event.+slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer+slffeaDecisionTaskCompletedEventId = lens _slffeaDecisionTaskCompletedEventId (\ s a -> s{_slffeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ScheduleLambdaFunctionFailedEventAttributes where+        parseJSON+          = withObject+              "ScheduleLambdaFunctionFailedEventAttributes"+              (\ x ->+                 ScheduleLambdaFunctionFailedEventAttributes' <$>+                   (x .: "id") <*> (x .: "name") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'SignalExternalWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'signalExternalWorkflowExecutionDecisionAttributes' smart constructor.+data SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes'+    { _sewedaControl    :: !(Maybe Text)+    , _sewedaInput      :: !(Maybe Text)+    , _sewedaRunId      :: !(Maybe Text)+    , _sewedaWorkflowId :: !Text+    , _sewedaSignalName :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sewedaControl'+--+-- * 'sewedaInput'+--+-- * 'sewedaRunId'+--+-- * 'sewedaWorkflowId'+--+-- * 'sewedaSignalName'+signalExternalWorkflowExecutionDecisionAttributes+    :: Text -- ^ 'sewedaWorkflowId'+    -> Text -- ^ 'sewedaSignalName'+    -> SignalExternalWorkflowExecutionDecisionAttributes+signalExternalWorkflowExecutionDecisionAttributes pWorkflowId_ pSignalName_ =+    SignalExternalWorkflowExecutionDecisionAttributes'+    { _sewedaControl = Nothing+    , _sewedaInput = Nothing+    , _sewedaRunId = Nothing+    , _sewedaWorkflowId = pWorkflowId_+    , _sewedaSignalName = pSignalName_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent decision tasks.+sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaControl = lens _sewedaControl (\ s a -> s{_sewedaControl = a});++-- | /Optional./ Input data to be provided with the signal. The target+-- workflow execution will use the signal name and input data to process+-- the signal.+sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaInput = lens _sewedaInput (\ s a -> s{_sewedaInput = a});++-- | The 'runId' of the workflow execution to be signaled.+sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaRunId = lens _sewedaRunId (\ s a -> s{_sewedaRunId = a});++-- | __Required.__ The 'workflowId' of the workflow execution to be signaled.+sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text+sewedaWorkflowId = lens _sewedaWorkflowId (\ s a -> s{_sewedaWorkflowId = a});++-- | __Required.__ The name of the signal.The target workflow execution will+-- use the signal name and input to process the signal.+sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text+sewedaSignalName = lens _sewedaSignalName (\ s a -> s{_sewedaSignalName = a});++instance ToJSON+         SignalExternalWorkflowExecutionDecisionAttributes+         where+        toJSON+          SignalExternalWorkflowExecutionDecisionAttributes'{..}+          = object+              ["control" .= _sewedaControl,+               "input" .= _sewedaInput, "runId" .= _sewedaRunId,+               "workflowId" .= _sewedaWorkflowId,+               "signalName" .= _sewedaSignalName]++-- | Provides details of the 'SignalExternalWorkflowExecutionFailed' event.+--+-- /See:/ 'signalExternalWorkflowExecutionFailedEventAttributes' smart constructor.+data SignalExternalWorkflowExecutionFailedEventAttributes = SignalExternalWorkflowExecutionFailedEventAttributes'+    { _sewefeaControl                      :: !(Maybe Text)+    , _sewefeaRunId                        :: !(Maybe Text)+    , _sewefeaWorkflowId                   :: !Text+    , _sewefeaCause                        :: !SignalExternalWorkflowExecutionFailedCause+    , _sewefeaInitiatedEventId             :: !Integer+    , _sewefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sewefeaControl'+--+-- * 'sewefeaRunId'+--+-- * 'sewefeaWorkflowId'+--+-- * 'sewefeaCause'+--+-- * 'sewefeaInitiatedEventId'+--+-- * 'sewefeaDecisionTaskCompletedEventId'+signalExternalWorkflowExecutionFailedEventAttributes+    :: Text -- ^ 'sewefeaWorkflowId'+    -> SignalExternalWorkflowExecutionFailedCause -- ^ 'sewefeaCause'+    -> Integer -- ^ 'sewefeaInitiatedEventId'+    -> Integer -- ^ 'sewefeaDecisionTaskCompletedEventId'+    -> SignalExternalWorkflowExecutionFailedEventAttributes+signalExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    SignalExternalWorkflowExecutionFailedEventAttributes'+    { _sewefeaControl = Nothing+    , _sewefeaRunId = Nothing+    , _sewefeaWorkflowId = pWorkflowId_+    , _sewefeaCause = pCause_+    , _sewefeaInitiatedEventId = pInitiatedEventId_+    , _sewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+sewefeaControl = lens _sewefeaControl (\ s a -> s{_sewefeaControl = a});++-- | The 'runId' of the external workflow execution that the signal was being+-- delivered to.+sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+sewefeaRunId = lens _sewefeaRunId (\ s a -> s{_sewefeaRunId = a});++-- | The 'workflowId' of the external workflow execution that the signal was+-- being delivered to.+sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text+sewefeaWorkflowId = lens _sewefeaWorkflowId (\ s a -> s{_sewefeaWorkflowId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause+sewefeaCause = lens _sewefeaCause (\ s a -> s{_sewefeaCause = a});++-- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event+-- corresponding to the 'SignalExternalWorkflowExecution' decision to+-- request this signal. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+sewefeaInitiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer+sewefeaInitiatedEventId = lens _sewefeaInitiatedEventId (\ s a -> s{_sewefeaInitiatedEventId = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'SignalExternalWorkflowExecution'+-- decision for this signal. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+sewefeaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer+sewefeaDecisionTaskCompletedEventId = lens _sewefeaDecisionTaskCompletedEventId (\ s a -> s{_sewefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         SignalExternalWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "SignalExternalWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 SignalExternalWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "cause")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'SignalExternalWorkflowExecutionInitiated'+-- event.+--+-- /See:/ 'signalExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.+data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes'+    { _seweieaControl                      :: !(Maybe Text)+    , _seweieaInput                        :: !(Maybe Text)+    , _seweieaRunId                        :: !(Maybe Text)+    , _seweieaWorkflowId                   :: !Text+    , _seweieaSignalName                   :: !Text+    , _seweieaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'seweieaControl'+--+-- * 'seweieaInput'+--+-- * 'seweieaRunId'+--+-- * 'seweieaWorkflowId'+--+-- * 'seweieaSignalName'+--+-- * 'seweieaDecisionTaskCompletedEventId'+signalExternalWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'seweieaWorkflowId'+    -> Text -- ^ 'seweieaSignalName'+    -> Integer -- ^ 'seweieaDecisionTaskCompletedEventId'+    -> SignalExternalWorkflowExecutionInitiatedEventAttributes+signalExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pSignalName_ pDecisionTaskCompletedEventId_ =+    SignalExternalWorkflowExecutionInitiatedEventAttributes'+    { _seweieaControl = Nothing+    , _seweieaInput = Nothing+    , _seweieaRunId = Nothing+    , _seweieaWorkflowId = pWorkflowId_+    , _seweieaSignalName = pSignalName_+    , _seweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ data attached to the event that can be used by the decider+-- in subsequent decision tasks.+seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaControl = lens _seweieaControl (\ s a -> s{_seweieaControl = a});++-- | Input provided to the signal (if any).+seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaInput = lens _seweieaInput (\ s a -> s{_seweieaInput = a});++-- | The 'runId' of the external workflow execution to send the signal to.+seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaRunId = lens _seweieaRunId (\ s a -> s{_seweieaRunId = a});++-- | The 'workflowId' of the external workflow execution.+seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text+seweieaWorkflowId = lens _seweieaWorkflowId (\ s a -> s{_seweieaWorkflowId = a});++-- | The name of the signal.+seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text+seweieaSignalName = lens _seweieaSignalName (\ s a -> s{_seweieaSignalName = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'SignalExternalWorkflowExecution'+-- decision for this signal. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+seweieaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Integer+seweieaDecisionTaskCompletedEventId = lens _seweieaDecisionTaskCompletedEventId (\ s a -> s{_seweieaDecisionTaskCompletedEventId = a});++instance FromJSON+         SignalExternalWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "SignalExternalWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 SignalExternalWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "input") <*>+                     (x .:? "runId")+                     <*> (x .: "workflowId")+                     <*> (x .: "signalName")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'StartChildWorkflowExecution' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   Constrain the following parameters by using a 'Condition' element+--     with the appropriate keys.+--     -   'tagList.member.N': The key is \"swf:tagList.N\" where N is the+--         tag number from 0 to 4, inclusive.+--     -   'taskList': String constraint. The key is 'swf:taskList.name'.+--     -   'workflowType.name': String constraint. The key is+--         'swf:workflowType.name'.+--     -   'workflowType.version': String constraint. The key is+--         'swf:workflowType.version'.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'startChildWorkflowExecutionDecisionAttributes' smart constructor.+data StartChildWorkflowExecutionDecisionAttributes = StartChildWorkflowExecutionDecisionAttributes'+    { _scwedaControl                      :: !(Maybe Text)+    , _scwedaTagList                      :: !(Maybe [Text])+    , _scwedaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _scwedaLambdaRole                   :: !(Maybe Text)+    , _scwedaInput                        :: !(Maybe Text)+    , _scwedaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _scwedaTaskList                     :: !(Maybe TaskList)+    , _scwedaTaskPriority                 :: !(Maybe Text)+    , _scwedaChildPolicy                  :: !(Maybe ChildPolicy)+    , _scwedaWorkflowType                 :: !WorkflowType+    , _scwedaWorkflowId                   :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scwedaControl'+--+-- * 'scwedaTagList'+--+-- * 'scwedaTaskStartToCloseTimeout'+--+-- * 'scwedaLambdaRole'+--+-- * 'scwedaInput'+--+-- * 'scwedaExecutionStartToCloseTimeout'+--+-- * 'scwedaTaskList'+--+-- * 'scwedaTaskPriority'+--+-- * 'scwedaChildPolicy'+--+-- * 'scwedaWorkflowType'+--+-- * 'scwedaWorkflowId'+startChildWorkflowExecutionDecisionAttributes+    :: WorkflowType -- ^ 'scwedaWorkflowType'+    -> Text -- ^ 'scwedaWorkflowId'+    -> StartChildWorkflowExecutionDecisionAttributes+startChildWorkflowExecutionDecisionAttributes pWorkflowType_ pWorkflowId_ =+    StartChildWorkflowExecutionDecisionAttributes'+    { _scwedaControl = Nothing+    , _scwedaTagList = Nothing+    , _scwedaTaskStartToCloseTimeout = Nothing+    , _scwedaLambdaRole = Nothing+    , _scwedaInput = Nothing+    , _scwedaExecutionStartToCloseTimeout = Nothing+    , _scwedaTaskList = Nothing+    , _scwedaTaskPriority = Nothing+    , _scwedaChildPolicy = Nothing+    , _scwedaWorkflowType = pWorkflowType_+    , _scwedaWorkflowId = pWorkflowId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks. This data is not sent to the child+-- workflow execution.+scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaControl = lens _scwedaControl (\ s a -> s{_scwedaControl = a});++-- | The list of tags to associate with the child workflow execution. A+-- maximum of 5 tags can be specified. You can list workflow executions+-- with a specific tag by calling ListOpenWorkflowExecutions or+-- ListClosedWorkflowExecutions and specifying a TagFilter.+scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]+scwedaTagList = lens _scwedaTagList (\ s a -> s{_scwedaTagList = a}) . _Default . _Coerce;++-- | Specifies the maximum duration of decision tasks for this workflow+-- execution. This parameter overrides the 'defaultTaskStartToCloseTimout'+-- specified when registering the workflow type using RegisterWorkflowType.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- A task start-to-close timeout for this workflow execution must be+-- specified either as a default for the workflow type or through this+-- parameter. If neither this parameter is set nor a default task+-- start-to-close timeout was specified at registration time then a fault+-- will be returned.+scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaTaskStartToCloseTimeout = lens _scwedaTaskStartToCloseTimeout (\ s a -> s{_scwedaTaskStartToCloseTimeout = a});++-- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda+-- functions.+--+-- In order for this workflow execution to invoke AWS Lambda functions, an+-- appropriate IAM role must be specified either as a default for the+-- workflow type or through this field.+scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaLambdaRole = lens _scwedaLambdaRole (\ s a -> s{_scwedaLambdaRole = a});++-- | The input to be provided to the workflow execution.+scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaInput = lens _scwedaInput (\ s a -> s{_scwedaInput = a});++-- | The total duration for this workflow execution. This overrides the+-- defaultExecutionStartToCloseTimeout specified when registering the+-- workflow type.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+--+-- An execution start-to-close timeout for this workflow execution must be+-- specified either as a default for the workflow type or through this+-- parameter. If neither this parameter is set nor a default execution+-- start-to-close timeout was specified at registration time then a fault+-- will be returned.+scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaExecutionStartToCloseTimeout = lens _scwedaExecutionStartToCloseTimeout (\ s a -> s{_scwedaExecutionStartToCloseTimeout = a});++-- | The name of the task list to be used for decision tasks of the child+-- workflow execution.+--+-- A task list for this workflow execution must be specified either as a+-- default for the workflow type or through this parameter. If neither this+-- parameter is set nor a default task list was specified at registration+-- time then a fault will be returned.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)+scwedaTaskList = lens _scwedaTaskList (\ s a -> s{_scwedaTaskList = a});++-- | /Optional./ A task priority that, if set, specifies the priority for a+-- decision task of this workflow execution. This overrides the+-- defaultTaskPriority specified when registering the workflow type. Valid+-- values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaTaskPriority = lens _scwedaTaskPriority (\ s a -> s{_scwedaTaskPriority = a});++-- | /Optional./ If set, specifies the policy to use for the child workflow+-- executions if the workflow execution being started is terminated by+-- calling the TerminateWorkflowExecution action explicitly or due to an+-- expired timeout. This policy overrides the default child policy+-- specified when registering the workflow type using RegisterWorkflowType.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+--+-- A child policy for this workflow execution must be specified either as a+-- default for the workflow type or through this parameter. If neither this+-- parameter is set nor a default child policy was specified at+-- registration time then a fault will be returned.+scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)+scwedaChildPolicy = lens _scwedaChildPolicy (\ s a -> s{_scwedaChildPolicy = a});++-- | __Required.__ The type of the workflow execution to be started.+scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType+scwedaWorkflowType = lens _scwedaWorkflowType (\ s a -> s{_scwedaWorkflowType = a});++-- | __Required.__ The 'workflowId' of the workflow execution.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text+scwedaWorkflowId = lens _scwedaWorkflowId (\ s a -> s{_scwedaWorkflowId = a});++instance ToJSON+         StartChildWorkflowExecutionDecisionAttributes where+        toJSON+          StartChildWorkflowExecutionDecisionAttributes'{..}+          = object+              ["control" .= _scwedaControl,+               "tagList" .= _scwedaTagList,+               "taskStartToCloseTimeout" .=+                 _scwedaTaskStartToCloseTimeout,+               "lambdaRole" .= _scwedaLambdaRole,+               "input" .= _scwedaInput,+               "executionStartToCloseTimeout" .=+                 _scwedaExecutionStartToCloseTimeout,+               "taskList" .= _scwedaTaskList,+               "taskPriority" .= _scwedaTaskPriority,+               "childPolicy" .= _scwedaChildPolicy,+               "workflowType" .= _scwedaWorkflowType,+               "workflowId" .= _scwedaWorkflowId]++-- | Provides details of the 'StartChildWorkflowExecutionFailed' event.+--+-- /See:/ 'startChildWorkflowExecutionFailedEventAttributes' smart constructor.+data StartChildWorkflowExecutionFailedEventAttributes = StartChildWorkflowExecutionFailedEventAttributes'+    { _scwefeaControl                      :: !(Maybe Text)+    , _scwefeaWorkflowType                 :: !WorkflowType+    , _scwefeaCause                        :: !StartChildWorkflowExecutionFailedCause+    , _scwefeaWorkflowId                   :: !Text+    , _scwefeaInitiatedEventId             :: !Integer+    , _scwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scwefeaControl'+--+-- * 'scwefeaWorkflowType'+--+-- * 'scwefeaCause'+--+-- * 'scwefeaWorkflowId'+--+-- * 'scwefeaInitiatedEventId'+--+-- * 'scwefeaDecisionTaskCompletedEventId'+startChildWorkflowExecutionFailedEventAttributes+    :: WorkflowType -- ^ 'scwefeaWorkflowType'+    -> StartChildWorkflowExecutionFailedCause -- ^ 'scwefeaCause'+    -> Text -- ^ 'scwefeaWorkflowId'+    -> Integer -- ^ 'scwefeaInitiatedEventId'+    -> Integer -- ^ 'scwefeaDecisionTaskCompletedEventId'+    -> StartChildWorkflowExecutionFailedEventAttributes+startChildWorkflowExecutionFailedEventAttributes pWorkflowType_ pCause_ pWorkflowId_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    StartChildWorkflowExecutionFailedEventAttributes'+    { _scwefeaControl = Nothing+    , _scwefeaWorkflowType = pWorkflowType_+    , _scwefeaCause = pCause_+    , _scwefeaWorkflowId = pWorkflowId_+    , _scwefeaInitiatedEventId = pInitiatedEventId_+    , _scwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)+scwefeaControl = lens _scwefeaControl (\ s a -> s{_scwefeaControl = a});++-- | The workflow type provided in the 'StartChildWorkflowExecution' decision+-- that failed.+scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType+scwefeaWorkflowType = lens _scwefeaWorkflowType (\ s a -> s{_scwefeaWorkflowType = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause+scwefeaCause = lens _scwefeaCause (\ s a -> s{_scwefeaCause = a});++-- | The 'workflowId' of the child workflow execution.+scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text+scwefeaWorkflowId = lens _scwefeaWorkflowId (\ s a -> s{_scwefeaWorkflowId = a});++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this child+-- workflow execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer+scwefeaInitiatedEventId = lens _scwefeaInitiatedEventId (\ s a -> s{_scwefeaInitiatedEventId = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'StartChildWorkflowExecution'+-- decision to request this child workflow execution. This information can+-- be useful for diagnosing problems by tracing back the cause of events.+scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer+scwefeaDecisionTaskCompletedEventId = lens _scwefeaDecisionTaskCompletedEventId (\ s a -> s{_scwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         StartChildWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "StartChildWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 StartChildWorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "control") <*> (x .: "workflowType") <*>+                     (x .: "cause")+                     <*> (x .: "workflowId")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'StartChildWorkflowExecutionInitiated' event.+--+-- /See:/ 'startChildWorkflowExecutionInitiatedEventAttributes' smart constructor.+data StartChildWorkflowExecutionInitiatedEventAttributes = StartChildWorkflowExecutionInitiatedEventAttributes'+    { _scweieaControl                      :: !(Maybe Text)+    , _scweieaTagList                      :: !(Maybe [Text])+    , _scweieaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _scweieaLambdaRole                   :: !(Maybe Text)+    , _scweieaInput                        :: !(Maybe Text)+    , _scweieaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _scweieaTaskPriority                 :: !(Maybe Text)+    , _scweieaWorkflowId                   :: !Text+    , _scweieaWorkflowType                 :: !WorkflowType+    , _scweieaTaskList                     :: !TaskList+    , _scweieaDecisionTaskCompletedEventId :: !Integer+    , _scweieaChildPolicy                  :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scweieaControl'+--+-- * 'scweieaTagList'+--+-- * 'scweieaTaskStartToCloseTimeout'+--+-- * 'scweieaLambdaRole'+--+-- * 'scweieaInput'+--+-- * 'scweieaExecutionStartToCloseTimeout'+--+-- * 'scweieaTaskPriority'+--+-- * 'scweieaWorkflowId'+--+-- * 'scweieaWorkflowType'+--+-- * 'scweieaTaskList'+--+-- * 'scweieaDecisionTaskCompletedEventId'+--+-- * 'scweieaChildPolicy'+startChildWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'scweieaWorkflowId'+    -> WorkflowType -- ^ 'scweieaWorkflowType'+    -> TaskList -- ^ 'scweieaTaskList'+    -> Integer -- ^ 'scweieaDecisionTaskCompletedEventId'+    -> ChildPolicy -- ^ 'scweieaChildPolicy'+    -> StartChildWorkflowExecutionInitiatedEventAttributes+startChildWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pWorkflowType_ pTaskList_ pDecisionTaskCompletedEventId_ pChildPolicy_ =+    StartChildWorkflowExecutionInitiatedEventAttributes'+    { _scweieaControl = Nothing+    , _scweieaTagList = Nothing+    , _scweieaTaskStartToCloseTimeout = Nothing+    , _scweieaLambdaRole = Nothing+    , _scweieaInput = Nothing+    , _scweieaExecutionStartToCloseTimeout = Nothing+    , _scweieaTaskPriority = Nothing+    , _scweieaWorkflowId = pWorkflowId_+    , _scweieaWorkflowType = pWorkflowType_+    , _scweieaTaskList = pTaskList_+    , _scweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _scweieaChildPolicy = pChildPolicy_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent decision tasks. This data is not sent to the activity.+scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaControl = lens _scweieaControl (\ s a -> s{_scweieaControl = a});++-- | The list of tags to associated with the child workflow execution.+scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]+scweieaTagList = lens _scweieaTagList (\ s a -> s{_scweieaTagList = a}) . _Default . _Coerce;++-- | The maximum duration allowed for the decision tasks for this workflow+-- execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaTaskStartToCloseTimeout = lens _scweieaTaskStartToCloseTimeout (\ s a -> s{_scweieaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking+-- AWS Lambda functions.+scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaLambdaRole = lens _scweieaLambdaRole (\ s a -> s{_scweieaLambdaRole = a});++-- | The inputs provided to the child workflow execution (if any).+scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaInput = lens _scweieaInput (\ s a -> s{_scweieaInput = a});++-- | The maximum duration for the child workflow execution. If the workflow+-- execution is not closed within this duration, it will be timed out and+-- force terminated.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaExecutionStartToCloseTimeout = lens _scweieaExecutionStartToCloseTimeout (\ s a -> s{_scweieaExecutionStartToCloseTimeout = a});++-- | /Optional./ The priority assigned for the decision tasks for this+-- workflow execution. Valid values are integers that range from Java\'s+-- 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647).+-- Higher numbers indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaTaskPriority = lens _scweieaTaskPriority (\ s a -> s{_scweieaTaskPriority = a});++-- | The 'workflowId' of the child workflow execution.+scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text+scweieaWorkflowId = lens _scweieaWorkflowId (\ s a -> s{_scweieaWorkflowId = a});++-- | The type of the child workflow execution.+scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType+scweieaWorkflowType = lens _scweieaWorkflowType (\ s a -> s{_scweieaWorkflowType = a});++-- | The name of the task list used for the decision tasks of the child+-- workflow execution.+scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList+scweieaTaskList = lens _scweieaTaskList (\ s a -> s{_scweieaTaskList = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'StartChildWorkflowExecution'+-- decision to request this child workflow execution. This information can+-- be useful for diagnosing problems by tracing back the cause of events.+scweieaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Integer+scweieaDecisionTaskCompletedEventId = lens _scweieaDecisionTaskCompletedEventId (\ s a -> s{_scweieaDecisionTaskCompletedEventId = a});++-- | The policy to use for the child workflow executions if this execution+-- gets terminated by explicitly calling the TerminateWorkflowExecution+-- action or due to an expired timeout.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy+scweieaChildPolicy = lens _scweieaChildPolicy (\ s a -> s{_scweieaChildPolicy = a});++instance FromJSON+         StartChildWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "StartChildWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 StartChildWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "tagList" .!= mempty)+                     <*> (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .: "workflowId")+                     <*> (x .: "workflowType")+                     <*> (x .: "taskList")+                     <*> (x .: "decisionTaskCompletedEventId")+                     <*> (x .: "childPolicy"))++-- | Provides details for the 'StartLambdaFunctionFailed' event.+--+-- /See:/ 'startLambdaFunctionFailedEventAttributes' smart constructor.+data StartLambdaFunctionFailedEventAttributes = StartLambdaFunctionFailedEventAttributes'+    { _sScheduledEventId :: !(Maybe Integer)+    , _sCause            :: !(Maybe StartLambdaFunctionFailedCause)+    , _sMessage          :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sScheduledEventId'+--+-- * 'sCause'+--+-- * 'sMessage'+startLambdaFunctionFailedEventAttributes+    :: StartLambdaFunctionFailedEventAttributes+startLambdaFunctionFailedEventAttributes =+    StartLambdaFunctionFailedEventAttributes'+    { _sScheduledEventId = Nothing+    , _sCause = Nothing+    , _sMessage = Nothing+    }++-- | The ID of the 'LambdaFunctionScheduled' event that was recorded when+-- this AWS Lambda function was scheduled. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event.+sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)+sScheduledEventId = lens _sScheduledEventId (\ s a -> s{_sScheduledEventId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)+sCause = lens _sCause (\ s a -> s{_sCause = a});++-- | The error message (if any).+sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)+sMessage = lens _sMessage (\ s a -> s{_sMessage = a});++instance FromJSON+         StartLambdaFunctionFailedEventAttributes where+        parseJSON+          = withObject+              "StartLambdaFunctionFailedEventAttributes"+              (\ x ->+                 StartLambdaFunctionFailedEventAttributes' <$>+                   (x .:? "scheduledEventId") <*> (x .:? "cause") <*>+                     (x .:? "message"))++-- | Provides details of the 'StartTimer' decision.+--+-- __Access Control__+--+-- You can use IAM policies to control this decision\'s access to Amazon+-- SWF resources as follows:+--+-- -   Use a 'Resource' element with the domain name to limit the action to+--     only specified domains.+-- -   Use an 'Action' element to allow or deny permission to call this+--     action.+-- -   You cannot use an IAM policy to constrain this action\'s parameters.+--+-- If the caller does not have sufficient permissions to invoke the action,+-- or the parameter values fall outside the specified constraints, the+-- action fails. The associated event attribute\'s __cause__ parameter will+-- be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,+-- see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+-- /See:/ 'startTimerDecisionAttributes' smart constructor.+data StartTimerDecisionAttributes = StartTimerDecisionAttributes'+    { _stdaControl            :: !(Maybe Text)+    , _stdaTimerId            :: !Text+    , _stdaStartToFireTimeout :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartTimerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stdaControl'+--+-- * 'stdaTimerId'+--+-- * 'stdaStartToFireTimeout'+startTimerDecisionAttributes+    :: Text -- ^ 'stdaTimerId'+    -> Text -- ^ 'stdaStartToFireTimeout'+    -> StartTimerDecisionAttributes+startTimerDecisionAttributes pTimerId_ pStartToFireTimeout_ =+    StartTimerDecisionAttributes'+    { _stdaControl = Nothing+    , _stdaTimerId = pTimerId_+    , _stdaStartToFireTimeout = pStartToFireTimeout_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks.+stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)+stdaControl = lens _stdaControl (\ s a -> s{_stdaControl = a});++-- | __Required.__ The unique ID of the timer.+--+-- The specified string must not start or end with whitespace. It must not+-- contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control+-- characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not+-- contain the literal string quotarnquot.+stdaTimerId :: Lens' StartTimerDecisionAttributes Text+stdaTimerId = lens _stdaTimerId (\ s a -> s{_stdaTimerId = a});++-- | __Required.__ The duration to wait before firing the timer.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0.+stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text+stdaStartToFireTimeout = lens _stdaStartToFireTimeout (\ s a -> s{_stdaStartToFireTimeout = a});++instance ToJSON StartTimerDecisionAttributes where+        toJSON StartTimerDecisionAttributes'{..}+          = object+              ["control" .= _stdaControl,+               "timerId" .= _stdaTimerId,+               "startToFireTimeout" .= _stdaStartToFireTimeout]++-- | Provides details of the 'StartTimerFailed' event.+--+-- /See:/ 'startTimerFailedEventAttributes' smart constructor.+data StartTimerFailedEventAttributes = StartTimerFailedEventAttributes'+    { _stfeaTimerId                      :: !Text+    , _stfeaCause                        :: !StartTimerFailedCause+    , _stfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartTimerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stfeaTimerId'+--+-- * 'stfeaCause'+--+-- * 'stfeaDecisionTaskCompletedEventId'+startTimerFailedEventAttributes+    :: Text -- ^ 'stfeaTimerId'+    -> StartTimerFailedCause -- ^ 'stfeaCause'+    -> Integer -- ^ 'stfeaDecisionTaskCompletedEventId'+    -> StartTimerFailedEventAttributes+startTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =+    StartTimerFailedEventAttributes'+    { _stfeaTimerId = pTimerId_+    , _stfeaCause = pCause_+    , _stfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The timerId provided in the 'StartTimer' decision that failed.+stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text+stfeaTimerId = lens _stfeaTimerId (\ s a -> s{_stfeaTimerId = a});++-- | The cause of the failure. This information is generated by the system+-- and can be useful for diagnostic purposes.+--+-- If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed+-- because it lacked sufficient permissions. For details and example IAM+-- policies, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause+stfeaCause = lens _stfeaCause (\ s a -> s{_stfeaCause = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'StartTimer' decision for this+-- activity task. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+stfeaDecisionTaskCompletedEventId :: Lens' StartTimerFailedEventAttributes Integer+stfeaDecisionTaskCompletedEventId = lens _stfeaDecisionTaskCompletedEventId (\ s a -> s{_stfeaDecisionTaskCompletedEventId = a});++instance FromJSON StartTimerFailedEventAttributes+         where+        parseJSON+          = withObject "StartTimerFailedEventAttributes"+              (\ x ->+                 StartTimerFailedEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Used to filter the workflow executions in visibility APIs based on a+-- tag.+--+-- /See:/ 'tagFilter' smart constructor.+newtype TagFilter = TagFilter'+    { _tfTag :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TagFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tfTag'+tagFilter+    :: Text -- ^ 'tfTag'+    -> TagFilter+tagFilter pTag_ =+    TagFilter'+    { _tfTag = pTag_+    }++-- | __Required.__ Specifies the tag that must be associated with the+-- execution for it to meet the filter criteria.+tfTag :: Lens' TagFilter Text+tfTag = lens _tfTag (\ s a -> s{_tfTag = a});++instance ToJSON TagFilter where+        toJSON TagFilter'{..} = object ["tag" .= _tfTag]++-- | Represents a task list.+--+-- /See:/ 'taskList' smart constructor.+newtype TaskList = TaskList'+    { _tlName :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TaskList' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tlName'+taskList+    :: Text -- ^ 'tlName'+    -> TaskList+taskList pName_ =+    TaskList'+    { _tlName = pName_+    }++-- | The name of the task list.+tlName :: Lens' TaskList Text+tlName = lens _tlName (\ s a -> s{_tlName = a});++instance FromJSON TaskList where+        parseJSON+          = withObject "TaskList"+              (\ x -> TaskList' <$> (x .: "name"))++instance ToJSON TaskList where+        toJSON TaskList'{..} = object ["name" .= _tlName]++-- | Provides details of the 'TimerCanceled' event.+--+-- /See:/ 'timerCanceledEventAttributes' smart constructor.+data TimerCanceledEventAttributes = TimerCanceledEventAttributes'+    { _tceaTimerId                      :: !Text+    , _tceaStartedEventId               :: !Integer+    , _tceaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tceaTimerId'+--+-- * 'tceaStartedEventId'+--+-- * 'tceaDecisionTaskCompletedEventId'+timerCanceledEventAttributes+    :: Text -- ^ 'tceaTimerId'+    -> Integer -- ^ 'tceaStartedEventId'+    -> Integer -- ^ 'tceaDecisionTaskCompletedEventId'+    -> TimerCanceledEventAttributes+timerCanceledEventAttributes pTimerId_ pStartedEventId_ pDecisionTaskCompletedEventId_ =+    TimerCanceledEventAttributes'+    { _tceaTimerId = pTimerId_+    , _tceaStartedEventId = pStartedEventId_+    , _tceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The unique ID of the timer that was canceled.+tceaTimerId :: Lens' TimerCanceledEventAttributes Text+tceaTimerId = lens _tceaTimerId (\ s a -> s{_tceaTimerId = a});++-- | The ID of the 'TimerStarted' event that was recorded when this timer was+-- started. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+tceaStartedEventId :: Lens' TimerCanceledEventAttributes Integer+tceaStartedEventId = lens _tceaStartedEventId (\ s a -> s{_tceaStartedEventId = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CancelTimer' decision to cancel this+-- timer. This information can be useful for diagnosing problems by tracing+-- back the chain of events leading up to this event.+tceaDecisionTaskCompletedEventId :: Lens' TimerCanceledEventAttributes Integer+tceaDecisionTaskCompletedEventId = lens _tceaDecisionTaskCompletedEventId (\ s a -> s{_tceaDecisionTaskCompletedEventId = a});++instance FromJSON TimerCanceledEventAttributes where+        parseJSON+          = withObject "TimerCanceledEventAttributes"+              (\ x ->+                 TimerCanceledEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "startedEventId") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'TimerFired' event.+--+-- /See:/ 'timerFiredEventAttributes' smart constructor.+data TimerFiredEventAttributes = TimerFiredEventAttributes'+    { _tfeaTimerId        :: !Text+    , _tfeaStartedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerFiredEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tfeaTimerId'+--+-- * 'tfeaStartedEventId'+timerFiredEventAttributes+    :: Text -- ^ 'tfeaTimerId'+    -> Integer -- ^ 'tfeaStartedEventId'+    -> TimerFiredEventAttributes+timerFiredEventAttributes pTimerId_ pStartedEventId_ =+    TimerFiredEventAttributes'+    { _tfeaTimerId = pTimerId_+    , _tfeaStartedEventId = pStartedEventId_+    }++-- | The unique ID of the timer that fired.+tfeaTimerId :: Lens' TimerFiredEventAttributes Text+tfeaTimerId = lens _tfeaTimerId (\ s a -> s{_tfeaTimerId = a});++-- | The ID of the 'TimerStarted' event that was recorded when this timer was+-- started. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+tfeaStartedEventId :: Lens' TimerFiredEventAttributes Integer+tfeaStartedEventId = lens _tfeaStartedEventId (\ s a -> s{_tfeaStartedEventId = a});++instance FromJSON TimerFiredEventAttributes where+        parseJSON+          = withObject "TimerFiredEventAttributes"+              (\ x ->+                 TimerFiredEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "startedEventId"))++-- | Provides details of the 'TimerStarted' event.+--+-- /See:/ 'timerStartedEventAttributes' smart constructor.+data TimerStartedEventAttributes = TimerStartedEventAttributes'+    { _tseaControl                      :: !(Maybe Text)+    , _tseaTimerId                      :: !Text+    , _tseaStartToFireTimeout           :: !Text+    , _tseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tseaControl'+--+-- * 'tseaTimerId'+--+-- * 'tseaStartToFireTimeout'+--+-- * 'tseaDecisionTaskCompletedEventId'+timerStartedEventAttributes+    :: Text -- ^ 'tseaTimerId'+    -> Text -- ^ 'tseaStartToFireTimeout'+    -> Integer -- ^ 'tseaDecisionTaskCompletedEventId'+    -> TimerStartedEventAttributes+timerStartedEventAttributes pTimerId_ pStartToFireTimeout_ pDecisionTaskCompletedEventId_ =+    TimerStartedEventAttributes'+    { _tseaControl = Nothing+    , _tseaTimerId = pTimerId_+    , _tseaStartToFireTimeout = pStartToFireTimeout_+    , _tseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider+-- in subsequent workflow tasks.+tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)+tseaControl = lens _tseaControl (\ s a -> s{_tseaControl = a});++-- | The unique ID of the timer that was started.+tseaTimerId :: Lens' TimerStartedEventAttributes Text+tseaTimerId = lens _tseaTimerId (\ s a -> s{_tseaTimerId = a});++-- | The duration of time after which the timer will fire.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0.+tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text+tseaStartToFireTimeout = lens _tseaStartToFireTimeout (\ s a -> s{_tseaStartToFireTimeout = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'StartTimer' decision for this+-- activity task. This information can be useful for diagnosing problems by+-- tracing back the chain of events leading up to this event.+tseaDecisionTaskCompletedEventId :: Lens' TimerStartedEventAttributes Integer+tseaDecisionTaskCompletedEventId = lens _tseaDecisionTaskCompletedEventId (\ s a -> s{_tseaDecisionTaskCompletedEventId = a});++instance FromJSON TimerStartedEventAttributes where+        parseJSON+          = withObject "TimerStartedEventAttributes"+              (\ x ->+                 TimerStartedEventAttributes' <$>+                   (x .:? "control") <*> (x .: "timerId") <*>+                     (x .: "startToFireTimeout")+                     <*> (x .: "decisionTaskCompletedEventId"))++-- | Represents a workflow execution.+--+-- /See:/ 'workflowExecution' smart constructor.+data WorkflowExecution = WorkflowExecution'+    { _weWorkflowId :: !Text+    , _weRunId      :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecution' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weWorkflowId'+--+-- * 'weRunId'+workflowExecution+    :: Text -- ^ 'weWorkflowId'+    -> Text -- ^ 'weRunId'+    -> WorkflowExecution+workflowExecution pWorkflowId_ pRunId_ =+    WorkflowExecution'+    { _weWorkflowId = pWorkflowId_+    , _weRunId = pRunId_+    }++-- | The user defined identifier associated with the workflow execution.+weWorkflowId :: Lens' WorkflowExecution Text+weWorkflowId = lens _weWorkflowId (\ s a -> s{_weWorkflowId = a});++-- | A system-generated unique identifier for the workflow execution.+weRunId :: Lens' WorkflowExecution Text+weRunId = lens _weRunId (\ s a -> s{_weRunId = a});++instance FromJSON WorkflowExecution where+        parseJSON+          = withObject "WorkflowExecution"+              (\ x ->+                 WorkflowExecution' <$>+                   (x .: "workflowId") <*> (x .: "runId"))++instance ToJSON WorkflowExecution where+        toJSON WorkflowExecution'{..}+          = object+              ["workflowId" .= _weWorkflowId, "runId" .= _weRunId]++-- | Provides details of the 'WorkflowExecutionCancelRequested' event.+--+-- /See:/ 'workflowExecutionCancelRequestedEventAttributes' smart constructor.+data WorkflowExecutionCancelRequestedEventAttributes = WorkflowExecutionCancelRequestedEventAttributes'+    { _wecreaExternalWorkflowExecution :: !(Maybe WorkflowExecution)+    , _wecreaExternalInitiatedEventId  :: !(Maybe Integer)+    , _wecreaCause                     :: !(Maybe WorkflowExecutionCancelRequestedCause)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecreaExternalWorkflowExecution'+--+-- * 'wecreaExternalInitiatedEventId'+--+-- * 'wecreaCause'+workflowExecutionCancelRequestedEventAttributes+    :: WorkflowExecutionCancelRequestedEventAttributes+workflowExecutionCancelRequestedEventAttributes =+    WorkflowExecutionCancelRequestedEventAttributes'+    { _wecreaExternalWorkflowExecution = Nothing+    , _wecreaExternalInitiatedEventId = Nothing+    , _wecreaCause = Nothing+    }++-- | The external workflow execution for which the cancellation was+-- requested.+wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)+wecreaExternalWorkflowExecution = lens _wecreaExternalWorkflowExecution (\ s a -> s{_wecreaExternalWorkflowExecution = a});++-- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event+-- corresponding to the 'RequestCancelExternalWorkflowExecution' decision+-- to cancel this workflow execution.The source event with this ID can be+-- found in the history of the source workflow execution. This information+-- can be useful for diagnosing problems by tracing back the chain of+-- events leading up to this event.+wecreaExternalInitiatedEventId :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe Integer)+wecreaExternalInitiatedEventId = lens _wecreaExternalInitiatedEventId (\ s a -> s{_wecreaExternalInitiatedEventId = a});++-- | If set, indicates that the request to cancel the workflow execution was+-- automatically generated, and specifies the cause. This happens if the+-- parent workflow execution times out or is terminated, and the child+-- policy is set to cancel child executions.+wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)+wecreaCause = lens _wecreaCause (\ s a -> s{_wecreaCause = a});++instance FromJSON+         WorkflowExecutionCancelRequestedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCancelRequestedEventAttributes"+              (\ x ->+                 WorkflowExecutionCancelRequestedEventAttributes' <$>+                   (x .:? "externalWorkflowExecution") <*>+                     (x .:? "externalInitiatedEventId")+                     <*> (x .:? "cause"))++-- | Provides details of the 'WorkflowExecutionCanceled' event.+--+-- /See:/ 'workflowExecutionCanceledEventAttributes' smart constructor.+data WorkflowExecutionCanceledEventAttributes = WorkflowExecutionCanceledEventAttributes'+    { _wDetails                      :: !(Maybe Text)+    , _wDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wDetails'+--+-- * 'wDecisionTaskCompletedEventId'+workflowExecutionCanceledEventAttributes+    :: Integer -- ^ 'wDecisionTaskCompletedEventId'+    -> WorkflowExecutionCanceledEventAttributes+workflowExecutionCanceledEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionCanceledEventAttributes'+    { _wDetails = Nothing+    , _wDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Details for the cancellation (if any).+wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)+wDetails = lens _wDetails (\ s a -> s{_wDetails = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CancelWorkflowExecution' decision+-- for this cancellation request. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+wDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer+wDecisionTaskCompletedEventId = lens _wDecisionTaskCompletedEventId (\ s a -> s{_wDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionCanceledEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCanceledEventAttributes"+              (\ x ->+                 WorkflowExecutionCanceledEventAttributes' <$>+                   (x .:? "details") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Provides details of the 'WorkflowExecutionCompleted' event.+--+-- /See:/ 'workflowExecutionCompletedEventAttributes' smart constructor.+data WorkflowExecutionCompletedEventAttributes = WorkflowExecutionCompletedEventAttributes'+    { _weceaResult                       :: !(Maybe Text)+    , _weceaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weceaResult'+--+-- * 'weceaDecisionTaskCompletedEventId'+workflowExecutionCompletedEventAttributes+    :: Integer -- ^ 'weceaDecisionTaskCompletedEventId'+    -> WorkflowExecutionCompletedEventAttributes+workflowExecutionCompletedEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionCompletedEventAttributes'+    { _weceaResult = Nothing+    , _weceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The result produced by the workflow execution upon successful+-- completion.+weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)+weceaResult = lens _weceaResult (\ s a -> s{_weceaResult = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'CompleteWorkflowExecution' decision+-- to complete this execution. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+weceaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCompletedEventAttributes Integer+weceaDecisionTaskCompletedEventId = lens _weceaDecisionTaskCompletedEventId (\ s a -> s{_weceaDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionCompletedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCompletedEventAttributes"+              (\ x ->+                 WorkflowExecutionCompletedEventAttributes' <$>+                   (x .:? "result") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | The configuration settings for a workflow execution including timeout+-- values, tasklist etc. These configuration settings are determined from+-- the defaults specified when registering the workflow type and those+-- specified when starting the workflow execution.+--+-- /See:/ 'workflowExecutionConfiguration' smart constructor.+data WorkflowExecutionConfiguration = WorkflowExecutionConfiguration'+    { _wecLambdaRole                   :: !(Maybe Text)+    , _wecTaskPriority                 :: !(Maybe Text)+    , _wecTaskStartToCloseTimeout      :: !Text+    , _wecExecutionStartToCloseTimeout :: !Text+    , _wecTaskList                     :: !TaskList+    , _wecChildPolicy                  :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecLambdaRole'+--+-- * 'wecTaskPriority'+--+-- * 'wecTaskStartToCloseTimeout'+--+-- * 'wecExecutionStartToCloseTimeout'+--+-- * 'wecTaskList'+--+-- * 'wecChildPolicy'+workflowExecutionConfiguration+    :: Text -- ^ 'wecTaskStartToCloseTimeout'+    -> Text -- ^ 'wecExecutionStartToCloseTimeout'+    -> TaskList -- ^ 'wecTaskList'+    -> ChildPolicy -- ^ 'wecChildPolicy'+    -> WorkflowExecutionConfiguration+workflowExecutionConfiguration pTaskStartToCloseTimeout_ pExecutionStartToCloseTimeout_ pTaskList_ pChildPolicy_ =+    WorkflowExecutionConfiguration'+    { _wecLambdaRole = Nothing+    , _wecTaskPriority = Nothing+    , _wecTaskStartToCloseTimeout = pTaskStartToCloseTimeout_+    , _wecExecutionStartToCloseTimeout = pExecutionStartToCloseTimeout_+    , _wecTaskList = pTaskList_+    , _wecChildPolicy = pChildPolicy_+    }++-- | The IAM role used by this workflow execution when invoking AWS Lambda+-- functions.+wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)+wecLambdaRole = lens _wecLambdaRole (\ s a -> s{_wecLambdaRole = a});++-- | The priority assigned to decision tasks for this workflow execution.+-- Valid values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)+wecTaskPriority = lens _wecTaskPriority (\ s a -> s{_wecTaskPriority = a});++-- | The maximum duration allowed for decision tasks for this workflow+-- execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text+wecTaskStartToCloseTimeout = lens _wecTaskStartToCloseTimeout (\ s a -> s{_wecTaskStartToCloseTimeout = a});++-- | The total duration for this workflow execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text+wecExecutionStartToCloseTimeout = lens _wecExecutionStartToCloseTimeout (\ s a -> s{_wecExecutionStartToCloseTimeout = a});++-- | The task list used for the decision tasks generated for this workflow+-- execution.+wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList+wecTaskList = lens _wecTaskList (\ s a -> s{_wecTaskList = a});++-- | The policy to use for the child workflow executions if this workflow+-- execution is terminated, by calling the TerminateWorkflowExecution+-- action explicitly or due to an expired timeout.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy+wecChildPolicy = lens _wecChildPolicy (\ s a -> s{_wecChildPolicy = a});++instance FromJSON WorkflowExecutionConfiguration+         where+        parseJSON+          = withObject "WorkflowExecutionConfiguration"+              (\ x ->+                 WorkflowExecutionConfiguration' <$>+                   (x .:? "lambdaRole") <*> (x .:? "taskPriority") <*>+                     (x .: "taskStartToCloseTimeout")+                     <*> (x .: "executionStartToCloseTimeout")+                     <*> (x .: "taskList")+                     <*> (x .: "childPolicy"))++-- | Provides details of the 'WorkflowExecutionContinuedAsNew' event.+--+-- /See:/ 'workflowExecutionContinuedAsNewEventAttributes' smart constructor.+data WorkflowExecutionContinuedAsNewEventAttributes = WorkflowExecutionContinuedAsNewEventAttributes'+    { _wecaneaTagList                      :: !(Maybe [Text])+    , _wecaneaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _wecaneaLambdaRole                   :: !(Maybe Text)+    , _wecaneaInput                        :: !(Maybe Text)+    , _wecaneaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _wecaneaTaskPriority                 :: !(Maybe Text)+    , _wecaneaDecisionTaskCompletedEventId :: !Integer+    , _wecaneaNewExecutionRunId            :: !Text+    , _wecaneaTaskList                     :: !TaskList+    , _wecaneaChildPolicy                  :: !ChildPolicy+    , _wecaneaWorkflowType                 :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionContinuedAsNewEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecaneaTagList'+--+-- * 'wecaneaTaskStartToCloseTimeout'+--+-- * 'wecaneaLambdaRole'+--+-- * 'wecaneaInput'+--+-- * 'wecaneaExecutionStartToCloseTimeout'+--+-- * 'wecaneaTaskPriority'+--+-- * 'wecaneaDecisionTaskCompletedEventId'+--+-- * 'wecaneaNewExecutionRunId'+--+-- * 'wecaneaTaskList'+--+-- * 'wecaneaChildPolicy'+--+-- * 'wecaneaWorkflowType'+workflowExecutionContinuedAsNewEventAttributes+    :: Integer -- ^ 'wecaneaDecisionTaskCompletedEventId'+    -> Text -- ^ 'wecaneaNewExecutionRunId'+    -> TaskList -- ^ 'wecaneaTaskList'+    -> ChildPolicy -- ^ 'wecaneaChildPolicy'+    -> WorkflowType -- ^ 'wecaneaWorkflowType'+    -> WorkflowExecutionContinuedAsNewEventAttributes+workflowExecutionContinuedAsNewEventAttributes pDecisionTaskCompletedEventId_ pNewExecutionRunId_ pTaskList_ pChildPolicy_ pWorkflowType_ =+    WorkflowExecutionContinuedAsNewEventAttributes'+    { _wecaneaTagList = Nothing+    , _wecaneaTaskStartToCloseTimeout = Nothing+    , _wecaneaLambdaRole = Nothing+    , _wecaneaInput = Nothing+    , _wecaneaExecutionStartToCloseTimeout = Nothing+    , _wecaneaTaskPriority = Nothing+    , _wecaneaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _wecaneaNewExecutionRunId = pNewExecutionRunId_+    , _wecaneaTaskList = pTaskList_+    , _wecaneaChildPolicy = pChildPolicy_+    , _wecaneaWorkflowType = pWorkflowType_+    }++-- | The list of tags associated with the new workflow execution.+wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]+wecaneaTagList = lens _wecaneaTagList (\ s a -> s{_wecaneaTagList = a}) . _Default . _Coerce;++-- | The maximum duration of decision tasks for the new workflow execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaTaskStartToCloseTimeout = lens _wecaneaTaskStartToCloseTimeout (\ s a -> s{_wecaneaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking+-- AWS Lambda functions.+wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaLambdaRole = lens _wecaneaLambdaRole (\ s a -> s{_wecaneaLambdaRole = a});++-- | The input provided to the new workflow execution.+wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaInput = lens _wecaneaInput (\ s a -> s{_wecaneaInput = a});++-- | The total duration allowed for the new workflow execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaExecutionStartToCloseTimeout = lens _wecaneaExecutionStartToCloseTimeout (\ s a -> s{_wecaneaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaTaskPriority = lens _wecaneaTaskPriority (\ s a -> s{_wecaneaTaskPriority = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'ContinueAsNewWorkflowExecution'+-- decision that started this execution. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+wecaneaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Integer+wecaneaDecisionTaskCompletedEventId = lens _wecaneaDecisionTaskCompletedEventId (\ s a -> s{_wecaneaDecisionTaskCompletedEventId = a});++-- | The 'runId' of the new workflow execution.+wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text+wecaneaNewExecutionRunId = lens _wecaneaNewExecutionRunId (\ s a -> s{_wecaneaNewExecutionRunId = a});++-- | Undocumented member.+wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList+wecaneaTaskList = lens _wecaneaTaskList (\ s a -> s{_wecaneaTaskList = a});++-- | The policy to use for the child workflow executions of the new execution+-- if it is terminated by calling the TerminateWorkflowExecution action+-- explicitly or due to an expired timeout.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy+wecaneaChildPolicy = lens _wecaneaChildPolicy (\ s a -> s{_wecaneaChildPolicy = a});++-- | Undocumented member.+wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType+wecaneaWorkflowType = lens _wecaneaWorkflowType (\ s a -> s{_wecaneaWorkflowType = a});++instance FromJSON+         WorkflowExecutionContinuedAsNewEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionContinuedAsNewEventAttributes"+              (\ x ->+                 WorkflowExecutionContinuedAsNewEventAttributes' <$>+                   (x .:? "tagList" .!= mempty) <*>+                     (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .: "decisionTaskCompletedEventId")+                     <*> (x .: "newExecutionRunId")+                     <*> (x .: "taskList")+                     <*> (x .: "childPolicy")+                     <*> (x .: "workflowType"))++-- | Contains the count of workflow executions returned from+-- CountOpenWorkflowExecutions or CountClosedWorkflowExecutions+--+-- /See:/ 'workflowExecutionCount' smart constructor.+data WorkflowExecutionCount = WorkflowExecutionCount'+    { _wecTruncated :: !(Maybe Bool)+    , _wecCount     :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCount' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecTruncated'+--+-- * 'wecCount'+workflowExecutionCount+    :: Natural -- ^ 'wecCount'+    -> WorkflowExecutionCount+workflowExecutionCount pCount_ =+    WorkflowExecutionCount'+    { _wecTruncated = Nothing+    , _wecCount = _Nat # pCount_+    }++-- | If set to true, indicates that the actual count was more than the+-- maximum supported by this API and the count returned is the truncated+-- value.+wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)+wecTruncated = lens _wecTruncated (\ s a -> s{_wecTruncated = a});++-- | The number of workflow executions.+wecCount :: Lens' WorkflowExecutionCount Natural+wecCount = lens _wecCount (\ s a -> s{_wecCount = a}) . _Nat;++instance FromJSON WorkflowExecutionCount where+        parseJSON+          = withObject "WorkflowExecutionCount"+              (\ x ->+                 WorkflowExecutionCount' <$>+                   (x .:? "truncated") <*> (x .: "count"))++-- | Provides details of the 'WorkflowExecutionFailed' event.+--+-- /See:/ 'workflowExecutionFailedEventAttributes' smart constructor.+data WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes'+    { _wefeaReason                       :: !(Maybe Text)+    , _wefeaDetails                      :: !(Maybe Text)+    , _wefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wefeaReason'+--+-- * 'wefeaDetails'+--+-- * 'wefeaDecisionTaskCompletedEventId'+workflowExecutionFailedEventAttributes+    :: Integer -- ^ 'wefeaDecisionTaskCompletedEventId'+    -> WorkflowExecutionFailedEventAttributes+workflowExecutionFailedEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionFailedEventAttributes'+    { _wefeaReason = Nothing+    , _wefeaDetails = Nothing+    , _wefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The descriptive reason provided for the failure (if any).+wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)+wefeaReason = lens _wefeaReason (\ s a -> s{_wefeaReason = a});++-- | The details of the failure (if any).+wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)+wefeaDetails = lens _wefeaDetails (\ s a -> s{_wefeaDetails = a});++-- | The ID of the 'DecisionTaskCompleted' event corresponding to the+-- decision task that resulted in the 'FailWorkflowExecution' decision to+-- fail this execution. This information can be useful for diagnosing+-- problems by tracing back the chain of events leading up to this event.+wefeaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionFailedEventAttributes Integer+wefeaDecisionTaskCompletedEventId = lens _wefeaDecisionTaskCompletedEventId (\ s a -> s{_wefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject "WorkflowExecutionFailedEventAttributes"+              (\ x ->+                 WorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "decisionTaskCompletedEventId"))++-- | Used to filter the workflow executions in visibility APIs by their+-- 'workflowId'.+--+-- /See:/ 'workflowExecutionFilter' smart constructor.+newtype WorkflowExecutionFilter = WorkflowExecutionFilter'+    { _wefWorkflowId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wefWorkflowId'+workflowExecutionFilter+    :: Text -- ^ 'wefWorkflowId'+    -> WorkflowExecutionFilter+workflowExecutionFilter pWorkflowId_ =+    WorkflowExecutionFilter'+    { _wefWorkflowId = pWorkflowId_+    }++-- | The workflowId to pass of match the criteria of this filter.+wefWorkflowId :: Lens' WorkflowExecutionFilter Text+wefWorkflowId = lens _wefWorkflowId (\ s a -> s{_wefWorkflowId = a});++instance ToJSON WorkflowExecutionFilter where+        toJSON WorkflowExecutionFilter'{..}+          = object ["workflowId" .= _wefWorkflowId]++-- | Contains information about a workflow execution.+--+-- /See:/ 'workflowExecutionInfo' smart constructor.+data WorkflowExecutionInfo = WorkflowExecutionInfo'+    { _weiParent          :: !(Maybe WorkflowExecution)+    , _weiTagList         :: !(Maybe [Text])+    , _weiCloseStatus     :: !(Maybe CloseStatus)+    , _weiCloseTimestamp  :: !(Maybe POSIX)+    , _weiCancelRequested :: !(Maybe Bool)+    , _weiExecution       :: !WorkflowExecution+    , _weiWorkflowType    :: !WorkflowType+    , _weiStartTimestamp  :: !POSIX+    , _weiExecutionStatus :: !ExecutionStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weiParent'+--+-- * 'weiTagList'+--+-- * 'weiCloseStatus'+--+-- * 'weiCloseTimestamp'+--+-- * 'weiCancelRequested'+--+-- * 'weiExecution'+--+-- * 'weiWorkflowType'+--+-- * 'weiStartTimestamp'+--+-- * 'weiExecutionStatus'+workflowExecutionInfo+    :: WorkflowExecution -- ^ 'weiExecution'+    -> WorkflowType -- ^ 'weiWorkflowType'+    -> UTCTime -- ^ 'weiStartTimestamp'+    -> ExecutionStatus -- ^ 'weiExecutionStatus'+    -> WorkflowExecutionInfo+workflowExecutionInfo pExecution_ pWorkflowType_ pStartTimestamp_ pExecutionStatus_ =+    WorkflowExecutionInfo'+    { _weiParent = Nothing+    , _weiTagList = Nothing+    , _weiCloseStatus = Nothing+    , _weiCloseTimestamp = Nothing+    , _weiCancelRequested = Nothing+    , _weiExecution = pExecution_+    , _weiWorkflowType = pWorkflowType_+    , _weiStartTimestamp = _Time # pStartTimestamp_+    , _weiExecutionStatus = pExecutionStatus_+    }++-- | If this workflow execution is a child of another execution then contains+-- the workflow execution that started this execution.+weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)+weiParent = lens _weiParent (\ s a -> s{_weiParent = a});++-- | The list of tags associated with the workflow execution. Tags can be+-- used to identify and list workflow executions of interest through the+-- visibility APIs. A workflow execution can have a maximum of 5 tags.+weiTagList :: Lens' WorkflowExecutionInfo [Text]+weiTagList = lens _weiTagList (\ s a -> s{_weiTagList = a}) . _Default . _Coerce;++-- | If the execution status is closed then this specifies how the execution+-- was closed:+--+-- -   'COMPLETED': the execution was successfully completed.+-- -   'CANCELED': the execution was canceled.Cancellation allows the+--     implementation to gracefully clean up before the execution is+--     closed.+-- -   'TERMINATED': the execution was force terminated.+-- -   'FAILED': the execution failed to complete.+-- -   'TIMED_OUT': the execution did not complete in the alloted time and+--     was automatically timed out.+-- -   'CONTINUED_AS_NEW': the execution is logically continued. This means+--     the current execution was completed and a new execution was started+--     to carry on the workflow.+weiCloseStatus :: Lens' WorkflowExecutionInfo (Maybe CloseStatus)+weiCloseStatus = lens _weiCloseStatus (\ s a -> s{_weiCloseStatus = a});++-- | The time when the workflow execution was closed. Set only if the+-- execution status is CLOSED.+weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)+weiCloseTimestamp = lens _weiCloseTimestamp (\ s a -> s{_weiCloseTimestamp = a}) . mapping _Time;++-- | Set to true if a cancellation is requested for this workflow execution.+weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)+weiCancelRequested = lens _weiCancelRequested (\ s a -> s{_weiCancelRequested = a});++-- | The workflow execution this information is about.+weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution+weiExecution = lens _weiExecution (\ s a -> s{_weiExecution = a});++-- | The type of the workflow execution.+weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType+weiWorkflowType = lens _weiWorkflowType (\ s a -> s{_weiWorkflowType = a});++-- | The time when the execution was started.+weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime+weiStartTimestamp = lens _weiStartTimestamp (\ s a -> s{_weiStartTimestamp = a}) . _Time;++-- | The current status of the execution.+weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus+weiExecutionStatus = lens _weiExecutionStatus (\ s a -> s{_weiExecutionStatus = a});++instance FromJSON WorkflowExecutionInfo where+        parseJSON+          = withObject "WorkflowExecutionInfo"+              (\ x ->+                 WorkflowExecutionInfo' <$>+                   (x .:? "parent") <*> (x .:? "tagList" .!= mempty) <*>+                     (x .:? "closeStatus")+                     <*> (x .:? "closeTimestamp")+                     <*> (x .:? "cancelRequested")+                     <*> (x .: "execution")+                     <*> (x .: "workflowType")+                     <*> (x .: "startTimestamp")+                     <*> (x .: "executionStatus"))++-- | Contains a paginated list of information about workflow executions.+--+-- /See:/ 'workflowExecutionInfos' smart constructor.+data WorkflowExecutionInfos = WorkflowExecutionInfos'+    { _weiNextPageToken  :: !(Maybe Text)+    , _weiExecutionInfos :: ![WorkflowExecutionInfo]+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionInfos' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weiNextPageToken'+--+-- * 'weiExecutionInfos'+workflowExecutionInfos+    :: WorkflowExecutionInfos+workflowExecutionInfos =+    WorkflowExecutionInfos'+    { _weiNextPageToken = Nothing+    , _weiExecutionInfos = mempty+    }++-- | If a 'NextPageToken' was returned by a previous call, there are more+-- results available. To retrieve the next page of results, make the call+-- again using the returned token in 'nextPageToken'. Keep all other+-- arguments unchanged.+--+-- The configured 'maximumPageSize' determines how many results can be+-- returned in a single call.+weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)+weiNextPageToken = lens _weiNextPageToken (\ s a -> s{_weiNextPageToken = a});++-- | The list of workflow information structures.+weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]+weiExecutionInfos = lens _weiExecutionInfos (\ s a -> s{_weiExecutionInfos = a}) . _Coerce;++instance FromJSON WorkflowExecutionInfos where+        parseJSON+          = withObject "WorkflowExecutionInfos"+              (\ x ->+                 WorkflowExecutionInfos' <$>+                   (x .:? "nextPageToken") <*>+                     (x .:? "executionInfos" .!= mempty))++-- | Contains the counts of open tasks, child workflow executions and timers+-- for a workflow execution.+--+-- /See:/ 'workflowExecutionOpenCounts' smart constructor.+data WorkflowExecutionOpenCounts = WorkflowExecutionOpenCounts'+    { _weocOpenLambdaFunctions         :: !(Maybe Nat)+    , _weocOpenActivityTasks           :: !Nat+    , _weocOpenDecisionTasks           :: !Nat+    , _weocOpenTimers                  :: !Nat+    , _weocOpenChildWorkflowExecutions :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionOpenCounts' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weocOpenLambdaFunctions'+--+-- * 'weocOpenActivityTasks'+--+-- * 'weocOpenDecisionTasks'+--+-- * 'weocOpenTimers'+--+-- * 'weocOpenChildWorkflowExecutions'+workflowExecutionOpenCounts+    :: Natural -- ^ 'weocOpenActivityTasks'+    -> Natural -- ^ 'weocOpenDecisionTasks'+    -> Natural -- ^ 'weocOpenTimers'+    -> Natural -- ^ 'weocOpenChildWorkflowExecutions'+    -> WorkflowExecutionOpenCounts+workflowExecutionOpenCounts pOpenActivityTasks_ pOpenDecisionTasks_ pOpenTimers_ pOpenChildWorkflowExecutions_ =+    WorkflowExecutionOpenCounts'+    { _weocOpenLambdaFunctions = Nothing+    , _weocOpenActivityTasks = _Nat # pOpenActivityTasks_+    , _weocOpenDecisionTasks = _Nat # pOpenDecisionTasks_+    , _weocOpenTimers = _Nat # pOpenTimers_+    , _weocOpenChildWorkflowExecutions = _Nat # pOpenChildWorkflowExecutions_+    }++-- | The count of AWS Lambda functions that are currently executing.+weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)+weocOpenLambdaFunctions = lens _weocOpenLambdaFunctions (\ s a -> s{_weocOpenLambdaFunctions = a}) . mapping _Nat;++-- | The count of activity tasks whose status is OPEN.+weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenActivityTasks = lens _weocOpenActivityTasks (\ s a -> s{_weocOpenActivityTasks = a}) . _Nat;++-- | The count of decision tasks whose status is OPEN. A workflow execution+-- can have at most one open decision task.+weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenDecisionTasks = lens _weocOpenDecisionTasks (\ s a -> s{_weocOpenDecisionTasks = a}) . _Nat;++-- | The count of timers started by this workflow execution that have not+-- fired yet.+weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenTimers = lens _weocOpenTimers (\ s a -> s{_weocOpenTimers = a}) . _Nat;++-- | The count of child workflow executions whose status is OPEN.+weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenChildWorkflowExecutions = lens _weocOpenChildWorkflowExecutions (\ s a -> s{_weocOpenChildWorkflowExecutions = a}) . _Nat;++instance FromJSON WorkflowExecutionOpenCounts where+        parseJSON+          = withObject "WorkflowExecutionOpenCounts"+              (\ x ->+                 WorkflowExecutionOpenCounts' <$>+                   (x .:? "openLambdaFunctions") <*>+                     (x .: "openActivityTasks")+                     <*> (x .: "openDecisionTasks")+                     <*> (x .: "openTimers")+                     <*> (x .: "openChildWorkflowExecutions"))++-- | Provides details of the 'WorkflowExecutionSignaled' event.+--+-- /See:/ 'workflowExecutionSignaledEventAttributes' smart constructor.+data WorkflowExecutionSignaledEventAttributes = WorkflowExecutionSignaledEventAttributes'+    { _wExternalWorkflowExecution :: !(Maybe WorkflowExecution)+    , _wExternalInitiatedEventId  :: !(Maybe Integer)+    , _wInput                     :: !(Maybe Text)+    , _wSignalName                :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wExternalWorkflowExecution'+--+-- * 'wExternalInitiatedEventId'+--+-- * 'wInput'+--+-- * 'wSignalName'+workflowExecutionSignaledEventAttributes+    :: Text -- ^ 'wSignalName'+    -> WorkflowExecutionSignaledEventAttributes+workflowExecutionSignaledEventAttributes pSignalName_ =+    WorkflowExecutionSignaledEventAttributes'+    { _wExternalWorkflowExecution = Nothing+    , _wExternalInitiatedEventId = Nothing+    , _wInput = Nothing+    , _wSignalName = pSignalName_+    }++-- | The workflow execution that sent the signal. This is set only of the+-- signal was sent by another workflow execution.+wExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)+wExternalWorkflowExecution = lens _wExternalWorkflowExecution (\ s a -> s{_wExternalWorkflowExecution = a});++-- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event+-- corresponding to the 'SignalExternalWorkflow' decision to signal this+-- workflow execution.The source event with this ID can be found in the+-- history of the source workflow execution. This information can be useful+-- for diagnosing problems by tracing back the chain of events leading up+-- to this event. This field is set only if the signal was initiated by+-- another workflow execution.+wExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)+wExternalInitiatedEventId = lens _wExternalInitiatedEventId (\ s a -> s{_wExternalInitiatedEventId = a});++-- | Inputs provided with the signal (if any). The decider can use the signal+-- name and inputs to determine how to process the signal.+wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)+wInput = lens _wInput (\ s a -> s{_wInput = a});++-- | The name of the signal received. The decider can use the signal name and+-- inputs to determine how to the process the signal.+wSignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text+wSignalName = lens _wSignalName (\ s a -> s{_wSignalName = a});++instance FromJSON+         WorkflowExecutionSignaledEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionSignaledEventAttributes"+              (\ x ->+                 WorkflowExecutionSignaledEventAttributes' <$>+                   (x .:? "externalWorkflowExecution") <*>+                     (x .:? "externalInitiatedEventId")+                     <*> (x .:? "input")+                     <*> (x .: "signalName"))++-- | Provides details of 'WorkflowExecutionStarted' event.+--+-- /See:/ 'workflowExecutionStartedEventAttributes' smart constructor.+data WorkflowExecutionStartedEventAttributes = WorkflowExecutionStartedEventAttributes'+    { _weseaParentInitiatedEventId       :: !(Maybe Integer)+    , _weseaTagList                      :: !(Maybe [Text])+    , _weseaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _weseaLambdaRole                   :: !(Maybe Text)+    , _weseaInput                        :: !(Maybe Text)+    , _weseaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _weseaTaskPriority                 :: !(Maybe Text)+    , _weseaParentWorkflowExecution      :: !(Maybe WorkflowExecution)+    , _weseaContinuedExecutionRunId      :: !(Maybe Text)+    , _weseaChildPolicy                  :: !ChildPolicy+    , _weseaTaskList                     :: !TaskList+    , _weseaWorkflowType                 :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weseaParentInitiatedEventId'+--+-- * 'weseaTagList'+--+-- * 'weseaTaskStartToCloseTimeout'+--+-- * 'weseaLambdaRole'+--+-- * 'weseaInput'+--+-- * 'weseaExecutionStartToCloseTimeout'+--+-- * 'weseaTaskPriority'+--+-- * 'weseaParentWorkflowExecution'+--+-- * 'weseaContinuedExecutionRunId'+--+-- * 'weseaChildPolicy'+--+-- * 'weseaTaskList'+--+-- * 'weseaWorkflowType'+workflowExecutionStartedEventAttributes+    :: ChildPolicy -- ^ 'weseaChildPolicy'+    -> TaskList -- ^ 'weseaTaskList'+    -> WorkflowType -- ^ 'weseaWorkflowType'+    -> WorkflowExecutionStartedEventAttributes+workflowExecutionStartedEventAttributes pChildPolicy_ pTaskList_ pWorkflowType_ =+    WorkflowExecutionStartedEventAttributes'+    { _weseaParentInitiatedEventId = Nothing+    , _weseaTagList = Nothing+    , _weseaTaskStartToCloseTimeout = Nothing+    , _weseaLambdaRole = Nothing+    , _weseaInput = Nothing+    , _weseaExecutionStartToCloseTimeout = Nothing+    , _weseaTaskPriority = Nothing+    , _weseaParentWorkflowExecution = Nothing+    , _weseaContinuedExecutionRunId = Nothing+    , _weseaChildPolicy = pChildPolicy_+    , _weseaTaskList = pTaskList_+    , _weseaWorkflowType = pWorkflowType_+    }++-- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding+-- to the 'StartChildWorkflowExecution' decision to start this workflow+-- execution. The source event with this ID can be found in the history of+-- the source workflow execution. This information can be useful for+-- diagnosing problems by tracing back the chain of events leading up to+-- this event.+weseaParentInitiatedEventId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Integer)+weseaParentInitiatedEventId = lens _weseaParentInitiatedEventId (\ s a -> s{_weseaParentInitiatedEventId = a});++-- | The list of tags associated with this workflow execution. An execution+-- can have up to 5 tags.+weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]+weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce;++-- | The maximum duration of decision tasks for this workflow type.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaTaskStartToCloseTimeout = lens _weseaTaskStartToCloseTimeout (\ s a -> s{_weseaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking+-- AWS Lambda functions.+weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaLambdaRole = lens _weseaLambdaRole (\ s a -> s{_weseaLambdaRole = a});++-- | The input provided to the workflow execution (if any).+weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaInput = lens _weseaInput (\ s a -> s{_weseaInput = a});++-- | The maximum duration for this workflow execution.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaExecutionStartToCloseTimeout = lens _weseaExecutionStartToCloseTimeout (\ s a -> s{_weseaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaTaskPriority = lens _weseaTaskPriority (\ s a -> s{_weseaTaskPriority = a});++-- | The source workflow execution that started this workflow execution. The+-- member is not set if the workflow execution was not started by a+-- workflow.+weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)+weseaParentWorkflowExecution = lens _weseaParentWorkflowExecution (\ s a -> s{_weseaParentWorkflowExecution = a});++-- | If this workflow execution was started due to a+-- 'ContinueAsNewWorkflowExecution' decision, then it contains the 'runId'+-- of the previous workflow execution that was closed and continued as this+-- execution.+weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaContinuedExecutionRunId = lens _weseaContinuedExecutionRunId (\ s a -> s{_weseaContinuedExecutionRunId = a});++-- | The policy to use for the child workflow executions if this workflow+-- execution is terminated, by calling the TerminateWorkflowExecution+-- action explicitly or due to an expired timeout.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy+weseaChildPolicy = lens _weseaChildPolicy (\ s a -> s{_weseaChildPolicy = a});++-- | The name of the task list for scheduling the decision tasks for this+-- workflow execution.+weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList+weseaTaskList = lens _weseaTaskList (\ s a -> s{_weseaTaskList = a});++-- | The workflow type of this execution.+weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType+weseaWorkflowType = lens _weseaWorkflowType (\ s a -> s{_weseaWorkflowType = a});++instance FromJSON+         WorkflowExecutionStartedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionStartedEventAttributes"+              (\ x ->+                 WorkflowExecutionStartedEventAttributes' <$>+                   (x .:? "parentInitiatedEventId") <*>+                     (x .:? "tagList" .!= mempty)+                     <*> (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .:? "parentWorkflowExecution")+                     <*> (x .:? "continuedExecutionRunId")+                     <*> (x .: "childPolicy")+                     <*> (x .: "taskList")+                     <*> (x .: "workflowType"))++-- | Provides details of the 'WorkflowExecutionTerminated' event.+--+-- /See:/ 'workflowExecutionTerminatedEventAttributes' smart constructor.+data WorkflowExecutionTerminatedEventAttributes = WorkflowExecutionTerminatedEventAttributes'+    { _weteaCause       :: !(Maybe WorkflowExecutionTerminatedCause)+    , _weteaReason      :: !(Maybe Text)+    , _weteaDetails     :: !(Maybe Text)+    , _weteaChildPolicy :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weteaCause'+--+-- * 'weteaReason'+--+-- * 'weteaDetails'+--+-- * 'weteaChildPolicy'+workflowExecutionTerminatedEventAttributes+    :: ChildPolicy -- ^ 'weteaChildPolicy'+    -> WorkflowExecutionTerminatedEventAttributes+workflowExecutionTerminatedEventAttributes pChildPolicy_ =+    WorkflowExecutionTerminatedEventAttributes'+    { _weteaCause = Nothing+    , _weteaReason = Nothing+    , _weteaDetails = Nothing+    , _weteaChildPolicy = pChildPolicy_+    }++-- | If set, indicates that the workflow execution was automatically+-- terminated, and specifies the cause. This happens if the parent workflow+-- execution times out or is terminated and the child policy is set to+-- terminate child executions.+weteaCause :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe WorkflowExecutionTerminatedCause)+weteaCause = lens _weteaCause (\ s a -> s{_weteaCause = a});++-- | The reason provided for the termination (if any).+weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)+weteaReason = lens _weteaReason (\ s a -> s{_weteaReason = a});++-- | The details provided for the termination (if any).+weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)+weteaDetails = lens _weteaDetails (\ s a -> s{_weteaDetails = a});++-- | The policy used for the child workflow executions of this workflow+-- execution.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy+weteaChildPolicy = lens _weteaChildPolicy (\ s a -> s{_weteaChildPolicy = a});++instance FromJSON+         WorkflowExecutionTerminatedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionTerminatedEventAttributes"+              (\ x ->+                 WorkflowExecutionTerminatedEventAttributes' <$>+                   (x .:? "cause") <*> (x .:? "reason") <*>+                     (x .:? "details")+                     <*> (x .: "childPolicy"))++-- | Provides details of the 'WorkflowExecutionTimedOut' event.+--+-- /See:/ 'workflowExecutionTimedOutEventAttributes' smart constructor.+data WorkflowExecutionTimedOutEventAttributes = WorkflowExecutionTimedOutEventAttributes'+    { _wetoeaTimeoutType :: !WorkflowExecutionTimeoutType+    , _wetoeaChildPolicy :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wetoeaTimeoutType'+--+-- * 'wetoeaChildPolicy'+workflowExecutionTimedOutEventAttributes+    :: WorkflowExecutionTimeoutType -- ^ 'wetoeaTimeoutType'+    -> ChildPolicy -- ^ 'wetoeaChildPolicy'+    -> WorkflowExecutionTimedOutEventAttributes+workflowExecutionTimedOutEventAttributes pTimeoutType_ pChildPolicy_ =+    WorkflowExecutionTimedOutEventAttributes'+    { _wetoeaTimeoutType = pTimeoutType_+    , _wetoeaChildPolicy = pChildPolicy_+    }++-- | The type of timeout that caused this event.+wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType+wetoeaTimeoutType = lens _wetoeaTimeoutType (\ s a -> s{_wetoeaTimeoutType = a});++-- | The policy used for the child workflow executions of this workflow+-- execution.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy+wetoeaChildPolicy = lens _wetoeaChildPolicy (\ s a -> s{_wetoeaChildPolicy = a});++instance FromJSON+         WorkflowExecutionTimedOutEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionTimedOutEventAttributes"+              (\ x ->+                 WorkflowExecutionTimedOutEventAttributes' <$>+                   (x .: "timeoutType") <*> (x .: "childPolicy"))++-- | Represents a workflow type.+--+-- /See:/ 'workflowType' smart constructor.+data WorkflowType = WorkflowType'+    { _wtName    :: !Text+    , _wtVersion :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtName'+--+-- * 'wtVersion'+workflowType+    :: Text -- ^ 'wtName'+    -> Text -- ^ 'wtVersion'+    -> WorkflowType+workflowType pName_ pVersion_ =+    WorkflowType'+    { _wtName = pName_+    , _wtVersion = pVersion_+    }++-- | __Required.__ The name of the workflow type.+--+-- The combination of workflow type name and version must be unique with in+-- a domain.+wtName :: Lens' WorkflowType Text+wtName = lens _wtName (\ s a -> s{_wtName = a});++-- | __Required.__ The version of the workflow type.+--+-- The combination of workflow type name and version must be unique with in+-- a domain.+wtVersion :: Lens' WorkflowType Text+wtVersion = lens _wtVersion (\ s a -> s{_wtVersion = a});++instance FromJSON WorkflowType where+        parseJSON+          = withObject "WorkflowType"+              (\ x ->+                 WorkflowType' <$> (x .: "name") <*> (x .: "version"))++instance ToJSON WorkflowType where+        toJSON WorkflowType'{..}+          = object ["name" .= _wtName, "version" .= _wtVersion]++-- | The configuration settings of a workflow type.+--+-- /See:/ 'workflowTypeConfiguration' smart constructor.+data WorkflowTypeConfiguration = WorkflowTypeConfiguration'+    { _wtcDefaultLambdaRole                   :: !(Maybe Text)+    , _wtcDefaultChildPolicy                  :: !(Maybe ChildPolicy)+    , _wtcDefaultTaskList                     :: !(Maybe TaskList)+    , _wtcDefaultTaskPriority                 :: !(Maybe Text)+    , _wtcDefaultExecutionStartToCloseTimeout :: !(Maybe Text)+    , _wtcDefaultTaskStartToCloseTimeout      :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtcDefaultLambdaRole'+--+-- * 'wtcDefaultChildPolicy'+--+-- * 'wtcDefaultTaskList'+--+-- * 'wtcDefaultTaskPriority'+--+-- * 'wtcDefaultExecutionStartToCloseTimeout'+--+-- * 'wtcDefaultTaskStartToCloseTimeout'+workflowTypeConfiguration+    :: WorkflowTypeConfiguration+workflowTypeConfiguration =+    WorkflowTypeConfiguration'+    { _wtcDefaultLambdaRole = Nothing+    , _wtcDefaultChildPolicy = Nothing+    , _wtcDefaultTaskList = Nothing+    , _wtcDefaultTaskPriority = Nothing+    , _wtcDefaultExecutionStartToCloseTimeout = Nothing+    , _wtcDefaultTaskStartToCloseTimeout = Nothing+    }++-- | The default IAM role to use when a workflow execution invokes a AWS+-- Lambda function.+wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultLambdaRole = lens _wtcDefaultLambdaRole (\ s a -> s{_wtcDefaultLambdaRole = a});++-- | /Optional./ The default policy to use for the child workflow executions+-- when a workflow execution of this type is terminated, by calling the+-- TerminateWorkflowExecution action explicitly or due to an expired+-- timeout. This default can be overridden when starting a workflow+-- execution using the StartWorkflowExecution action or the+-- 'StartChildWorkflowExecution' decision.+--+-- The supported child policies are:+--+-- -   __TERMINATE:__ the child executions will be terminated.+-- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each+--     child execution by recording a 'WorkflowExecutionCancelRequested'+--     event in its history. It is up to the decider to take appropriate+--     actions when it receives an execution history with this event.+-- -   __ABANDON:__ no action will be taken. The child executions will+--     continue to run.+wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)+wtcDefaultChildPolicy = lens _wtcDefaultChildPolicy (\ s a -> s{_wtcDefaultChildPolicy = a});++-- | /Optional./ The default task list, specified when registering the+-- workflow type, for decisions tasks scheduled for workflow executions of+-- this type. This default can be overridden when starting a workflow+-- execution using the StartWorkflowExecution action or the+-- 'StartChildWorkflowExecution' decision.+wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)+wtcDefaultTaskList = lens _wtcDefaultTaskList (\ s a -> s{_wtcDefaultTaskList = a});++-- | /Optional./ The default task priority, specified when registering the+-- workflow type, for all decision tasks of this workflow type. This+-- default can be overridden when starting a workflow execution using the+-- StartWorkflowExecution action or the 'StartChildWorkflowExecution'+-- decision.+--+-- Valid values are integers that range from Java\'s 'Integer.MIN_VALUE'+-- (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers+-- indicate higher priority.+--+-- For more information about setting task priority, see+-- <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>+-- in the /Amazon Simple Workflow Developer Guide/.+wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultTaskPriority = lens _wtcDefaultTaskPriority (\ s a -> s{_wtcDefaultTaskPriority = a});++-- | /Optional./ The default maximum duration, specified when registering the+-- workflow type, for executions of this workflow type. This default can be+-- overridden when starting a workflow execution using the+-- StartWorkflowExecution action or the 'StartChildWorkflowExecution'+-- decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultExecutionStartToCloseTimeout = lens _wtcDefaultExecutionStartToCloseTimeout (\ s a -> s{_wtcDefaultExecutionStartToCloseTimeout = a});++-- | /Optional./ The default maximum duration, specified when registering the+-- workflow type, that a decision task for executions of this workflow type+-- might take before returning completion or failure. If the task does not+-- close in the specified time then the task is automatically timed out and+-- rescheduled. If the decider eventually reports a completion or failure,+-- it is ignored. This default can be overridden when starting a workflow+-- execution using the StartWorkflowExecution action or the+-- 'StartChildWorkflowExecution' decision.+--+-- The duration is specified in seconds; an integer greater than or equal+-- to 0. The value \"NONE\" can be used to specify unlimited duration.+wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultTaskStartToCloseTimeout = lens _wtcDefaultTaskStartToCloseTimeout (\ s a -> s{_wtcDefaultTaskStartToCloseTimeout = a});++instance FromJSON WorkflowTypeConfiguration where+        parseJSON+          = withObject "WorkflowTypeConfiguration"+              (\ x ->+                 WorkflowTypeConfiguration' <$>+                   (x .:? "defaultLambdaRole") <*>+                     (x .:? "defaultChildPolicy")+                     <*> (x .:? "defaultTaskList")+                     <*> (x .:? "defaultTaskPriority")+                     <*> (x .:? "defaultExecutionStartToCloseTimeout")+                     <*> (x .:? "defaultTaskStartToCloseTimeout"))++-- | Used to filter workflow execution query results by type. Each parameter,+-- if specified, defines a rule that must be satisfied by each returned+-- result.+--+-- /See:/ 'workflowTypeFilter' smart constructor.+data WorkflowTypeFilter = WorkflowTypeFilter'+    { _wtfVersion :: !(Maybe Text)+    , _wtfName    :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtfVersion'+--+-- * 'wtfName'+workflowTypeFilter+    :: Text -- ^ 'wtfName'+    -> WorkflowTypeFilter+workflowTypeFilter pName_ =+    WorkflowTypeFilter'+    { _wtfVersion = Nothing+    , _wtfName = pName_+    }++-- | Version of the workflow type.+wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)+wtfVersion = lens _wtfVersion (\ s a -> s{_wtfVersion = a});++-- | __Required.__ Name of the workflow type.+wtfName :: Lens' WorkflowTypeFilter Text+wtfName = lens _wtfName (\ s a -> s{_wtfName = a});++instance ToJSON WorkflowTypeFilter where+        toJSON WorkflowTypeFilter'{..}+          = object+              ["version" .= _wtfVersion, "name" .= _wtfName]++-- | Contains information about a workflow type.+--+-- /See:/ 'workflowTypeInfo' smart constructor.+data WorkflowTypeInfo = WorkflowTypeInfo'+    { _wtiDeprecationDate :: !(Maybe POSIX)+    , _wtiDescription     :: !(Maybe Text)+    , _wtiWorkflowType    :: !WorkflowType+    , _wtiStatus          :: !RegistrationStatus+    , _wtiCreationDate    :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtiDeprecationDate'+--+-- * 'wtiDescription'+--+-- * 'wtiWorkflowType'+--+-- * 'wtiStatus'+--+-- * 'wtiCreationDate'+workflowTypeInfo+    :: WorkflowType -- ^ 'wtiWorkflowType'+    -> RegistrationStatus -- ^ 'wtiStatus'+    -> UTCTime -- ^ 'wtiCreationDate'+    -> WorkflowTypeInfo+workflowTypeInfo pWorkflowType_ pStatus_ pCreationDate_ =+    WorkflowTypeInfo'+    { _wtiDeprecationDate = Nothing+    , _wtiDescription = Nothing+    , _wtiWorkflowType = pWorkflowType_+    , _wtiStatus = pStatus_+    , _wtiCreationDate = _Time # pCreationDate_+    }++-- | If the type is in deprecated state, then it is set to the date when the+-- type was deprecated.+wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)+wtiDeprecationDate = lens _wtiDeprecationDate (\ s a -> s{_wtiDeprecationDate = a}) . mapping _Time;++-- | The description of the type registered through RegisterWorkflowType.+wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text)+wtiDescription = lens _wtiDescription (\ s a -> s{_wtiDescription = a});++-- | The workflow type this information is about.+wtiWorkflowType :: Lens' WorkflowTypeInfo WorkflowType+wtiWorkflowType = lens _wtiWorkflowType (\ s a -> s{_wtiWorkflowType = a});++-- | The current status of the workflow type.+wtiStatus :: Lens' WorkflowTypeInfo RegistrationStatus+wtiStatus = lens _wtiStatus (\ s a -> s{_wtiStatus = a});++-- | The date when this type was registered.+wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime+wtiCreationDate = lens _wtiCreationDate (\ s a -> s{_wtiCreationDate = a}) . _Time;++instance FromJSON WorkflowTypeInfo where+        parseJSON+          = withObject "WorkflowTypeInfo"+              (\ x ->+                 WorkflowTypeInfo' <$>+                   (x .:? "deprecationDate") <*> (x .:? "description")+                     <*> (x .: "workflowType")+                     <*> (x .: "status")+                     <*> (x .: "creationDate"))
+ gen/Network/AWS/SWF/Types/Sum.hs view
@@ -0,0 +1,967 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE LambdaCase         #-}+{-# LANGUAGE OverloadedStrings  #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.SWF.Types.Sum+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.SWF.Types.Sum where++import           Network.AWS.Prelude++data ActivityTaskTimeoutType+    = ATTTHeartbeat+    | ATTTScheduleToClose+    | ATTTScheduleToStart+    | ATTTStartToClose+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ActivityTaskTimeoutType where+    parser = takeLowerText >>= \case+        "heartbeat" -> pure ATTTHeartbeat+        "schedule_to_close" -> pure ATTTScheduleToClose+        "schedule_to_start" -> pure ATTTScheduleToStart+        "start_to_close" -> pure ATTTStartToClose+        e -> fromTextError $ "Failure parsing ActivityTaskTimeoutType from value: '" <> e+           <> "'. Accepted values: heartbeat, schedule_to_close, schedule_to_start, start_to_close"++instance ToText ActivityTaskTimeoutType where+    toText = \case+        ATTTHeartbeat -> "heartbeat"+        ATTTScheduleToClose -> "schedule_to_close"+        ATTTScheduleToStart -> "schedule_to_start"+        ATTTStartToClose -> "start_to_close"++instance Hashable     ActivityTaskTimeoutType+instance ToByteString ActivityTaskTimeoutType+instance ToQuery      ActivityTaskTimeoutType+instance ToHeader     ActivityTaskTimeoutType++instance FromJSON ActivityTaskTimeoutType where+    parseJSON = parseJSONText "ActivityTaskTimeoutType"++data CancelTimerFailedCause+    = CTFCOperationNotPermitted+    | CTFCTimerIdUnknown+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText CancelTimerFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure CTFCOperationNotPermitted+        "timer_id_unknown" -> pure CTFCTimerIdUnknown+        e -> fromTextError $ "Failure parsing CancelTimerFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, timer_id_unknown"++instance ToText CancelTimerFailedCause where+    toText = \case+        CTFCOperationNotPermitted -> "operation_not_permitted"+        CTFCTimerIdUnknown -> "timer_id_unknown"++instance Hashable     CancelTimerFailedCause+instance ToByteString CancelTimerFailedCause+instance ToQuery      CancelTimerFailedCause+instance ToHeader     CancelTimerFailedCause++instance FromJSON CancelTimerFailedCause where+    parseJSON = parseJSONText "CancelTimerFailedCause"++data CancelWorkflowExecutionFailedCause+    = COperationNotPermitted+    | CUnhandledDecision+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText CancelWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure COperationNotPermitted+        "unhandled_decision" -> pure CUnhandledDecision+        e -> fromTextError $ "Failure parsing CancelWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, unhandled_decision"++instance ToText CancelWorkflowExecutionFailedCause where+    toText = \case+        COperationNotPermitted -> "operation_not_permitted"+        CUnhandledDecision -> "unhandled_decision"++instance Hashable     CancelWorkflowExecutionFailedCause+instance ToByteString CancelWorkflowExecutionFailedCause+instance ToQuery      CancelWorkflowExecutionFailedCause+instance ToHeader     CancelWorkflowExecutionFailedCause++instance FromJSON CancelWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "CancelWorkflowExecutionFailedCause"++data ChildPolicy+    = Abandon+    | RequestCancel+    | Terminate+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ChildPolicy where+    parser = takeLowerText >>= \case+        "abandon" -> pure Abandon+        "request_cancel" -> pure RequestCancel+        "terminate" -> pure Terminate+        e -> fromTextError $ "Failure parsing ChildPolicy from value: '" <> e+           <> "'. Accepted values: abandon, request_cancel, terminate"++instance ToText ChildPolicy where+    toText = \case+        Abandon -> "abandon"+        RequestCancel -> "request_cancel"+        Terminate -> "terminate"++instance Hashable     ChildPolicy+instance ToByteString ChildPolicy+instance ToQuery      ChildPolicy+instance ToHeader     ChildPolicy++instance ToJSON ChildPolicy where+    toJSON = toJSONText++instance FromJSON ChildPolicy where+    parseJSON = parseJSONText "ChildPolicy"++data CloseStatus+    = Canceled+    | Completed+    | ContinuedAsNew+    | Failed+    | Terminated+    | TimedOut+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText CloseStatus where+    parser = takeLowerText >>= \case+        "canceled" -> pure Canceled+        "completed" -> pure Completed+        "continued_as_new" -> pure ContinuedAsNew+        "failed" -> pure Failed+        "terminated" -> pure Terminated+        "timed_out" -> pure TimedOut+        e -> fromTextError $ "Failure parsing CloseStatus from value: '" <> e+           <> "'. Accepted values: canceled, completed, continued_as_new, failed, terminated, timed_out"++instance ToText CloseStatus where+    toText = \case+        Canceled -> "canceled"+        Completed -> "completed"+        ContinuedAsNew -> "continued_as_new"+        Failed -> "failed"+        Terminated -> "terminated"+        TimedOut -> "timed_out"++instance Hashable     CloseStatus+instance ToByteString CloseStatus+instance ToQuery      CloseStatus+instance ToHeader     CloseStatus++instance ToJSON CloseStatus where+    toJSON = toJSONText++instance FromJSON CloseStatus where+    parseJSON = parseJSONText "CloseStatus"++data CompleteWorkflowExecutionFailedCause+    = CWEFCOperationNotPermitted+    | CWEFCUnhandledDecision+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText CompleteWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure CWEFCOperationNotPermitted+        "unhandled_decision" -> pure CWEFCUnhandledDecision+        e -> fromTextError $ "Failure parsing CompleteWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, unhandled_decision"++instance ToText CompleteWorkflowExecutionFailedCause where+    toText = \case+        CWEFCOperationNotPermitted -> "operation_not_permitted"+        CWEFCUnhandledDecision -> "unhandled_decision"++instance Hashable     CompleteWorkflowExecutionFailedCause+instance ToByteString CompleteWorkflowExecutionFailedCause+instance ToQuery      CompleteWorkflowExecutionFailedCause+instance ToHeader     CompleteWorkflowExecutionFailedCause++instance FromJSON CompleteWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "CompleteWorkflowExecutionFailedCause"++data ContinueAsNewWorkflowExecutionFailedCause+    = CANWEFCContinueAsNewWorkflowExecutionRateExceeded+    | CANWEFCDefaultChildPolicyUndefined+    | CANWEFCDefaultExecutionStartToCloseTimeoutUndefined+    | CANWEFCDefaultTaskListUndefined+    | CANWEFCDefaultTaskStartToCloseTimeoutUndefined+    | CANWEFCOperationNotPermitted+    | CANWEFCUnhandledDecision+    | CANWEFCWorkflowTypeDeprecated+    | CANWEFCWorkflowTypeDoesNotExist+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ContinueAsNewWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "continue_as_new_workflow_execution_rate_exceeded" -> pure CANWEFCContinueAsNewWorkflowExecutionRateExceeded+        "default_child_policy_undefined" -> pure CANWEFCDefaultChildPolicyUndefined+        "default_execution_start_to_close_timeout_undefined" -> pure CANWEFCDefaultExecutionStartToCloseTimeoutUndefined+        "default_task_list_undefined" -> pure CANWEFCDefaultTaskListUndefined+        "default_task_start_to_close_timeout_undefined" -> pure CANWEFCDefaultTaskStartToCloseTimeoutUndefined+        "operation_not_permitted" -> pure CANWEFCOperationNotPermitted+        "unhandled_decision" -> pure CANWEFCUnhandledDecision+        "workflow_type_deprecated" -> pure CANWEFCWorkflowTypeDeprecated+        "workflow_type_does_not_exist" -> pure CANWEFCWorkflowTypeDoesNotExist+        e -> fromTextError $ "Failure parsing ContinueAsNewWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: continue_as_new_workflow_execution_rate_exceeded, default_child_policy_undefined, default_execution_start_to_close_timeout_undefined, default_task_list_undefined, default_task_start_to_close_timeout_undefined, operation_not_permitted, unhandled_decision, workflow_type_deprecated, workflow_type_does_not_exist"++instance ToText ContinueAsNewWorkflowExecutionFailedCause where+    toText = \case+        CANWEFCContinueAsNewWorkflowExecutionRateExceeded -> "continue_as_new_workflow_execution_rate_exceeded"+        CANWEFCDefaultChildPolicyUndefined -> "default_child_policy_undefined"+        CANWEFCDefaultExecutionStartToCloseTimeoutUndefined -> "default_execution_start_to_close_timeout_undefined"+        CANWEFCDefaultTaskListUndefined -> "default_task_list_undefined"+        CANWEFCDefaultTaskStartToCloseTimeoutUndefined -> "default_task_start_to_close_timeout_undefined"+        CANWEFCOperationNotPermitted -> "operation_not_permitted"+        CANWEFCUnhandledDecision -> "unhandled_decision"+        CANWEFCWorkflowTypeDeprecated -> "workflow_type_deprecated"+        CANWEFCWorkflowTypeDoesNotExist -> "workflow_type_does_not_exist"++instance Hashable     ContinueAsNewWorkflowExecutionFailedCause+instance ToByteString ContinueAsNewWorkflowExecutionFailedCause+instance ToQuery      ContinueAsNewWorkflowExecutionFailedCause+instance ToHeader     ContinueAsNewWorkflowExecutionFailedCause++instance FromJSON ContinueAsNewWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "ContinueAsNewWorkflowExecutionFailedCause"++data DecisionTaskTimeoutType =+    StartToClose+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText DecisionTaskTimeoutType where+    parser = takeLowerText >>= \case+        "start_to_close" -> pure StartToClose+        e -> fromTextError $ "Failure parsing DecisionTaskTimeoutType from value: '" <> e+           <> "'. Accepted values: start_to_close"++instance ToText DecisionTaskTimeoutType where+    toText = \case+        StartToClose -> "start_to_close"++instance Hashable     DecisionTaskTimeoutType+instance ToByteString DecisionTaskTimeoutType+instance ToQuery      DecisionTaskTimeoutType+instance ToHeader     DecisionTaskTimeoutType++instance FromJSON DecisionTaskTimeoutType where+    parseJSON = parseJSONText "DecisionTaskTimeoutType"++data DecisionType+    = CancelTimer+    | CancelWorkflowExecution+    | CompleteWorkflowExecution+    | ContinueAsNewWorkflowExecution+    | FailWorkflowExecution+    | RecordMarker+    | RequestCancelActivityTask+    | RequestCancelExternalWorkflowExecution+    | ScheduleActivityTask+    | ScheduleLambdaFunction+    | SignalExternalWorkflowExecution+    | StartChildWorkflowExecution+    | StartTimer+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText DecisionType where+    parser = takeLowerText >>= \case+        "canceltimer" -> pure CancelTimer+        "cancelworkflowexecution" -> pure CancelWorkflowExecution+        "completeworkflowexecution" -> pure CompleteWorkflowExecution+        "continueasnewworkflowexecution" -> pure ContinueAsNewWorkflowExecution+        "failworkflowexecution" -> pure FailWorkflowExecution+        "recordmarker" -> pure RecordMarker+        "requestcancelactivitytask" -> pure RequestCancelActivityTask+        "requestcancelexternalworkflowexecution" -> pure RequestCancelExternalWorkflowExecution+        "scheduleactivitytask" -> pure ScheduleActivityTask+        "schedulelambdafunction" -> pure ScheduleLambdaFunction+        "signalexternalworkflowexecution" -> pure SignalExternalWorkflowExecution+        "startchildworkflowexecution" -> pure StartChildWorkflowExecution+        "starttimer" -> pure StartTimer+        e -> fromTextError $ "Failure parsing DecisionType from value: '" <> e+           <> "'. Accepted values: canceltimer, cancelworkflowexecution, completeworkflowexecution, continueasnewworkflowexecution, failworkflowexecution, recordmarker, requestcancelactivitytask, requestcancelexternalworkflowexecution, scheduleactivitytask, schedulelambdafunction, signalexternalworkflowexecution, startchildworkflowexecution, starttimer"++instance ToText DecisionType where+    toText = \case+        CancelTimer -> "canceltimer"+        CancelWorkflowExecution -> "cancelworkflowexecution"+        CompleteWorkflowExecution -> "completeworkflowexecution"+        ContinueAsNewWorkflowExecution -> "continueasnewworkflowexecution"+        FailWorkflowExecution -> "failworkflowexecution"+        RecordMarker -> "recordmarker"+        RequestCancelActivityTask -> "requestcancelactivitytask"+        RequestCancelExternalWorkflowExecution -> "requestcancelexternalworkflowexecution"+        ScheduleActivityTask -> "scheduleactivitytask"+        ScheduleLambdaFunction -> "schedulelambdafunction"+        SignalExternalWorkflowExecution -> "signalexternalworkflowexecution"+        StartChildWorkflowExecution -> "startchildworkflowexecution"+        StartTimer -> "starttimer"++instance Hashable     DecisionType+instance ToByteString DecisionType+instance ToQuery      DecisionType+instance ToHeader     DecisionType++instance ToJSON DecisionType where+    toJSON = toJSONText++data EventType+    = ActivityTaskCancelRequested+    | ActivityTaskCanceled+    | ActivityTaskCompleted+    | ActivityTaskFailed+    | ActivityTaskScheduled+    | ActivityTaskStarted+    | ActivityTaskTimedOut+    | CancelTimerFailed+    | CancelWorkflowExecutionFailed+    | ChildWorkflowExecutionCanceled+    | ChildWorkflowExecutionCompleted+    | ChildWorkflowExecutionFailed+    | ChildWorkflowExecutionStarted+    | ChildWorkflowExecutionTerminated+    | ChildWorkflowExecutionTimedOut+    | CompleteWorkflowExecutionFailed+    | ContinueAsNewWorkflowExecutionFailed+    | DecisionTaskCompleted+    | DecisionTaskScheduled+    | DecisionTaskStarted+    | DecisionTaskTimedOut+    | ExternalWorkflowExecutionCancelRequested+    | ExternalWorkflowExecutionSignaled+    | FailWorkflowExecutionFailed+    | LambdaFunctionCompleted+    | LambdaFunctionFailed+    | LambdaFunctionScheduled+    | LambdaFunctionStarted+    | LambdaFunctionTimedOut+    | MarkerRecorded+    | RecordMarkerFailed+    | RequestCancelActivityTaskFailed+    | RequestCancelExternalWorkflowExecutionFailed+    | RequestCancelExternalWorkflowExecutionInitiated+    | ScheduleActivityTaskFailed+    | ScheduleLambdaFunctionFailed+    | SignalExternalWorkflowExecutionFailed+    | SignalExternalWorkflowExecutionInitiated+    | StartChildWorkflowExecutionFailed+    | StartChildWorkflowExecutionInitiated+    | StartLambdaFunctionFailed+    | StartTimerFailed+    | TimerCanceled+    | TimerFired+    | TimerStarted+    | WorkflowExecutionCancelRequested+    | WorkflowExecutionCanceled+    | WorkflowExecutionCompleted+    | WorkflowExecutionContinuedAsNew+    | WorkflowExecutionFailed+    | WorkflowExecutionSignaled+    | WorkflowExecutionStarted+    | WorkflowExecutionTerminated+    | WorkflowExecutionTimedOut+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText EventType where+    parser = takeLowerText >>= \case+        "activitytaskcancelrequested" -> pure ActivityTaskCancelRequested+        "activitytaskcanceled" -> pure ActivityTaskCanceled+        "activitytaskcompleted" -> pure ActivityTaskCompleted+        "activitytaskfailed" -> pure ActivityTaskFailed+        "activitytaskscheduled" -> pure ActivityTaskScheduled+        "activitytaskstarted" -> pure ActivityTaskStarted+        "activitytasktimedout" -> pure ActivityTaskTimedOut+        "canceltimerfailed" -> pure CancelTimerFailed+        "cancelworkflowexecutionfailed" -> pure CancelWorkflowExecutionFailed+        "childworkflowexecutioncanceled" -> pure ChildWorkflowExecutionCanceled+        "childworkflowexecutioncompleted" -> pure ChildWorkflowExecutionCompleted+        "childworkflowexecutionfailed" -> pure ChildWorkflowExecutionFailed+        "childworkflowexecutionstarted" -> pure ChildWorkflowExecutionStarted+        "childworkflowexecutionterminated" -> pure ChildWorkflowExecutionTerminated+        "childworkflowexecutiontimedout" -> pure ChildWorkflowExecutionTimedOut+        "completeworkflowexecutionfailed" -> pure CompleteWorkflowExecutionFailed+        "continueasnewworkflowexecutionfailed" -> pure ContinueAsNewWorkflowExecutionFailed+        "decisiontaskcompleted" -> pure DecisionTaskCompleted+        "decisiontaskscheduled" -> pure DecisionTaskScheduled+        "decisiontaskstarted" -> pure DecisionTaskStarted+        "decisiontasktimedout" -> pure DecisionTaskTimedOut+        "externalworkflowexecutioncancelrequested" -> pure ExternalWorkflowExecutionCancelRequested+        "externalworkflowexecutionsignaled" -> pure ExternalWorkflowExecutionSignaled+        "failworkflowexecutionfailed" -> pure FailWorkflowExecutionFailed+        "lambdafunctioncompleted" -> pure LambdaFunctionCompleted+        "lambdafunctionfailed" -> pure LambdaFunctionFailed+        "lambdafunctionscheduled" -> pure LambdaFunctionScheduled+        "lambdafunctionstarted" -> pure LambdaFunctionStarted+        "lambdafunctiontimedout" -> pure LambdaFunctionTimedOut+        "markerrecorded" -> pure MarkerRecorded+        "recordmarkerfailed" -> pure RecordMarkerFailed+        "requestcancelactivitytaskfailed" -> pure RequestCancelActivityTaskFailed+        "requestcancelexternalworkflowexecutionfailed" -> pure RequestCancelExternalWorkflowExecutionFailed+        "requestcancelexternalworkflowexecutioninitiated" -> pure RequestCancelExternalWorkflowExecutionInitiated+        "scheduleactivitytaskfailed" -> pure ScheduleActivityTaskFailed+        "schedulelambdafunctionfailed" -> pure ScheduleLambdaFunctionFailed+        "signalexternalworkflowexecutionfailed" -> pure SignalExternalWorkflowExecutionFailed+        "signalexternalworkflowexecutioninitiated" -> pure SignalExternalWorkflowExecutionInitiated+        "startchildworkflowexecutionfailed" -> pure StartChildWorkflowExecutionFailed+        "startchildworkflowexecutioninitiated" -> pure StartChildWorkflowExecutionInitiated+        "startlambdafunctionfailed" -> pure StartLambdaFunctionFailed+        "starttimerfailed" -> pure StartTimerFailed+        "timercanceled" -> pure TimerCanceled+        "timerfired" -> pure TimerFired+        "timerstarted" -> pure TimerStarted+        "workflowexecutioncancelrequested" -> pure WorkflowExecutionCancelRequested+        "workflowexecutioncanceled" -> pure WorkflowExecutionCanceled+        "workflowexecutioncompleted" -> pure WorkflowExecutionCompleted+        "workflowexecutioncontinuedasnew" -> pure WorkflowExecutionContinuedAsNew+        "workflowexecutionfailed" -> pure WorkflowExecutionFailed+        "workflowexecutionsignaled" -> pure WorkflowExecutionSignaled+        "workflowexecutionstarted" -> pure WorkflowExecutionStarted+        "workflowexecutionterminated" -> pure WorkflowExecutionTerminated+        "workflowexecutiontimedout" -> pure WorkflowExecutionTimedOut+        e -> fromTextError $ "Failure parsing EventType from value: '" <> e+           <> "'. Accepted values: activitytaskcancelrequested, activitytaskcanceled, activitytaskcompleted, activitytaskfailed, activitytaskscheduled, activitytaskstarted, activitytasktimedout, canceltimerfailed, cancelworkflowexecutionfailed, childworkflowexecutioncanceled, childworkflowexecutioncompleted, childworkflowexecutionfailed, childworkflowexecutionstarted, childworkflowexecutionterminated, childworkflowexecutiontimedout, completeworkflowexecutionfailed, continueasnewworkflowexecutionfailed, decisiontaskcompleted, decisiontaskscheduled, decisiontaskstarted, decisiontasktimedout, externalworkflowexecutioncancelrequested, externalworkflowexecutionsignaled, failworkflowexecutionfailed, lambdafunctioncompleted, lambdafunctionfailed, lambdafunctionscheduled, lambdafunctionstarted, lambdafunctiontimedout, markerrecorded, recordmarkerfailed, requestcancelactivitytaskfailed, requestcancelexternalworkflowexecutionfailed, requestcancelexternalworkflowexecutioninitiated, scheduleactivitytaskfailed, schedulelambdafunctionfailed, signalexternalworkflowexecutionfailed, signalexternalworkflowexecutioninitiated, startchildworkflowexecutionfailed, startchildworkflowexecutioninitiated, startlambdafunctionfailed, starttimerfailed, timercanceled, timerfired, timerstarted, workflowexecutioncancelrequested, workflowexecutioncanceled, workflowexecutioncompleted, workflowexecutioncontinuedasnew, workflowexecutionfailed, workflowexecutionsignaled, workflowexecutionstarted, workflowexecutionterminated, workflowexecutiontimedout"++instance ToText EventType where+    toText = \case+        ActivityTaskCancelRequested -> "activitytaskcancelrequested"+        ActivityTaskCanceled -> "activitytaskcanceled"+        ActivityTaskCompleted -> "activitytaskcompleted"+        ActivityTaskFailed -> "activitytaskfailed"+        ActivityTaskScheduled -> "activitytaskscheduled"+        ActivityTaskStarted -> "activitytaskstarted"+        ActivityTaskTimedOut -> "activitytasktimedout"+        CancelTimerFailed -> "canceltimerfailed"+        CancelWorkflowExecutionFailed -> "cancelworkflowexecutionfailed"+        ChildWorkflowExecutionCanceled -> "childworkflowexecutioncanceled"+        ChildWorkflowExecutionCompleted -> "childworkflowexecutioncompleted"+        ChildWorkflowExecutionFailed -> "childworkflowexecutionfailed"+        ChildWorkflowExecutionStarted -> "childworkflowexecutionstarted"+        ChildWorkflowExecutionTerminated -> "childworkflowexecutionterminated"+        ChildWorkflowExecutionTimedOut -> "childworkflowexecutiontimedout"+        CompleteWorkflowExecutionFailed -> "completeworkflowexecutionfailed"+        ContinueAsNewWorkflowExecutionFailed -> "continueasnewworkflowexecutionfailed"+        DecisionTaskCompleted -> "decisiontaskcompleted"+        DecisionTaskScheduled -> "decisiontaskscheduled"+        DecisionTaskStarted -> "decisiontaskstarted"+        DecisionTaskTimedOut -> "decisiontasktimedout"+        ExternalWorkflowExecutionCancelRequested -> "externalworkflowexecutioncancelrequested"+        ExternalWorkflowExecutionSignaled -> "externalworkflowexecutionsignaled"+        FailWorkflowExecutionFailed -> "failworkflowexecutionfailed"+        LambdaFunctionCompleted -> "lambdafunctioncompleted"+        LambdaFunctionFailed -> "lambdafunctionfailed"+        LambdaFunctionScheduled -> "lambdafunctionscheduled"+        LambdaFunctionStarted -> "lambdafunctionstarted"+        LambdaFunctionTimedOut -> "lambdafunctiontimedout"+        MarkerRecorded -> "markerrecorded"+        RecordMarkerFailed -> "recordmarkerfailed"+        RequestCancelActivityTaskFailed -> "requestcancelactivitytaskfailed"+        RequestCancelExternalWorkflowExecutionFailed -> "requestcancelexternalworkflowexecutionfailed"+        RequestCancelExternalWorkflowExecutionInitiated -> "requestcancelexternalworkflowexecutioninitiated"+        ScheduleActivityTaskFailed -> "scheduleactivitytaskfailed"+        ScheduleLambdaFunctionFailed -> "schedulelambdafunctionfailed"+        SignalExternalWorkflowExecutionFailed -> "signalexternalworkflowexecutionfailed"+        SignalExternalWorkflowExecutionInitiated -> "signalexternalworkflowexecutioninitiated"+        StartChildWorkflowExecutionFailed -> "startchildworkflowexecutionfailed"+        StartChildWorkflowExecutionInitiated -> "startchildworkflowexecutioninitiated"+        StartLambdaFunctionFailed -> "startlambdafunctionfailed"+        StartTimerFailed -> "starttimerfailed"+        TimerCanceled -> "timercanceled"+        TimerFired -> "timerfired"+        TimerStarted -> "timerstarted"+        WorkflowExecutionCancelRequested -> "workflowexecutioncancelrequested"+        WorkflowExecutionCanceled -> "workflowexecutioncanceled"+        WorkflowExecutionCompleted -> "workflowexecutioncompleted"+        WorkflowExecutionContinuedAsNew -> "workflowexecutioncontinuedasnew"+        WorkflowExecutionFailed -> "workflowexecutionfailed"+        WorkflowExecutionSignaled -> "workflowexecutionsignaled"+        WorkflowExecutionStarted -> "workflowexecutionstarted"+        WorkflowExecutionTerminated -> "workflowexecutionterminated"+        WorkflowExecutionTimedOut -> "workflowexecutiontimedout"++instance Hashable     EventType+instance ToByteString EventType+instance ToQuery      EventType+instance ToHeader     EventType++instance FromJSON EventType where+    parseJSON = parseJSONText "EventType"++data ExecutionStatus+    = Closed+    | Open+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ExecutionStatus where+    parser = takeLowerText >>= \case+        "closed" -> pure Closed+        "open" -> pure Open+        e -> fromTextError $ "Failure parsing ExecutionStatus from value: '" <> e+           <> "'. Accepted values: closed, open"++instance ToText ExecutionStatus where+    toText = \case+        Closed -> "closed"+        Open -> "open"++instance Hashable     ExecutionStatus+instance ToByteString ExecutionStatus+instance ToQuery      ExecutionStatus+instance ToHeader     ExecutionStatus++instance FromJSON ExecutionStatus where+    parseJSON = parseJSONText "ExecutionStatus"++data FailWorkflowExecutionFailedCause+    = FWEFCOperationNotPermitted+    | FWEFCUnhandledDecision+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText FailWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure FWEFCOperationNotPermitted+        "unhandled_decision" -> pure FWEFCUnhandledDecision+        e -> fromTextError $ "Failure parsing FailWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, unhandled_decision"++instance ToText FailWorkflowExecutionFailedCause where+    toText = \case+        FWEFCOperationNotPermitted -> "operation_not_permitted"+        FWEFCUnhandledDecision -> "unhandled_decision"++instance Hashable     FailWorkflowExecutionFailedCause+instance ToByteString FailWorkflowExecutionFailedCause+instance ToQuery      FailWorkflowExecutionFailedCause+instance ToHeader     FailWorkflowExecutionFailedCause++instance FromJSON FailWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "FailWorkflowExecutionFailedCause"++data LambdaFunctionTimeoutType =+    LFTTStartToClose+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText LambdaFunctionTimeoutType where+    parser = takeLowerText >>= \case+        "start_to_close" -> pure LFTTStartToClose+        e -> fromTextError $ "Failure parsing LambdaFunctionTimeoutType from value: '" <> e+           <> "'. Accepted values: start_to_close"++instance ToText LambdaFunctionTimeoutType where+    toText = \case+        LFTTStartToClose -> "start_to_close"++instance Hashable     LambdaFunctionTimeoutType+instance ToByteString LambdaFunctionTimeoutType+instance ToQuery      LambdaFunctionTimeoutType+instance ToHeader     LambdaFunctionTimeoutType++instance FromJSON LambdaFunctionTimeoutType where+    parseJSON = parseJSONText "LambdaFunctionTimeoutType"++data RecordMarkerFailedCause =+    RMFCOperationNotPermitted+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText RecordMarkerFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure RMFCOperationNotPermitted+        e -> fromTextError $ "Failure parsing RecordMarkerFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted"++instance ToText RecordMarkerFailedCause where+    toText = \case+        RMFCOperationNotPermitted -> "operation_not_permitted"++instance Hashable     RecordMarkerFailedCause+instance ToByteString RecordMarkerFailedCause+instance ToQuery      RecordMarkerFailedCause+instance ToHeader     RecordMarkerFailedCause++instance FromJSON RecordMarkerFailedCause where+    parseJSON = parseJSONText "RecordMarkerFailedCause"++data RegistrationStatus+    = Deprecated+    | Registered+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText RegistrationStatus where+    parser = takeLowerText >>= \case+        "deprecated" -> pure Deprecated+        "registered" -> pure Registered+        e -> fromTextError $ "Failure parsing RegistrationStatus from value: '" <> e+           <> "'. Accepted values: deprecated, registered"++instance ToText RegistrationStatus where+    toText = \case+        Deprecated -> "deprecated"+        Registered -> "registered"++instance Hashable     RegistrationStatus+instance ToByteString RegistrationStatus+instance ToQuery      RegistrationStatus+instance ToHeader     RegistrationStatus++instance ToJSON RegistrationStatus where+    toJSON = toJSONText++instance FromJSON RegistrationStatus where+    parseJSON = parseJSONText "RegistrationStatus"++data RequestCancelActivityTaskFailedCause+    = RCATFCActivityIdUnknown+    | RCATFCOperationNotPermitted+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText RequestCancelActivityTaskFailedCause where+    parser = takeLowerText >>= \case+        "activity_id_unknown" -> pure RCATFCActivityIdUnknown+        "operation_not_permitted" -> pure RCATFCOperationNotPermitted+        e -> fromTextError $ "Failure parsing RequestCancelActivityTaskFailedCause from value: '" <> e+           <> "'. Accepted values: activity_id_unknown, operation_not_permitted"++instance ToText RequestCancelActivityTaskFailedCause where+    toText = \case+        RCATFCActivityIdUnknown -> "activity_id_unknown"+        RCATFCOperationNotPermitted -> "operation_not_permitted"++instance Hashable     RequestCancelActivityTaskFailedCause+instance ToByteString RequestCancelActivityTaskFailedCause+instance ToQuery      RequestCancelActivityTaskFailedCause+instance ToHeader     RequestCancelActivityTaskFailedCause++instance FromJSON RequestCancelActivityTaskFailedCause where+    parseJSON = parseJSONText "RequestCancelActivityTaskFailedCause"++data RequestCancelExternalWorkflowExecutionFailedCause+    = RCEWEFCOperationNotPermitted+    | RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded+    | RCEWEFCUnknownExternalWorkflowExecution+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText RequestCancelExternalWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure RCEWEFCOperationNotPermitted+        "request_cancel_external_workflow_execution_rate_exceeded" -> pure RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded+        "unknown_external_workflow_execution" -> pure RCEWEFCUnknownExternalWorkflowExecution+        e -> fromTextError $ "Failure parsing RequestCancelExternalWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, request_cancel_external_workflow_execution_rate_exceeded, unknown_external_workflow_execution"++instance ToText RequestCancelExternalWorkflowExecutionFailedCause where+    toText = \case+        RCEWEFCOperationNotPermitted -> "operation_not_permitted"+        RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded -> "request_cancel_external_workflow_execution_rate_exceeded"+        RCEWEFCUnknownExternalWorkflowExecution -> "unknown_external_workflow_execution"++instance Hashable     RequestCancelExternalWorkflowExecutionFailedCause+instance ToByteString RequestCancelExternalWorkflowExecutionFailedCause+instance ToQuery      RequestCancelExternalWorkflowExecutionFailedCause+instance ToHeader     RequestCancelExternalWorkflowExecutionFailedCause++instance FromJSON RequestCancelExternalWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "RequestCancelExternalWorkflowExecutionFailedCause"++data ScheduleActivityTaskFailedCause+    = SATFCActivityCreationRateExceeded+    | SATFCActivityIdAlreadyInUse+    | SATFCActivityTypeDeprecated+    | SATFCActivityTypeDoesNotExist+    | SATFCDefaultHeartbeatTimeoutUndefined+    | SATFCDefaultScheduleToCloseTimeoutUndefined+    | SATFCDefaultScheduleToStartTimeoutUndefined+    | SATFCDefaultStartToCloseTimeoutUndefined+    | SATFCDefaultTaskListUndefined+    | SATFCOpenActivitiesLimitExceeded+    | SATFCOperationNotPermitted+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ScheduleActivityTaskFailedCause where+    parser = takeLowerText >>= \case+        "activity_creation_rate_exceeded" -> pure SATFCActivityCreationRateExceeded+        "activity_id_already_in_use" -> pure SATFCActivityIdAlreadyInUse+        "activity_type_deprecated" -> pure SATFCActivityTypeDeprecated+        "activity_type_does_not_exist" -> pure SATFCActivityTypeDoesNotExist+        "default_heartbeat_timeout_undefined" -> pure SATFCDefaultHeartbeatTimeoutUndefined+        "default_schedule_to_close_timeout_undefined" -> pure SATFCDefaultScheduleToCloseTimeoutUndefined+        "default_schedule_to_start_timeout_undefined" -> pure SATFCDefaultScheduleToStartTimeoutUndefined+        "default_start_to_close_timeout_undefined" -> pure SATFCDefaultStartToCloseTimeoutUndefined+        "default_task_list_undefined" -> pure SATFCDefaultTaskListUndefined+        "open_activities_limit_exceeded" -> pure SATFCOpenActivitiesLimitExceeded+        "operation_not_permitted" -> pure SATFCOperationNotPermitted+        e -> fromTextError $ "Failure parsing ScheduleActivityTaskFailedCause from value: '" <> e+           <> "'. Accepted values: activity_creation_rate_exceeded, activity_id_already_in_use, activity_type_deprecated, activity_type_does_not_exist, default_heartbeat_timeout_undefined, default_schedule_to_close_timeout_undefined, default_schedule_to_start_timeout_undefined, default_start_to_close_timeout_undefined, default_task_list_undefined, open_activities_limit_exceeded, operation_not_permitted"++instance ToText ScheduleActivityTaskFailedCause where+    toText = \case+        SATFCActivityCreationRateExceeded -> "activity_creation_rate_exceeded"+        SATFCActivityIdAlreadyInUse -> "activity_id_already_in_use"+        SATFCActivityTypeDeprecated -> "activity_type_deprecated"+        SATFCActivityTypeDoesNotExist -> "activity_type_does_not_exist"+        SATFCDefaultHeartbeatTimeoutUndefined -> "default_heartbeat_timeout_undefined"+        SATFCDefaultScheduleToCloseTimeoutUndefined -> "default_schedule_to_close_timeout_undefined"+        SATFCDefaultScheduleToStartTimeoutUndefined -> "default_schedule_to_start_timeout_undefined"+        SATFCDefaultStartToCloseTimeoutUndefined -> "default_start_to_close_timeout_undefined"+        SATFCDefaultTaskListUndefined -> "default_task_list_undefined"+        SATFCOpenActivitiesLimitExceeded -> "open_activities_limit_exceeded"+        SATFCOperationNotPermitted -> "operation_not_permitted"++instance Hashable     ScheduleActivityTaskFailedCause+instance ToByteString ScheduleActivityTaskFailedCause+instance ToQuery      ScheduleActivityTaskFailedCause+instance ToHeader     ScheduleActivityTaskFailedCause++instance FromJSON ScheduleActivityTaskFailedCause where+    parseJSON = parseJSONText "ScheduleActivityTaskFailedCause"++data ScheduleLambdaFunctionFailedCause+    = IdAlreadyInUse+    | LambdaFunctionCreationRateExceeded+    | LambdaServiceNotAvailableInRegion+    | OpenLambdaFunctionsLimitExceeded+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText ScheduleLambdaFunctionFailedCause where+    parser = takeLowerText >>= \case+        "id_already_in_use" -> pure IdAlreadyInUse+        "lambda_function_creation_rate_exceeded" -> pure LambdaFunctionCreationRateExceeded+        "lambda_service_not_available_in_region" -> pure LambdaServiceNotAvailableInRegion+        "open_lambda_functions_limit_exceeded" -> pure OpenLambdaFunctionsLimitExceeded+        e -> fromTextError $ "Failure parsing ScheduleLambdaFunctionFailedCause from value: '" <> e+           <> "'. Accepted values: id_already_in_use, lambda_function_creation_rate_exceeded, lambda_service_not_available_in_region, open_lambda_functions_limit_exceeded"++instance ToText ScheduleLambdaFunctionFailedCause where+    toText = \case+        IdAlreadyInUse -> "id_already_in_use"+        LambdaFunctionCreationRateExceeded -> "lambda_function_creation_rate_exceeded"+        LambdaServiceNotAvailableInRegion -> "lambda_service_not_available_in_region"+        OpenLambdaFunctionsLimitExceeded -> "open_lambda_functions_limit_exceeded"++instance Hashable     ScheduleLambdaFunctionFailedCause+instance ToByteString ScheduleLambdaFunctionFailedCause+instance ToQuery      ScheduleLambdaFunctionFailedCause+instance ToHeader     ScheduleLambdaFunctionFailedCause++instance FromJSON ScheduleLambdaFunctionFailedCause where+    parseJSON = parseJSONText "ScheduleLambdaFunctionFailedCause"++data SignalExternalWorkflowExecutionFailedCause+    = SEWEFCOperationNotPermitted+    | SEWEFCSignalExternalWorkflowExecutionRateExceeded+    | SEWEFCUnknownExternalWorkflowExecution+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText SignalExternalWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "operation_not_permitted" -> pure SEWEFCOperationNotPermitted+        "signal_external_workflow_execution_rate_exceeded" -> pure SEWEFCSignalExternalWorkflowExecutionRateExceeded+        "unknown_external_workflow_execution" -> pure SEWEFCUnknownExternalWorkflowExecution+        e -> fromTextError $ "Failure parsing SignalExternalWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: operation_not_permitted, signal_external_workflow_execution_rate_exceeded, unknown_external_workflow_execution"++instance ToText SignalExternalWorkflowExecutionFailedCause where+    toText = \case+        SEWEFCOperationNotPermitted -> "operation_not_permitted"+        SEWEFCSignalExternalWorkflowExecutionRateExceeded -> "signal_external_workflow_execution_rate_exceeded"+        SEWEFCUnknownExternalWorkflowExecution -> "unknown_external_workflow_execution"++instance Hashable     SignalExternalWorkflowExecutionFailedCause+instance ToByteString SignalExternalWorkflowExecutionFailedCause+instance ToQuery      SignalExternalWorkflowExecutionFailedCause+instance ToHeader     SignalExternalWorkflowExecutionFailedCause++instance FromJSON SignalExternalWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "SignalExternalWorkflowExecutionFailedCause"++data StartChildWorkflowExecutionFailedCause+    = SCWEFCChildCreationRateExceeded+    | SCWEFCDefaultChildPolicyUndefined+    | SCWEFCDefaultExecutionStartToCloseTimeoutUndefined+    | SCWEFCDefaultTaskListUndefined+    | SCWEFCDefaultTaskStartToCloseTimeoutUndefined+    | SCWEFCOpenChildrenLimitExceeded+    | SCWEFCOpenWorkflowsLimitExceeded+    | SCWEFCOperationNotPermitted+    | SCWEFCWorkflowAlreadyRunning+    | SCWEFCWorkflowTypeDeprecated+    | SCWEFCWorkflowTypeDoesNotExist+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText StartChildWorkflowExecutionFailedCause where+    parser = takeLowerText >>= \case+        "child_creation_rate_exceeded" -> pure SCWEFCChildCreationRateExceeded+        "default_child_policy_undefined" -> pure SCWEFCDefaultChildPolicyUndefined+        "default_execution_start_to_close_timeout_undefined" -> pure SCWEFCDefaultExecutionStartToCloseTimeoutUndefined+        "default_task_list_undefined" -> pure SCWEFCDefaultTaskListUndefined+        "default_task_start_to_close_timeout_undefined" -> pure SCWEFCDefaultTaskStartToCloseTimeoutUndefined+        "open_children_limit_exceeded" -> pure SCWEFCOpenChildrenLimitExceeded+        "open_workflows_limit_exceeded" -> pure SCWEFCOpenWorkflowsLimitExceeded+        "operation_not_permitted" -> pure SCWEFCOperationNotPermitted+        "workflow_already_running" -> pure SCWEFCWorkflowAlreadyRunning+        "workflow_type_deprecated" -> pure SCWEFCWorkflowTypeDeprecated+        "workflow_type_does_not_exist" -> pure SCWEFCWorkflowTypeDoesNotExist+        e -> fromTextError $ "Failure parsing StartChildWorkflowExecutionFailedCause from value: '" <> e+           <> "'. Accepted values: child_creation_rate_exceeded, default_child_policy_undefined, default_execution_start_to_close_timeout_undefined, default_task_list_undefined, default_task_start_to_close_timeout_undefined, open_children_limit_exceeded, open_workflows_limit_exceeded, operation_not_permitted, workflow_already_running, workflow_type_deprecated, workflow_type_does_not_exist"++instance ToText StartChildWorkflowExecutionFailedCause where+    toText = \case+        SCWEFCChildCreationRateExceeded -> "child_creation_rate_exceeded"+        SCWEFCDefaultChildPolicyUndefined -> "default_child_policy_undefined"+        SCWEFCDefaultExecutionStartToCloseTimeoutUndefined -> "default_execution_start_to_close_timeout_undefined"+        SCWEFCDefaultTaskListUndefined -> "default_task_list_undefined"+        SCWEFCDefaultTaskStartToCloseTimeoutUndefined -> "default_task_start_to_close_timeout_undefined"+        SCWEFCOpenChildrenLimitExceeded -> "open_children_limit_exceeded"+        SCWEFCOpenWorkflowsLimitExceeded -> "open_workflows_limit_exceeded"+        SCWEFCOperationNotPermitted -> "operation_not_permitted"+        SCWEFCWorkflowAlreadyRunning -> "workflow_already_running"+        SCWEFCWorkflowTypeDeprecated -> "workflow_type_deprecated"+        SCWEFCWorkflowTypeDoesNotExist -> "workflow_type_does_not_exist"++instance Hashable     StartChildWorkflowExecutionFailedCause+instance ToByteString StartChildWorkflowExecutionFailedCause+instance ToQuery      StartChildWorkflowExecutionFailedCause+instance ToHeader     StartChildWorkflowExecutionFailedCause++instance FromJSON StartChildWorkflowExecutionFailedCause where+    parseJSON = parseJSONText "StartChildWorkflowExecutionFailedCause"++data StartLambdaFunctionFailedCause =+    AssumeRoleFailed+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText StartLambdaFunctionFailedCause where+    parser = takeLowerText >>= \case+        "assume_role_failed" -> pure AssumeRoleFailed+        e -> fromTextError $ "Failure parsing StartLambdaFunctionFailedCause from value: '" <> e+           <> "'. Accepted values: assume_role_failed"++instance ToText StartLambdaFunctionFailedCause where+    toText = \case+        AssumeRoleFailed -> "assume_role_failed"++instance Hashable     StartLambdaFunctionFailedCause+instance ToByteString StartLambdaFunctionFailedCause+instance ToQuery      StartLambdaFunctionFailedCause+instance ToHeader     StartLambdaFunctionFailedCause++instance FromJSON StartLambdaFunctionFailedCause where+    parseJSON = parseJSONText "StartLambdaFunctionFailedCause"++data StartTimerFailedCause+    = OpenTimersLimitExceeded+    | OperationNotPermitted+    | TimerCreationRateExceeded+    | TimerIdAlreadyInUse+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText StartTimerFailedCause where+    parser = takeLowerText >>= \case+        "open_timers_limit_exceeded" -> pure OpenTimersLimitExceeded+        "operation_not_permitted" -> pure OperationNotPermitted+        "timer_creation_rate_exceeded" -> pure TimerCreationRateExceeded+        "timer_id_already_in_use" -> pure TimerIdAlreadyInUse+        e -> fromTextError $ "Failure parsing StartTimerFailedCause from value: '" <> e+           <> "'. Accepted values: open_timers_limit_exceeded, operation_not_permitted, timer_creation_rate_exceeded, timer_id_already_in_use"++instance ToText StartTimerFailedCause where+    toText = \case+        OpenTimersLimitExceeded -> "open_timers_limit_exceeded"+        OperationNotPermitted -> "operation_not_permitted"+        TimerCreationRateExceeded -> "timer_creation_rate_exceeded"+        TimerIdAlreadyInUse -> "timer_id_already_in_use"++instance Hashable     StartTimerFailedCause+instance ToByteString StartTimerFailedCause+instance ToQuery      StartTimerFailedCause+instance ToHeader     StartTimerFailedCause++instance FromJSON StartTimerFailedCause where+    parseJSON = parseJSONText "StartTimerFailedCause"++data WorkflowExecutionCancelRequestedCause =+    ChildPolicyApplied+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText WorkflowExecutionCancelRequestedCause where+    parser = takeLowerText >>= \case+        "child_policy_applied" -> pure ChildPolicyApplied+        e -> fromTextError $ "Failure parsing WorkflowExecutionCancelRequestedCause from value: '" <> e+           <> "'. Accepted values: child_policy_applied"++instance ToText WorkflowExecutionCancelRequestedCause where+    toText = \case+        ChildPolicyApplied -> "child_policy_applied"++instance Hashable     WorkflowExecutionCancelRequestedCause+instance ToByteString WorkflowExecutionCancelRequestedCause+instance ToQuery      WorkflowExecutionCancelRequestedCause+instance ToHeader     WorkflowExecutionCancelRequestedCause++instance FromJSON WorkflowExecutionCancelRequestedCause where+    parseJSON = parseJSONText "WorkflowExecutionCancelRequestedCause"++data WorkflowExecutionTerminatedCause+    = WETCChildPolicyApplied+    | WETCEventLimitExceeded+    | WETCOperatorInitiated+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText WorkflowExecutionTerminatedCause where+    parser = takeLowerText >>= \case+        "child_policy_applied" -> pure WETCChildPolicyApplied+        "event_limit_exceeded" -> pure WETCEventLimitExceeded+        "operator_initiated" -> pure WETCOperatorInitiated+        e -> fromTextError $ "Failure parsing WorkflowExecutionTerminatedCause from value: '" <> e+           <> "'. Accepted values: child_policy_applied, event_limit_exceeded, operator_initiated"++instance ToText WorkflowExecutionTerminatedCause where+    toText = \case+        WETCChildPolicyApplied -> "child_policy_applied"+        WETCEventLimitExceeded -> "event_limit_exceeded"+        WETCOperatorInitiated -> "operator_initiated"++instance Hashable     WorkflowExecutionTerminatedCause+instance ToByteString WorkflowExecutionTerminatedCause+instance ToQuery      WorkflowExecutionTerminatedCause+instance ToHeader     WorkflowExecutionTerminatedCause++instance FromJSON WorkflowExecutionTerminatedCause where+    parseJSON = parseJSONText "WorkflowExecutionTerminatedCause"++data WorkflowExecutionTimeoutType =+    WETTStartToClose+    deriving (Eq,Ord,Read,Show,Enum,Data,Typeable,Generic)++instance FromText WorkflowExecutionTimeoutType where+    parser = takeLowerText >>= \case+        "start_to_close" -> pure WETTStartToClose+        e -> fromTextError $ "Failure parsing WorkflowExecutionTimeoutType from value: '" <> e+           <> "'. Accepted values: start_to_close"++instance ToText WorkflowExecutionTimeoutType where+    toText = \case+        WETTStartToClose -> "start_to_close"++instance Hashable     WorkflowExecutionTimeoutType+instance ToByteString WorkflowExecutionTimeoutType+instance ToQuery      WorkflowExecutionTimeoutType+instance ToHeader     WorkflowExecutionTimeoutType++instance FromJSON WorkflowExecutionTimeoutType where+    parseJSON = parseJSONText "WorkflowExecutionTimeoutType"
+ gen/Network/AWS/SWF/Waiters.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies      #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.SWF.Waiters+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.SWF.Waiters where++import           Network.AWS.Prelude+import           Network.AWS.SWF.Types+import           Network.AWS.Waiter
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.SWF+import Test.AWS.SWF.Internal++main :: IO ()+main = defaultMain $ testGroup "SWF"+    [ testGroup "tests"    tests+    , testGroup "fixtures" fixtures+    ]
+ test/Test/AWS/Gen/SWF.hs view
@@ -0,0 +1,566 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-orphans        #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Test.AWS.Gen.SWF+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.SWF where++import Data.Proxy+import Test.AWS.Fixture+import Test.AWS.Prelude+import Test.Tasty+import Network.AWS.SWF+import Test.AWS.SWF.Internal++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+--     [ testGroup "request"+--         [ testListActivityTypes $+--             listActivityTypes+--+--         , testListOpenWorkflowExecutions $+--             listOpenWorkflowExecutions+--+--         , testRegisterActivityType $+--             registerActivityType+--+--         , testCountPendingActivityTasks $+--             countPendingActivityTasks+--+--         , testRegisterWorkflowType $+--             registerWorkflowType+--+--         , testRespondActivityTaskFailed $+--             respondActivityTaskFailed+--+--         , testListWorkflowTypes $+--             listWorkflowTypes+--+--         , testCountOpenWorkflowExecutions $+--             countOpenWorkflowExecutions+--+--         , testDescribeWorkflowType $+--             describeWorkflowType+--+--         , testRequestCancelWorkflowExecution $+--             requestCancelWorkflowExecution+--+--         , testDeprecateWorkflowType $+--             deprecateWorkflowType+--+--         , testRespondDecisionTaskCompleted $+--             respondDecisionTaskCompleted+--+--         , testRegisterDomain $+--             registerDomain+--+--         , testDescribeWorkflowExecution $+--             describeWorkflowExecution+--+--         , testPollForActivityTask $+--             pollForActivityTask+--+--         , testRespondActivityTaskCompleted $+--             respondActivityTaskCompleted+--+--         , testSignalWorkflowExecution $+--             signalWorkflowExecution+--+--         , testCountPendingDecisionTasks $+--             countPendingDecisionTasks+--+--         , testListClosedWorkflowExecutions $+--             listClosedWorkflowExecutions+--+--         , testRecordActivityTaskHeartbeat $+--             recordActivityTaskHeartbeat+--+--         , testDescribeDomain $+--             describeDomain+--+--         , testDeprecateDomain $+--             deprecateDomain+--+--         , testGetWorkflowExecutionHistory $+--             getWorkflowExecutionHistory+--+--         , testDescribeActivityType $+--             describeActivityType+--+--         , testDeprecateActivityType $+--             deprecateActivityType+--+--         , testTerminateWorkflowExecution $+--             terminateWorkflowExecution+--+--         , testCountClosedWorkflowExecutions $+--             countClosedWorkflowExecutions+--+--         , testRespondActivityTaskCanceled $+--             respondActivityTaskCanceled+--+--         , testListDomains $+--             listDomains+--+--         , testStartWorkflowExecution $+--             startWorkflowExecution+--+--         , testPollForDecisionTask $+--             pollForDecisionTask+--+--           ]++--     , testGroup "response"+--         [ testListActivityTypesResponse $+--             listActivityTypesResponse+--+--         , testListOpenWorkflowExecutionsResponse $+--             workflowExecutionInfos+--+--         , testRegisterActivityTypeResponse $+--             registerActivityTypeResponse+--+--         , testCountPendingActivityTasksResponse $+--             pendingTaskCount+--+--         , testRegisterWorkflowTypeResponse $+--             registerWorkflowTypeResponse+--+--         , testRespondActivityTaskFailedResponse $+--             respondActivityTaskFailedResponse+--+--         , testListWorkflowTypesResponse $+--             listWorkflowTypesResponse+--+--         , testCountOpenWorkflowExecutionsResponse $+--             workflowExecutionCount+--+--         , testDescribeWorkflowTypeResponse $+--             describeWorkflowTypeResponse+--+--         , testRequestCancelWorkflowExecutionResponse $+--             requestCancelWorkflowExecutionResponse+--+--         , testDeprecateWorkflowTypeResponse $+--             deprecateWorkflowTypeResponse+--+--         , testRespondDecisionTaskCompletedResponse $+--             respondDecisionTaskCompletedResponse+--+--         , testRegisterDomainResponse $+--             registerDomainResponse+--+--         , testDescribeWorkflowExecutionResponse $+--             describeWorkflowExecutionResponse+--+--         , testPollForActivityTaskResponse $+--             pollForActivityTaskResponse+--+--         , testRespondActivityTaskCompletedResponse $+--             respondActivityTaskCompletedResponse+--+--         , testSignalWorkflowExecutionResponse $+--             signalWorkflowExecutionResponse+--+--         , testCountPendingDecisionTasksResponse $+--             pendingTaskCount+--+--         , testListClosedWorkflowExecutionsResponse $+--             workflowExecutionInfos+--+--         , testRecordActivityTaskHeartbeatResponse $+--             recordActivityTaskHeartbeatResponse+--+--         , testDescribeDomainResponse $+--             describeDomainResponse+--+--         , testDeprecateDomainResponse $+--             deprecateDomainResponse+--+--         , testGetWorkflowExecutionHistoryResponse $+--             getWorkflowExecutionHistoryResponse+--+--         , testDescribeActivityTypeResponse $+--             describeActivityTypeResponse+--+--         , testDeprecateActivityTypeResponse $+--             deprecateActivityTypeResponse+--+--         , testTerminateWorkflowExecutionResponse $+--             terminateWorkflowExecutionResponse+--+--         , testCountClosedWorkflowExecutionsResponse $+--             workflowExecutionCount+--+--         , testRespondActivityTaskCanceledResponse $+--             respondActivityTaskCanceledResponse+--+--         , testListDomainsResponse $+--             listDomainsResponse+--+--         , testStartWorkflowExecutionResponse $+--             startWorkflowExecutionResponse+--+--         , testPollForDecisionTaskResponse $+--             pollForDecisionTaskResponse+--+--           ]+--     ]++-- Requests++testListActivityTypes :: ListActivityTypes -> TestTree+testListActivityTypes = req+    "ListActivityTypes"+    "fixture/ListActivityTypes"++testListOpenWorkflowExecutions :: ListOpenWorkflowExecutions -> TestTree+testListOpenWorkflowExecutions = req+    "ListOpenWorkflowExecutions"+    "fixture/ListOpenWorkflowExecutions"++testRegisterActivityType :: RegisterActivityType -> TestTree+testRegisterActivityType = req+    "RegisterActivityType"+    "fixture/RegisterActivityType"++testCountPendingActivityTasks :: CountPendingActivityTasks -> TestTree+testCountPendingActivityTasks = req+    "CountPendingActivityTasks"+    "fixture/CountPendingActivityTasks"++testRegisterWorkflowType :: RegisterWorkflowType -> TestTree+testRegisterWorkflowType = req+    "RegisterWorkflowType"+    "fixture/RegisterWorkflowType"++testRespondActivityTaskFailed :: RespondActivityTaskFailed -> TestTree+testRespondActivityTaskFailed = req+    "RespondActivityTaskFailed"+    "fixture/RespondActivityTaskFailed"++testListWorkflowTypes :: ListWorkflowTypes -> TestTree+testListWorkflowTypes = req+    "ListWorkflowTypes"+    "fixture/ListWorkflowTypes"++testCountOpenWorkflowExecutions :: CountOpenWorkflowExecutions -> TestTree+testCountOpenWorkflowExecutions = req+    "CountOpenWorkflowExecutions"+    "fixture/CountOpenWorkflowExecutions"++testDescribeWorkflowType :: DescribeWorkflowType -> TestTree+testDescribeWorkflowType = req+    "DescribeWorkflowType"+    "fixture/DescribeWorkflowType"++testRequestCancelWorkflowExecution :: RequestCancelWorkflowExecution -> TestTree+testRequestCancelWorkflowExecution = req+    "RequestCancelWorkflowExecution"+    "fixture/RequestCancelWorkflowExecution"++testDeprecateWorkflowType :: DeprecateWorkflowType -> TestTree+testDeprecateWorkflowType = req+    "DeprecateWorkflowType"+    "fixture/DeprecateWorkflowType"++testRespondDecisionTaskCompleted :: RespondDecisionTaskCompleted -> TestTree+testRespondDecisionTaskCompleted = req+    "RespondDecisionTaskCompleted"+    "fixture/RespondDecisionTaskCompleted"++testRegisterDomain :: RegisterDomain -> TestTree+testRegisterDomain = req+    "RegisterDomain"+    "fixture/RegisterDomain"++testDescribeWorkflowExecution :: DescribeWorkflowExecution -> TestTree+testDescribeWorkflowExecution = req+    "DescribeWorkflowExecution"+    "fixture/DescribeWorkflowExecution"++testPollForActivityTask :: PollForActivityTask -> TestTree+testPollForActivityTask = req+    "PollForActivityTask"+    "fixture/PollForActivityTask"++testRespondActivityTaskCompleted :: RespondActivityTaskCompleted -> TestTree+testRespondActivityTaskCompleted = req+    "RespondActivityTaskCompleted"+    "fixture/RespondActivityTaskCompleted"++testSignalWorkflowExecution :: SignalWorkflowExecution -> TestTree+testSignalWorkflowExecution = req+    "SignalWorkflowExecution"+    "fixture/SignalWorkflowExecution"++testCountPendingDecisionTasks :: CountPendingDecisionTasks -> TestTree+testCountPendingDecisionTasks = req+    "CountPendingDecisionTasks"+    "fixture/CountPendingDecisionTasks"++testListClosedWorkflowExecutions :: ListClosedWorkflowExecutions -> TestTree+testListClosedWorkflowExecutions = req+    "ListClosedWorkflowExecutions"+    "fixture/ListClosedWorkflowExecutions"++testRecordActivityTaskHeartbeat :: RecordActivityTaskHeartbeat -> TestTree+testRecordActivityTaskHeartbeat = req+    "RecordActivityTaskHeartbeat"+    "fixture/RecordActivityTaskHeartbeat"++testDescribeDomain :: DescribeDomain -> TestTree+testDescribeDomain = req+    "DescribeDomain"+    "fixture/DescribeDomain"++testDeprecateDomain :: DeprecateDomain -> TestTree+testDeprecateDomain = req+    "DeprecateDomain"+    "fixture/DeprecateDomain"++testGetWorkflowExecutionHistory :: GetWorkflowExecutionHistory -> TestTree+testGetWorkflowExecutionHistory = req+    "GetWorkflowExecutionHistory"+    "fixture/GetWorkflowExecutionHistory"++testDescribeActivityType :: DescribeActivityType -> TestTree+testDescribeActivityType = req+    "DescribeActivityType"+    "fixture/DescribeActivityType"++testDeprecateActivityType :: DeprecateActivityType -> TestTree+testDeprecateActivityType = req+    "DeprecateActivityType"+    "fixture/DeprecateActivityType"++testTerminateWorkflowExecution :: TerminateWorkflowExecution -> TestTree+testTerminateWorkflowExecution = req+    "TerminateWorkflowExecution"+    "fixture/TerminateWorkflowExecution"++testCountClosedWorkflowExecutions :: CountClosedWorkflowExecutions -> TestTree+testCountClosedWorkflowExecutions = req+    "CountClosedWorkflowExecutions"+    "fixture/CountClosedWorkflowExecutions"++testRespondActivityTaskCanceled :: RespondActivityTaskCanceled -> TestTree+testRespondActivityTaskCanceled = req+    "RespondActivityTaskCanceled"+    "fixture/RespondActivityTaskCanceled"++testListDomains :: ListDomains -> TestTree+testListDomains = req+    "ListDomains"+    "fixture/ListDomains"++testStartWorkflowExecution :: StartWorkflowExecution -> TestTree+testStartWorkflowExecution = req+    "StartWorkflowExecution"+    "fixture/StartWorkflowExecution"++testPollForDecisionTask :: PollForDecisionTask -> TestTree+testPollForDecisionTask = req+    "PollForDecisionTask"+    "fixture/PollForDecisionTask"++-- Responses++testListActivityTypesResponse :: ListActivityTypesResponse -> TestTree+testListActivityTypesResponse = res+    "ListActivityTypesResponse"+    "fixture/ListActivityTypesResponse"+    (Proxy :: Proxy ListActivityTypes)++testListOpenWorkflowExecutionsResponse :: WorkflowExecutionInfos -> TestTree+testListOpenWorkflowExecutionsResponse = res+    "ListOpenWorkflowExecutionsResponse"+    "fixture/ListOpenWorkflowExecutionsResponse"+    (Proxy :: Proxy ListOpenWorkflowExecutions)++testRegisterActivityTypeResponse :: RegisterActivityTypeResponse -> TestTree+testRegisterActivityTypeResponse = res+    "RegisterActivityTypeResponse"+    "fixture/RegisterActivityTypeResponse"+    (Proxy :: Proxy RegisterActivityType)++testCountPendingActivityTasksResponse :: PendingTaskCount -> TestTree+testCountPendingActivityTasksResponse = res+    "CountPendingActivityTasksResponse"+    "fixture/CountPendingActivityTasksResponse"+    (Proxy :: Proxy CountPendingActivityTasks)++testRegisterWorkflowTypeResponse :: RegisterWorkflowTypeResponse -> TestTree+testRegisterWorkflowTypeResponse = res+    "RegisterWorkflowTypeResponse"+    "fixture/RegisterWorkflowTypeResponse"+    (Proxy :: Proxy RegisterWorkflowType)++testRespondActivityTaskFailedResponse :: RespondActivityTaskFailedResponse -> TestTree+testRespondActivityTaskFailedResponse = res+    "RespondActivityTaskFailedResponse"+    "fixture/RespondActivityTaskFailedResponse"+    (Proxy :: Proxy RespondActivityTaskFailed)++testListWorkflowTypesResponse :: ListWorkflowTypesResponse -> TestTree+testListWorkflowTypesResponse = res+    "ListWorkflowTypesResponse"+    "fixture/ListWorkflowTypesResponse"+    (Proxy :: Proxy ListWorkflowTypes)++testCountOpenWorkflowExecutionsResponse :: WorkflowExecutionCount -> TestTree+testCountOpenWorkflowExecutionsResponse = res+    "CountOpenWorkflowExecutionsResponse"+    "fixture/CountOpenWorkflowExecutionsResponse"+    (Proxy :: Proxy CountOpenWorkflowExecutions)++testDescribeWorkflowTypeResponse :: DescribeWorkflowTypeResponse -> TestTree+testDescribeWorkflowTypeResponse = res+    "DescribeWorkflowTypeResponse"+    "fixture/DescribeWorkflowTypeResponse"+    (Proxy :: Proxy DescribeWorkflowType)++testRequestCancelWorkflowExecutionResponse :: RequestCancelWorkflowExecutionResponse -> TestTree+testRequestCancelWorkflowExecutionResponse = res+    "RequestCancelWorkflowExecutionResponse"+    "fixture/RequestCancelWorkflowExecutionResponse"+    (Proxy :: Proxy RequestCancelWorkflowExecution)++testDeprecateWorkflowTypeResponse :: DeprecateWorkflowTypeResponse -> TestTree+testDeprecateWorkflowTypeResponse = res+    "DeprecateWorkflowTypeResponse"+    "fixture/DeprecateWorkflowTypeResponse"+    (Proxy :: Proxy DeprecateWorkflowType)++testRespondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse -> TestTree+testRespondDecisionTaskCompletedResponse = res+    "RespondDecisionTaskCompletedResponse"+    "fixture/RespondDecisionTaskCompletedResponse"+    (Proxy :: Proxy RespondDecisionTaskCompleted)++testRegisterDomainResponse :: RegisterDomainResponse -> TestTree+testRegisterDomainResponse = res+    "RegisterDomainResponse"+    "fixture/RegisterDomainResponse"+    (Proxy :: Proxy RegisterDomain)++testDescribeWorkflowExecutionResponse :: DescribeWorkflowExecutionResponse -> TestTree+testDescribeWorkflowExecutionResponse = res+    "DescribeWorkflowExecutionResponse"+    "fixture/DescribeWorkflowExecutionResponse"+    (Proxy :: Proxy DescribeWorkflowExecution)++testPollForActivityTaskResponse :: PollForActivityTaskResponse -> TestTree+testPollForActivityTaskResponse = res+    "PollForActivityTaskResponse"+    "fixture/PollForActivityTaskResponse"+    (Proxy :: Proxy PollForActivityTask)++testRespondActivityTaskCompletedResponse :: RespondActivityTaskCompletedResponse -> TestTree+testRespondActivityTaskCompletedResponse = res+    "RespondActivityTaskCompletedResponse"+    "fixture/RespondActivityTaskCompletedResponse"+    (Proxy :: Proxy RespondActivityTaskCompleted)++testSignalWorkflowExecutionResponse :: SignalWorkflowExecutionResponse -> TestTree+testSignalWorkflowExecutionResponse = res+    "SignalWorkflowExecutionResponse"+    "fixture/SignalWorkflowExecutionResponse"+    (Proxy :: Proxy SignalWorkflowExecution)++testCountPendingDecisionTasksResponse :: PendingTaskCount -> TestTree+testCountPendingDecisionTasksResponse = res+    "CountPendingDecisionTasksResponse"+    "fixture/CountPendingDecisionTasksResponse"+    (Proxy :: Proxy CountPendingDecisionTasks)++testListClosedWorkflowExecutionsResponse :: WorkflowExecutionInfos -> TestTree+testListClosedWorkflowExecutionsResponse = res+    "ListClosedWorkflowExecutionsResponse"+    "fixture/ListClosedWorkflowExecutionsResponse"+    (Proxy :: Proxy ListClosedWorkflowExecutions)++testRecordActivityTaskHeartbeatResponse :: RecordActivityTaskHeartbeatResponse -> TestTree+testRecordActivityTaskHeartbeatResponse = res+    "RecordActivityTaskHeartbeatResponse"+    "fixture/RecordActivityTaskHeartbeatResponse"+    (Proxy :: Proxy RecordActivityTaskHeartbeat)++testDescribeDomainResponse :: DescribeDomainResponse -> TestTree+testDescribeDomainResponse = res+    "DescribeDomainResponse"+    "fixture/DescribeDomainResponse"+    (Proxy :: Proxy DescribeDomain)++testDeprecateDomainResponse :: DeprecateDomainResponse -> TestTree+testDeprecateDomainResponse = res+    "DeprecateDomainResponse"+    "fixture/DeprecateDomainResponse"+    (Proxy :: Proxy DeprecateDomain)++testGetWorkflowExecutionHistoryResponse :: GetWorkflowExecutionHistoryResponse -> TestTree+testGetWorkflowExecutionHistoryResponse = res+    "GetWorkflowExecutionHistoryResponse"+    "fixture/GetWorkflowExecutionHistoryResponse"+    (Proxy :: Proxy GetWorkflowExecutionHistory)++testDescribeActivityTypeResponse :: DescribeActivityTypeResponse -> TestTree+testDescribeActivityTypeResponse = res+    "DescribeActivityTypeResponse"+    "fixture/DescribeActivityTypeResponse"+    (Proxy :: Proxy DescribeActivityType)++testDeprecateActivityTypeResponse :: DeprecateActivityTypeResponse -> TestTree+testDeprecateActivityTypeResponse = res+    "DeprecateActivityTypeResponse"+    "fixture/DeprecateActivityTypeResponse"+    (Proxy :: Proxy DeprecateActivityType)++testTerminateWorkflowExecutionResponse :: TerminateWorkflowExecutionResponse -> TestTree+testTerminateWorkflowExecutionResponse = res+    "TerminateWorkflowExecutionResponse"+    "fixture/TerminateWorkflowExecutionResponse"+    (Proxy :: Proxy TerminateWorkflowExecution)++testCountClosedWorkflowExecutionsResponse :: WorkflowExecutionCount -> TestTree+testCountClosedWorkflowExecutionsResponse = res+    "CountClosedWorkflowExecutionsResponse"+    "fixture/CountClosedWorkflowExecutionsResponse"+    (Proxy :: Proxy CountClosedWorkflowExecutions)++testRespondActivityTaskCanceledResponse :: RespondActivityTaskCanceledResponse -> TestTree+testRespondActivityTaskCanceledResponse = res+    "RespondActivityTaskCanceledResponse"+    "fixture/RespondActivityTaskCanceledResponse"+    (Proxy :: Proxy RespondActivityTaskCanceled)++testListDomainsResponse :: ListDomainsResponse -> TestTree+testListDomainsResponse = res+    "ListDomainsResponse"+    "fixture/ListDomainsResponse"+    (Proxy :: Proxy ListDomains)++testStartWorkflowExecutionResponse :: StartWorkflowExecutionResponse -> TestTree+testStartWorkflowExecutionResponse = res+    "StartWorkflowExecutionResponse"+    "fixture/StartWorkflowExecutionResponse"+    (Proxy :: Proxy StartWorkflowExecution)++testPollForDecisionTaskResponse :: PollForDecisionTaskResponse -> TestTree+testPollForDecisionTaskResponse = res+    "PollForDecisionTaskResponse"+    "fixture/PollForDecisionTaskResponse"+    (Proxy :: Proxy PollForDecisionTask)
+ test/Test/AWS/SWF.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TemplateHaskell   #-}++-- Module      : Test.AWS.SWF+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : This Source Code Form is subject to the terms of+--               the Mozilla Public License, v. 2.0.+--               A copy of the MPL can be found in the LICENSE file or+--               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : experimental+-- Portability : non-portable (GHC extensions)++module Test.AWS.SWF+    ( tests+    , fixtures+    ) where++import           Data.Time+import           Network.AWS.Prelude+import           Network.AWS.SWF+import           Test.AWS.Gen.SWF+import           Test.AWS.Prelude+import           Test.Tasty++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures =+    [ testGroup "response"+        [ testPollForActivityTaskResponse $+            pollForActivityTaskResponse 200+                "AAAAKgAAAAEAAAAAAAAAATZDvCYwk/hP/X1ZGdJhb+T6OWzcBx2DPhsIi5HF4aGQI4OXrDE7Ny3uM+aiAhGrmeNyVAa4yNIBQuoZuJA5G+BoaB0JuHFBOynHDTnm7ayNH43KhMkfdrDG4elfHSz3m/EtbLnFGueAr7+3NKDG6x4sTKg3cZpOtSguSx05yI1X3AtscS8ATcLB2Y3Aub1YonN/i/k67voca/GFsSiwSz3AAnJj1IPvrujgIj9KUvckwRPC5ET7d33XJcRp+gHYzZsBLVBaRmV3gEYAnp2ICslFn4YSjGy+dFXCNpOa4G1O8pczCbFUGbQ3+5wf0RSaa/xMq2pfdBKnuFp0wp8kw1k+5ZsbtDZeZn8g5GyKCLiLms/xD0OxugGGUe5ZlAoHEkTWGxZj/G32P7cMoCgrcACfFPdx1LNYYEre7YiGiyjGnfW2t5mW7VK9Np28vcXVbdpH4JNEB9OuB1xqL8N8ifPVtc72uxB1i9XEdq/8rkXasSEw4TubB2FwgqnuJstmfEhpOdb5HfhR6OwmnHuk9eszO/fUkGucTUXQP2hhB+Gz"+                "verification-27"+                11+                (workflowExecution "20110927-T-1" "cfa2bd33-31b0-4b75-b131-255bb0d97b3f")+                (activityType "activityVerify" "1.0")+                & pfatrsInput ?~ "5634-0056-4367-0923,12/12,437"++        , testPollForDecisionTaskResponse $+            pollForDecisionTaskResponse 200+                "AAAAKgAAAAEAAAAAAAAAATZDvCYwk/hP/X1ZGdJhb+T6OWzcBx2DPhsIi5HF4aGQI4OXrDE7Ny3uM+aiAhGrmeNyVAa4yNIBQuoZuJA5G+BoaB0JuHFBOynHDTnm7ayNH43KhMkfdrDG4elfHSz3m/EtbLnFGueAr7+3NKDG6x4sTKg3cZpOtSguSx05yI1X3AtscS8ATcLB2Y3Aub1YonN/i/k67voca/GFsSiwSz3AAnJj1IPvrujgIj9KUvckwRPC5ET7d33XJcRp+gHYzZsBLVBaRmV3gEYAnp2ICslFn4YSjGy+dFXCNpOa4G1O8pczCbFUGbQ3+5wf0RSaa/xMq2pfdBKnuFp0wp8kw1k+5ZsbtDZeZn8g5GyKCLiLms/xD0OxugGGUe5ZlAoHEkTWGxZj/G32P7cMoCgrcACfFPdx1LNYYEre7YiGiyjGnfW2t5mW7VK9Np28vcXVbdpH4JNEB9OuB1xqL8N8ifPVtc72uxB1i9XEdq/8rkXasSEw4TubB2FwgqnuJstmfEhpOdb5HfhR6OwmnHuk9eszO/fUkGucTUXQP2hhB+Gz"+                3+                (workflowExecution "20110927-T-1" "06b8f87a-24b3-40b6-9ceb-9676f28e9493")+                (workflowType "customerOrderWorkflow" "1.0")+                & pfdtrsPreviousStartedEventId ?~ 0+                & pfdtrsEvents                 .~+                    [ historyEvent $(mkTime "2012-01-15T03:09:54.566+01:00") DecisionTaskStarted 3+                        & heDecisionTaskStartedEventAttributes ?~+                             (decisionTaskStartedEventAttributes 2+                                 & dtseaIdentity ?~ "Decider01")++                    , historyEvent $(mkTime "2012-01-15T02:56:59.474+01:00") WorkflowExecutionStarted 1+                        & heWorkflowExecutionStartedEventAttributes ?~+                            (workflowExecutionStartedEventAttributes+                                Terminate+                                (taskList "specialTaskList")+                                (workflowType "customerOrderWorkflow" "1.0")+                                & weseaTaskStartToCloseTimeout      ?~ "600"+                                & weseaExecutionStartToCloseTimeout ?~ "3600"+                                & weseaParentInitiatedEventId       ?~ 0+                                & weseaInput                        ?~ "arbitrary-string-that-is-meaningful-to-the-workflow"+                                & weseaTagList                      .~+                                    [ "music purchase"+                                    , "digital"+                                    , "ricoh-the-dog"+                                    ])+                    ]+        ]+    ]
+ test/Test/AWS/SWF/Internal.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE OverloadedStrings #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module      : Test.AWS.SWF.Internal+-- Copyright   : (c) 2013-2015 Brendan Hay+-- License     : This Source Code Form is subject to the terms of+--               the Mozilla Public License, v. 2.0.+--               A copy of the MPL can be found in the LICENSE file or+--               you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : experimental+-- Portability : non-portable (GHC extensions)++module Test.AWS.SWF.Internal where++import Test.AWS.Prelude