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

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

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

-- | Provides the details of the @StartChildWorkflowExecutionInitiated@
-- event.
--
-- /See:/ 'newStartChildWorkflowExecutionInitiatedEventAttributes' smart constructor.
data StartChildWorkflowExecutionInitiatedEventAttributes = StartChildWorkflowExecutionInitiatedEventAttributes'
  { -- | Data attached to the event that can be used by the decider in subsequent
    -- decision tasks. This data isn\'t sent to the activity.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
control :: Prelude.Maybe Prelude.Text,
    -- | The list of tags to associated with the child workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe [Text]
tagList :: Prelude.Maybe [Prelude.Text],
    -- | 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@. You can use @NONE@ to specify unlimited duration.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
taskStartToCloseTimeout :: Prelude.Maybe Prelude.Text,
    -- | The IAM role to attach to the child workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
lambdaRole :: Prelude.Maybe Prelude.Text,
    -- | The inputs provided to the child workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
input :: Prelude.Maybe Prelude.Text,
    -- | The maximum duration for the child workflow execution. If the workflow
    -- execution isn\'t closed within this duration, it is timed out and
    -- force-terminated.
    --
    -- The duration is specified in seconds, an integer greater than or equal
    -- to @0@. You can use @NONE@ to specify unlimited duration.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
executionStartToCloseTimeout :: Prelude.Maybe Prelude.Text,
    -- | 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
    -- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
    -- in the /Amazon SWF Developer Guide/.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
taskPriority :: Prelude.Maybe Prelude.Text,
    -- | The @workflowId@ of the child workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Text
workflowId :: Prelude.Text,
    -- | The type of the child workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> WorkflowType
workflowType :: WorkflowType,
    -- | The name of the task list used for the decision tasks of the child
    -- workflow execution.
    StartChildWorkflowExecutionInitiatedEventAttributes -> TaskList
taskList :: TaskList,
    -- | 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.
    StartChildWorkflowExecutionInitiatedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer,
    -- | 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 are terminated.
    --
    -- -   @REQUEST_CANCEL@ – A request to cancel is 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 is taken. The child executions continue to
    --     run.
    StartChildWorkflowExecutionInitiatedEventAttributes -> ChildPolicy
childPolicy :: ChildPolicy
  }
  deriving (StartChildWorkflowExecutionInitiatedEventAttributes
-> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool
(StartChildWorkflowExecutionInitiatedEventAttributes
 -> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool)
-> Eq StartChildWorkflowExecutionInitiatedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartChildWorkflowExecutionInitiatedEventAttributes
-> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool
$c/= :: StartChildWorkflowExecutionInitiatedEventAttributes
-> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool
== :: StartChildWorkflowExecutionInitiatedEventAttributes
-> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool
$c== :: StartChildWorkflowExecutionInitiatedEventAttributes
-> StartChildWorkflowExecutionInitiatedEventAttributes -> Bool
Prelude.Eq, ReadPrec [StartChildWorkflowExecutionInitiatedEventAttributes]
ReadPrec StartChildWorkflowExecutionInitiatedEventAttributes
Int -> ReadS StartChildWorkflowExecutionInitiatedEventAttributes
ReadS [StartChildWorkflowExecutionInitiatedEventAttributes]
(Int -> ReadS StartChildWorkflowExecutionInitiatedEventAttributes)
-> ReadS [StartChildWorkflowExecutionInitiatedEventAttributes]
-> ReadPrec StartChildWorkflowExecutionInitiatedEventAttributes
-> ReadPrec [StartChildWorkflowExecutionInitiatedEventAttributes]
-> Read StartChildWorkflowExecutionInitiatedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartChildWorkflowExecutionInitiatedEventAttributes]
$creadListPrec :: ReadPrec [StartChildWorkflowExecutionInitiatedEventAttributes]
readPrec :: ReadPrec StartChildWorkflowExecutionInitiatedEventAttributes
$creadPrec :: ReadPrec StartChildWorkflowExecutionInitiatedEventAttributes
readList :: ReadS [StartChildWorkflowExecutionInitiatedEventAttributes]
$creadList :: ReadS [StartChildWorkflowExecutionInitiatedEventAttributes]
readsPrec :: Int -> ReadS StartChildWorkflowExecutionInitiatedEventAttributes
$creadsPrec :: Int -> ReadS StartChildWorkflowExecutionInitiatedEventAttributes
Prelude.Read, Int -> StartChildWorkflowExecutionInitiatedEventAttributes -> ShowS
[StartChildWorkflowExecutionInitiatedEventAttributes] -> ShowS
StartChildWorkflowExecutionInitiatedEventAttributes -> String
(Int
 -> StartChildWorkflowExecutionInitiatedEventAttributes -> ShowS)
