{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SWF.Types.WorkflowExecutionStartedEventAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.ChildPolicy
import Amazonka.SWF.Types.TaskList
import Amazonka.SWF.Types.WorkflowExecution
import Amazonka.SWF.Types.WorkflowType
data WorkflowExecutionStartedEventAttributes = WorkflowExecutionStartedEventAttributes'
{
WorkflowExecutionStartedEventAttributes -> Maybe Integer
parentInitiatedEventId :: Prelude.Maybe Prelude.Integer,
WorkflowExecutionStartedEventAttributes -> Maybe [Text]
tagList :: Prelude.Maybe [Prelude.Text],
WorkflowExecutionStartedEventAttributes -> Maybe Text
taskStartToCloseTimeout :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> Maybe Text
lambdaRole :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> Maybe Text
input :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> Maybe Text
executionStartToCloseTimeout :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> Maybe Text
taskPriority :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> Maybe WorkflowExecution
parentWorkflowExecution :: Prelude.Maybe WorkflowExecution,
WorkflowExecutionStartedEventAttributes -> Maybe Text
continuedExecutionRunId :: Prelude.Maybe Prelude.Text,
WorkflowExecutionStartedEventAttributes -> ChildPolicy
childPolicy :: ChildPolicy,
WorkflowExecutionStartedEventAttributes -> TaskList
taskList :: TaskList,
WorkflowExecutionStartedEventAttributes -> WorkflowType
workflowType :: WorkflowType
}
deriving (WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool
(WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool)
-> (WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool)
-> Eq WorkflowExecutionStartedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool
$c/= :: WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool
== :: WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool
$c== :: WorkflowExecutionStartedEventAttributes
-> WorkflowExecutionStartedEventAttributes -> Bool
Prelude.Eq, ReadPrec [WorkflowExecutionStartedEventAttributes]
ReadPrec WorkflowExecutionStartedEventAttributes
Int -> ReadS WorkflowExecutionStartedEventAttributes
ReadS [WorkflowExecutionStartedEventAttributes]
(Int -> ReadS WorkflowExecutionStartedEventAttributes)
-> ReadS [WorkflowExecutionStartedEventAttributes]
-> ReadPrec WorkflowExecutionStartedEventAttributes
-> ReadPrec [WorkflowExecutionStartedEventAttributes]
-> Read WorkflowExecutionStartedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowExecutionStartedEventAttributes]
$creadListPrec :: ReadPrec [WorkflowExecutionStartedEventAttributes]
readPrec :: ReadPrec WorkflowExecutionStartedEventAttributes
$creadPrec :: ReadPrec WorkflowExecutionStartedEventAttributes
readList :: ReadS [WorkflowExecutionStartedEventAttributes]
$creadList :: ReadS [WorkflowExecutionStartedEventAttributes]
readsPrec :: Int -> ReadS WorkflowExecutionStartedEventAttributes
$creadsPrec :: Int -> ReadS WorkflowExecutionStartedEventAttributes
Prelude.Read, Int -> WorkflowExecutionStartedEventAttributes -> ShowS
[WorkflowExecutionStartedEventAttributes] -> ShowS
WorkflowExecutionStartedEventAttributes -> String
(Int -> WorkflowExecutionStartedEventAttributes -> ShowS)
-> (WorkflowExecutionStartedEventAttributes -> String)
-> ([WorkflowExecutionStartedEventAttributes] -> ShowS)
-> Show WorkflowExecutionStartedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowExecutionStartedEventAttributes] -> ShowS
$cshowList :: [WorkflowExecutionStartedEventAttributes] -> ShowS
show :: WorkflowExecutionStartedEventAttributes -> String
$cshow :: WorkflowExecutionStartedEventAttributes -> String
showsPrec :: Int -> WorkflowExecutionStartedEventAttributes -> ShowS
$cshowsPrec :: Int -> WorkflowExecutionStartedEventAttributes -> ShowS
Prelude.Show, (forall x.
WorkflowExecutionStartedEventAttributes
-> Rep WorkflowExecutionStartedEventAttributes x)
-> (forall x.
Rep WorkflowExecutionStartedEventAttributes x
-> WorkflowExecutionStartedEventAttributes)
-> Generic WorkflowExecutionStartedEventAttributes
forall x.
Rep WorkflowExecutionStartedEventAttributes x
-> WorkflowExecutionStartedEventAttributes
forall x.
WorkflowExecutionStartedEventAttributes
-> Rep WorkflowExecutionStartedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WorkflowExecutionStartedEventAttributes x
-> WorkflowExecutionStartedEventAttributes
$cfrom :: forall x.
WorkflowExecutionStartedEventAttributes
-> Rep WorkflowExecutionStartedEventAttributes x
Prelude.Generic)
newWorkflowExecutionStartedEventAttributes ::
ChildPolicy ->
TaskList ->
WorkflowType ->
WorkflowExecutionStartedEventAttributes
newWorkflowExecutionStartedEventAttributes :: ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes
newWorkflowExecutionStartedEventAttributes
ChildPolicy
pChildPolicy_
TaskList
pTaskList_
WorkflowType
pWorkflowType_ =
WorkflowExecutionStartedEventAttributes' :: Maybe Integer
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes'
{ $sel:parentInitiatedEventId:WorkflowExecutionStartedEventAttributes' :: Maybe Integer
parentInitiatedEventId =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:tagList:WorkflowExecutionStartedEventAttributes' :: Maybe [Text]
tagList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:taskStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: Maybe Text
taskStartToCloseTimeout =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lambdaRole:WorkflowExecutionStartedEventAttributes' :: Maybe Text
lambdaRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:input:WorkflowExecutionStartedEventAttributes' :: Maybe Text
input = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: Maybe Text
executionStartToCloseTimeout =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskPriority:WorkflowExecutionStartedEventAttributes' :: Maybe Text
taskPriority = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:parentWorkflowExecution:WorkflowExecutionStartedEventAttributes' :: Maybe WorkflowExecution
parentWorkflowExecution =
Maybe WorkflowExecution
forall a. Maybe a
Prelude.Nothing,
$sel:continuedExecutionRunId:WorkflowExecutionStartedEventAttributes' :: Maybe Text
continuedExecutionRunId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:childPolicy:WorkflowExecutionStartedEventAttributes' :: ChildPolicy
childPolicy = ChildPolicy
pChildPolicy_,
$sel:taskList:WorkflowExecutionStartedEventAttributes' :: TaskList
taskList = TaskList
pTaskList_,
$sel:workflowType:WorkflowExecutionStartedEventAttributes' :: WorkflowType
workflowType = WorkflowType
pWorkflowType_
}
workflowExecutionStartedEventAttributes_parentInitiatedEventId :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Integer)
workflowExecutionStartedEventAttributes_parentInitiatedEventId :: (Maybe Integer -> f (Maybe Integer))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_parentInitiatedEventId = (WorkflowExecutionStartedEventAttributes -> Maybe Integer)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Integer -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Integer
parentInitiatedEventId :: Maybe Integer
$sel:parentInitiatedEventId:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Integer
parentInitiatedEventId} -> Maybe Integer
parentInitiatedEventId) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Integer
a -> WorkflowExecutionStartedEventAttributes
s {$sel:parentInitiatedEventId:WorkflowExecutionStartedEventAttributes' :: Maybe Integer
parentInitiatedEventId = Maybe Integer
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_tagList :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe [Prelude.Text])
workflowExecutionStartedEventAttributes_tagList :: (Maybe [Text] -> f (Maybe [Text]))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_tagList = (WorkflowExecutionStartedEventAttributes -> Maybe [Text])
-> (WorkflowExecutionStartedEventAttributes
-> Maybe [Text] -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe [Text]
tagList :: Maybe [Text]
$sel:tagList:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe [Text]
tagList} -> Maybe [Text]
tagList) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe [Text]
a -> WorkflowExecutionStartedEventAttributes
s {$sel:tagList:WorkflowExecutionStartedEventAttributes' :: Maybe [Text]
tagList = Maybe [Text]
a} :: WorkflowExecutionStartedEventAttributes) ((Maybe [Text] -> f (Maybe [Text]))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
workflowExecutionStartedEventAttributes_taskStartToCloseTimeout :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_taskStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_taskStartToCloseTimeout = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
taskStartToCloseTimeout :: Maybe Text
$sel:taskStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
taskStartToCloseTimeout} -> Maybe Text
taskStartToCloseTimeout) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:taskStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: Maybe Text
taskStartToCloseTimeout = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_lambdaRole :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_lambdaRole :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_lambdaRole = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
lambdaRole :: Maybe Text
$sel:lambdaRole:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
lambdaRole} -> Maybe Text
lambdaRole) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:lambdaRole:WorkflowExecutionStartedEventAttributes' :: Maybe Text
lambdaRole = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_input :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_input :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_input = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
input :: Maybe Text
$sel:input:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
input} -> Maybe Text
input) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:input:WorkflowExecutionStartedEventAttributes' :: Maybe Text
input = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_executionStartToCloseTimeout :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_executionStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_executionStartToCloseTimeout = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
executionStartToCloseTimeout :: Maybe Text
$sel:executionStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
executionStartToCloseTimeout} -> Maybe Text
executionStartToCloseTimeout) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:executionStartToCloseTimeout:WorkflowExecutionStartedEventAttributes' :: Maybe Text
executionStartToCloseTimeout = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_taskPriority :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_taskPriority :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_taskPriority = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
taskPriority :: Maybe Text
$sel:taskPriority:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
taskPriority} -> Maybe Text
taskPriority) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:taskPriority:WorkflowExecutionStartedEventAttributes' :: Maybe Text
taskPriority = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_parentWorkflowExecution :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe WorkflowExecution)
workflowExecutionStartedEventAttributes_parentWorkflowExecution :: (Maybe WorkflowExecution -> f (Maybe WorkflowExecution))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_parentWorkflowExecution = (WorkflowExecutionStartedEventAttributes
-> Maybe WorkflowExecution)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe WorkflowExecution
-> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe WorkflowExecution)
(Maybe WorkflowExecution)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe WorkflowExecution
parentWorkflowExecution :: Maybe WorkflowExecution
$sel:parentWorkflowExecution:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe WorkflowExecution
parentWorkflowExecution} -> Maybe WorkflowExecution
parentWorkflowExecution) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe WorkflowExecution
a -> WorkflowExecutionStartedEventAttributes
s {$sel:parentWorkflowExecution:WorkflowExecutionStartedEventAttributes' :: Maybe WorkflowExecution
parentWorkflowExecution = Maybe WorkflowExecution
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_continuedExecutionRunId :: Lens.Lens' WorkflowExecutionStartedEventAttributes (Prelude.Maybe Prelude.Text)
workflowExecutionStartedEventAttributes_continuedExecutionRunId :: (Maybe Text -> f (Maybe Text))
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_continuedExecutionRunId = (WorkflowExecutionStartedEventAttributes -> Maybe Text)
-> (WorkflowExecutionStartedEventAttributes
-> Maybe Text -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {Maybe Text
continuedExecutionRunId :: Maybe Text
$sel:continuedExecutionRunId:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> Maybe Text
continuedExecutionRunId} -> Maybe Text
continuedExecutionRunId) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} Maybe Text
a -> WorkflowExecutionStartedEventAttributes
s {$sel:continuedExecutionRunId:WorkflowExecutionStartedEventAttributes' :: Maybe Text
continuedExecutionRunId = Maybe Text
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_childPolicy :: Lens.Lens' WorkflowExecutionStartedEventAttributes ChildPolicy
workflowExecutionStartedEventAttributes_childPolicy :: (ChildPolicy -> f ChildPolicy)
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_childPolicy = (WorkflowExecutionStartedEventAttributes -> ChildPolicy)
-> (WorkflowExecutionStartedEventAttributes
-> ChildPolicy -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
ChildPolicy
ChildPolicy
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {ChildPolicy
childPolicy :: ChildPolicy
$sel:childPolicy:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> ChildPolicy
childPolicy} -> ChildPolicy
childPolicy) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} ChildPolicy
a -> WorkflowExecutionStartedEventAttributes
s {$sel:childPolicy:WorkflowExecutionStartedEventAttributes' :: ChildPolicy
childPolicy = ChildPolicy
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_taskList :: Lens.Lens' WorkflowExecutionStartedEventAttributes TaskList
workflowExecutionStartedEventAttributes_taskList :: (TaskList -> f TaskList)
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_taskList = (WorkflowExecutionStartedEventAttributes -> TaskList)
-> (WorkflowExecutionStartedEventAttributes
-> TaskList -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
TaskList
TaskList
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {TaskList
taskList :: TaskList
$sel:taskList:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> TaskList
taskList} -> TaskList
taskList) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} TaskList
a -> WorkflowExecutionStartedEventAttributes
s {$sel:taskList:WorkflowExecutionStartedEventAttributes' :: TaskList
taskList = TaskList
a} :: WorkflowExecutionStartedEventAttributes)
workflowExecutionStartedEventAttributes_workflowType :: Lens.Lens' WorkflowExecutionStartedEventAttributes WorkflowType
workflowExecutionStartedEventAttributes_workflowType :: (WorkflowType -> f WorkflowType)
-> WorkflowExecutionStartedEventAttributes
-> f WorkflowExecutionStartedEventAttributes
workflowExecutionStartedEventAttributes_workflowType = (WorkflowExecutionStartedEventAttributes -> WorkflowType)
-> (WorkflowExecutionStartedEventAttributes
-> WorkflowType -> WorkflowExecutionStartedEventAttributes)
-> Lens
WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes
WorkflowType
WorkflowType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowExecutionStartedEventAttributes' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:WorkflowExecutionStartedEventAttributes' :: WorkflowExecutionStartedEventAttributes -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: WorkflowExecutionStartedEventAttributes
s@WorkflowExecutionStartedEventAttributes' {} WorkflowType
a -> WorkflowExecutionStartedEventAttributes
s {$sel:workflowType:WorkflowExecutionStartedEventAttributes' :: WorkflowType
workflowType = WorkflowType
a} :: WorkflowExecutionStartedEventAttributes)
instance
Core.FromJSON
WorkflowExecutionStartedEventAttributes
where
parseJSON :: Value -> Parser WorkflowExecutionStartedEventAttributes
parseJSON =
String
-> (Object -> Parser WorkflowExecutionStartedEventAttributes)
-> Value
-> Parser WorkflowExecutionStartedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"WorkflowExecutionStartedEventAttributes"
( \Object
x ->
Maybe Integer
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes
WorkflowExecutionStartedEventAttributes'
(Maybe Integer
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Integer)
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"parentInitiatedEventId")
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tagList" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskStartToCloseTimeout")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaRole")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"input")
Parser
(Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionStartToCloseTimeout")
Parser
(Maybe Text
-> Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskPriority")
Parser
(Maybe WorkflowExecution
-> Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe WorkflowExecution)
-> Parser
(Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe WorkflowExecution)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"parentWorkflowExecution")
Parser
(Maybe Text
-> ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"continuedExecutionRunId")
Parser
(ChildPolicy
-> TaskList
-> WorkflowType
-> WorkflowExecutionStartedEventAttributes)
-> Parser ChildPolicy
-> Parser
(TaskList
-> WorkflowType -> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser ChildPolicy
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"childPolicy")
Parser
(TaskList
-> WorkflowType -> WorkflowExecutionStartedEventAttributes)
-> Parser TaskList
-> Parser (WorkflowType -> WorkflowExecutionStartedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser TaskList
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"taskList")
Parser (WorkflowType -> WorkflowExecutionStartedEventAttributes)
-> Parser WorkflowType
-> Parser WorkflowExecutionStartedEventAttributes
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser WorkflowType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowType")
)
instance
Prelude.Hashable
WorkflowExecutionStartedEventAttributes
instance
Prelude.NFData
WorkflowExecutionStartedEventAttributes