-> (StartChildWorkflowExecutionInitiatedEventAttributes -> String)
-> ([StartChildWorkflowExecutionInitiatedEventAttributes] -> ShowS)
-> Show StartChildWorkflowExecutionInitiatedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartChildWorkflowExecutionInitiatedEventAttributes] -> ShowS
$cshowList :: [StartChildWorkflowExecutionInitiatedEventAttributes] -> ShowS
show :: StartChildWorkflowExecutionInitiatedEventAttributes -> String
$cshow :: StartChildWorkflowExecutionInitiatedEventAttributes -> String
showsPrec :: Int -> StartChildWorkflowExecutionInitiatedEventAttributes -> ShowS
$cshowsPrec :: Int -> StartChildWorkflowExecutionInitiatedEventAttributes -> ShowS
Prelude.Show, (forall x.
 StartChildWorkflowExecutionInitiatedEventAttributes
 -> Rep StartChildWorkflowExecutionInitiatedEventAttributes x)
-> (forall x.
    Rep StartChildWorkflowExecutionInitiatedEventAttributes x
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Generic StartChildWorkflowExecutionInitiatedEventAttributes
forall x.
Rep StartChildWorkflowExecutionInitiatedEventAttributes x
-> StartChildWorkflowExecutionInitiatedEventAttributes
forall x.
StartChildWorkflowExecutionInitiatedEventAttributes
-> Rep StartChildWorkflowExecutionInitiatedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartChildWorkflowExecutionInitiatedEventAttributes x
-> StartChildWorkflowExecutionInitiatedEventAttributes
$cfrom :: forall x.
StartChildWorkflowExecutionInitiatedEventAttributes
-> Rep StartChildWorkflowExecutionInitiatedEventAttributes x
Prelude.Generic)

-- |
-- Create a value of 'StartChildWorkflowExecutionInitiatedEventAttributes' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'control', 'startChildWorkflowExecutionInitiatedEventAttributes_control' - Data attached to the event that can be used by the decider in subsequent
-- decision tasks. This data isn\'t sent to the activity.
--
-- 'tagList', 'startChildWorkflowExecutionInitiatedEventAttributes_tagList' - The list of tags to associated with the child workflow execution.
--
-- 'taskStartToCloseTimeout', 'startChildWorkflowExecutionInitiatedEventAttributes_taskStartToCloseTimeout' - 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@. You can use @NONE@ to specify unlimited duration.
--
-- 'lambdaRole', 'startChildWorkflowExecutionInitiatedEventAttributes_lambdaRole' - The IAM role to attach to the child workflow execution.
--
-- 'input', 'startChildWorkflowExecutionInitiatedEventAttributes_input' - The inputs provided to the child workflow execution.
--
-- 'executionStartToCloseTimeout', 'startChildWorkflowExecutionInitiatedEventAttributes_executionStartToCloseTimeout' - The maximum duration for the child workflow execution. If the workflow
-- execution isn\'t closed within this duration, it is timed out and
-- force-terminated.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
--
-- 'taskPriority', 'startChildWorkflowExecutionInitiatedEventAttributes_taskPriority' - 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
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
-- in the /Amazon SWF Developer Guide/.
--
-- 'workflowId', 'startChildWorkflowExecutionInitiatedEventAttributes_workflowId' - The @workflowId@ of the child workflow execution.
--
-- 'workflowType', 'startChildWorkflowExecutionInitiatedEventAttributes_workflowType' - The type of the child workflow execution.
--
-- 'taskList', 'startChildWorkflowExecutionInitiatedEventAttributes_taskList' - The name of the task list used for the decision tasks of the child
-- workflow execution.
--
-- 'decisionTaskCompletedEventId', 'startChildWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId' - 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.
--
-- 'childPolicy', 'startChildWorkflowExecutionInitiatedEventAttributes_childPolicy' - 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 are terminated.
--
-- -   @REQUEST_CANCEL@ – A request to cancel is 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 is taken. The child executions continue to
--     run.
newStartChildWorkflowExecutionInitiatedEventAttributes ::
  -- | 'workflowId'
  Prelude.Text ->
  -- | 'workflowType'
  WorkflowType ->
  -- | 'taskList'
  TaskList ->
  -- | 'decisionTaskCompletedEventId'
  Prelude.Integer ->
  -- | 'childPolicy'
  ChildPolicy ->
  StartChildWorkflowExecutionInitiatedEventAttributes
newStartChildWorkflowExecutionInitiatedEventAttributes :: Text
-> WorkflowType
-> TaskList
-> Integer
-> ChildPolicy
-> StartChildWorkflowExecutionInitiatedEventAttributes
newStartChildWorkflowExecutionInitiatedEventAttributes
  Text
pWorkflowId_
  WorkflowType
pWorkflowType_
  TaskList
pTaskList_
  Integer
pDecisionTaskCompletedEventId_
  ChildPolicy
pChildPolicy_ =
    StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> WorkflowType
-> TaskList
-> Integer
-> ChildPolicy
-> StartChildWorkflowExecutionInitiatedEventAttributes
StartChildWorkflowExecutionInitiatedEventAttributes'
      { $sel:control:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tagList:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe [Text]
tagList =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:taskStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
taskStartToCloseTimeout =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:lambdaRole:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
lambdaRole =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:input:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:executionStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
executionStartToCloseTimeout =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:taskPriority:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
taskPriority =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowId:StartChildWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId =
          Text
pWorkflowId_,
        $sel:workflowType:StartChildWorkflowExecutionInitiatedEventAttributes' :: WorkflowType
workflowType =
          WorkflowType
pWorkflowType_,
        $sel:taskList:StartChildWorkflowExecutionInitiatedEventAttributes' :: TaskList
taskList = TaskList
pTaskList_,
        $sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId =
          Integer
pDecisionTaskCompletedEventId_,
        $sel:childPolicy:StartChildWorkflowExecutionInitiatedEventAttributes' :: ChildPolicy
childPolicy =
          ChildPolicy
pChildPolicy_
      }

-- | Data attached to the event that can be used by the decider in subsequent
-- decision tasks. This data isn\'t sent to the activity.
startChildWorkflowExecutionInitiatedEventAttributes_control :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_control :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_control = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
control} -> Maybe Text
control) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:control:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The list of tags to associated with the child workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_tagList :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe [Prelude.Text])
startChildWorkflowExecutionInitiatedEventAttributes_tagList :: (Maybe [Text] -> f (Maybe [Text]))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_tagList = (StartChildWorkflowExecutionInitiatedEventAttributes
 -> Maybe [Text])
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe [Text]
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe [Text]
tagList :: Maybe [Text]
$sel:tagList:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe [Text]
tagList} -> Maybe [Text]
tagList) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe [Text]
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:tagList:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe [Text]
tagList = Maybe [Text]
a} :: StartChildWorkflowExecutionInitiatedEventAttributes) ((Maybe [Text] -> f (Maybe [Text]))
 -> StartChildWorkflowExecutionInitiatedEventAttributes
 -> f StartChildWorkflowExecutionInitiatedEventAttributes)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
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

-- | 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@. You can use @NONE@ to specify unlimited duration.
startChildWorkflowExecutionInitiatedEventAttributes_taskStartToCloseTimeout :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_taskStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_taskStartToCloseTimeout = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
taskStartToCloseTimeout :: Maybe Text
$sel:taskStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
taskStartToCloseTimeout} -> Maybe Text
taskStartToCloseTimeout) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:taskStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
taskStartToCloseTimeout = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The IAM role to attach to the child workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_lambdaRole :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_lambdaRole :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_lambdaRole = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
lambdaRole :: Maybe Text
$sel:lambdaRole:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
lambdaRole} -> Maybe Text
lambdaRole) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:lambdaRole:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
lambdaRole = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The inputs provided to the child workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_input :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_input :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_input = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
input :: Maybe Text
$sel:input:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
input} -> Maybe Text
input) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:input:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The maximum duration for the child workflow execution. If the workflow
-- execution isn\'t closed within this duration, it is timed out and
-- force-terminated.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
startChildWorkflowExecutionInitiatedEventAttributes_executionStartToCloseTimeout :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_executionStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_executionStartToCloseTimeout = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
executionStartToCloseTimeout :: Maybe Text
$sel:executionStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
executionStartToCloseTimeout} -> Maybe Text
executionStartToCloseTimeout) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:executionStartToCloseTimeout:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
executionStartToCloseTimeout = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | 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
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
-- in the /Amazon SWF Developer Guide/.
startChildWorkflowExecutionInitiatedEventAttributes_taskPriority :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionInitiatedEventAttributes_taskPriority :: (Maybe Text -> f (Maybe Text))
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_taskPriority = (StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Maybe Text
taskPriority :: Maybe Text
$sel:taskPriority:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Maybe Text
taskPriority} -> Maybe Text
taskPriority) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:taskPriority:StartChildWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
taskPriority = Maybe Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The @workflowId@ of the child workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_workflowId :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes Prelude.Text
startChildWorkflowExecutionInitiatedEventAttributes_workflowId :: (Text -> f Text)
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_workflowId = (StartChildWorkflowExecutionInitiatedEventAttributes -> Text)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Text -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Text
workflowId} -> Text
workflowId) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Text
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:workflowId:StartChildWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId = Text
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The type of the child workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_workflowType :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType
startChildWorkflowExecutionInitiatedEventAttributes_workflowType :: (WorkflowType -> f WorkflowType)
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_workflowType = (StartChildWorkflowExecutionInitiatedEventAttributes
 -> WorkflowType)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> WorkflowType
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     WorkflowType
     WorkflowType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} WorkflowType
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:workflowType:StartChildWorkflowExecutionInitiatedEventAttributes' :: WorkflowType
workflowType = WorkflowType
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | The name of the task list used for the decision tasks of the child
-- workflow execution.
startChildWorkflowExecutionInitiatedEventAttributes_taskList :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList
startChildWorkflowExecutionInitiatedEventAttributes_taskList :: (TaskList -> f TaskList)
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_taskList = (StartChildWorkflowExecutionInitiatedEventAttributes -> TaskList)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> TaskList -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     TaskList
     TaskList
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {TaskList
taskList :: TaskList
$sel:taskList:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> TaskList
taskList} -> TaskList
taskList) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} TaskList
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:taskList:StartChildWorkflowExecutionInitiatedEventAttributes' :: TaskList
taskList = TaskList
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | 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.
startChildWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes Prelude.Integer
startChildWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: (Integer -> f Integer)
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId = (StartChildWorkflowExecutionInitiatedEventAttributes -> Integer)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> Integer -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     Integer
     Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} Integer
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

-- | 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 are terminated.
--
-- -   @REQUEST_CANCEL@ – A request to cancel is 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 is taken. The child executions continue to
--     run.
startChildWorkflowExecutionInitiatedEventAttributes_childPolicy :: Lens.Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy
startChildWorkflowExecutionInitiatedEventAttributes_childPolicy :: (ChildPolicy -> f ChildPolicy)
-> StartChildWorkflowExecutionInitiatedEventAttributes
-> f StartChildWorkflowExecutionInitiatedEventAttributes
startChildWorkflowExecutionInitiatedEventAttributes_childPolicy = (StartChildWorkflowExecutionInitiatedEventAttributes
 -> ChildPolicy)
-> (StartChildWorkflowExecutionInitiatedEventAttributes
    -> ChildPolicy
    -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Lens
     StartChildWorkflowExecutionInitiatedEventAttributes
     StartChildWorkflowExecutionInitiatedEventAttributes
     ChildPolicy
     ChildPolicy
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionInitiatedEventAttributes' {ChildPolicy
childPolicy :: ChildPolicy
$sel:childPolicy:StartChildWorkflowExecutionInitiatedEventAttributes' :: StartChildWorkflowExecutionInitiatedEventAttributes -> ChildPolicy
childPolicy} -> ChildPolicy
childPolicy) (\s :: StartChildWorkflowExecutionInitiatedEventAttributes
s@StartChildWorkflowExecutionInitiatedEventAttributes' {} ChildPolicy
a -> StartChildWorkflowExecutionInitiatedEventAttributes
s {$sel:childPolicy:StartChildWorkflowExecutionInitiatedEventAttributes' :: ChildPolicy
childPolicy = ChildPolicy
a} :: StartChildWorkflowExecutionInitiatedEventAttributes)

instance
  Core.FromJSON
    StartChildWorkflowExecutionInitiatedEventAttributes
  where
  parseJSON :: Value -> Parser StartChildWorkflowExecutionInitiatedEventAttributes
parseJSON =
    String
-> (Object
    -> Parser StartChildWorkflowExecutionInitiatedEventAttributes)
-> Value
-> Parser StartChildWorkflowExecutionInitiatedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"StartChildWorkflowExecutionInitiatedEventAttributes"
      ( \Object
x ->
          Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> WorkflowType
-> TaskList
-> Integer
-> ChildPolicy
-> StartChildWorkflowExecutionInitiatedEventAttributes
StartChildWorkflowExecutionInitiatedEventAttributes'
            (Maybe Text
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Text
 -> WorkflowType
 -> TaskList
 -> Integer
 -> ChildPolicy
 -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Functor 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
"control")
              Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Text
      -> WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
  (Text
   -> WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser Text
-> Parser
     (WorkflowType
      -> TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowId")
              Parser
  (WorkflowType
   -> TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser WorkflowType
-> Parser
     (TaskList
      -> Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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")
              Parser
  (TaskList
   -> Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser TaskList
-> Parser
     (Integer
      -> ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
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
  (Integer
   -> ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser Integer
-> Parser
     (ChildPolicy
      -> StartChildWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"decisionTaskCompletedEventId")
              Parser
  (ChildPolicy
   -> StartChildWorkflowExecutionInitiatedEventAttributes)
-> Parser ChildPolicy
-> Parser StartChildWorkflowExecutionInitiatedEventAttributes
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")
      )

instance
  Prelude.Hashable
    StartChildWorkflowExecutionInitiatedEventAttributes

instance
  Prelude.NFData
    StartChildWorkflowExecutionInitiatedEventAttributes