{-# 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.SignalExternalWorkflowExecutionInitiatedEventAttributes
-- 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.SignalExternalWorkflowExecutionInitiatedEventAttributes where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides the details of the @SignalExternalWorkflowExecutionInitiated@
-- event.
--
-- /See:/ 'newSignalExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.
data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes'
  { -- | Data attached to the event that can be used by the decider in subsequent
    -- decision tasks.
    SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
control :: Prelude.Maybe Prelude.Text,
    -- | The input provided to the signal.
    SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
input :: Prelude.Maybe Prelude.Text,
    -- | The @runId@ of the external workflow execution to send the signal to.
    SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
    -- | The @workflowId@ of the external workflow execution.
    SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
workflowId :: Prelude.Text,
    -- | The name of the signal.
    SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
signalName :: Prelude.Text,
    -- | 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.
    SignalExternalWorkflowExecutionInitiatedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
  }
  deriving (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
(SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool)
-> Eq SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
$c/= :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
== :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
$c== :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
Prelude.Eq, ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
(Int
 -> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
-> ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
-> ReadPrec
     [SignalExternalWorkflowExecutionInitiatedEventAttributes]
-> Read SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
$creadListPrec :: ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
readPrec :: ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
$creadPrec :: ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
readList :: ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
$creadList :: ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
readsPrec :: Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
$creadsPrec :: Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
Prelude.Read, Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
[SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
(Int
 -> SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> ShowS)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> String)
-> ([SignalExternalWorkflowExecutionInitiatedEventAttributes]
    -> ShowS)
-> Show SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
$cshowList :: [SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
show :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
$cshow :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
showsPrec :: Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
$cshowsPrec :: Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
Prelude.Show, (forall x.
 SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x)
-> (forall x.
    Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
    -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Generic SignalExternalWorkflowExecutionInitiatedEventAttributes
forall x.
Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
forall x.
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
$cfrom :: forall x.
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
Prelude.Generic)

-- |
-- Create a value of 'SignalExternalWorkflowExecutionInitiatedEventAttributes' 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', 'signalExternalWorkflowExecutionInitiatedEventAttributes_control' - Data attached to the event that can be used by the decider in subsequent
-- decision tasks.
--
-- 'input', 'signalExternalWorkflowExecutionInitiatedEventAttributes_input' - The input provided to the signal.
--
-- 'runId', 'signalExternalWorkflowExecutionInitiatedEventAttributes_runId' - The @runId@ of the external workflow execution to send the signal to.
--
-- 'workflowId', 'signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId' - The @workflowId@ of the external workflow execution.
--
-- 'signalName', 'signalExternalWorkflowExecutionInitiatedEventAttributes_signalName' - The name of the signal.
--
-- 'decisionTaskCompletedEventId', 'signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId' - 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.
newSignalExternalWorkflowExecutionInitiatedEventAttributes ::
  -- | 'workflowId'
  Prelude.Text ->
  -- | 'signalName'
  Prelude.Text ->
  -- | 'decisionTaskCompletedEventId'
  Prelude.Integer ->
  SignalExternalWorkflowExecutionInitiatedEventAttributes
newSignalExternalWorkflowExecutionInitiatedEventAttributes :: Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
newSignalExternalWorkflowExecutionInitiatedEventAttributes
  Text
pWorkflowId_
  Text
pSignalName_
  Integer
pDecisionTaskCompletedEventId_ =
    SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes'
      { $sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId =
          Text
pWorkflowId_,
        $sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
signalName =
          Text
pSignalName_,
        $sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId =
          Integer
pDecisionTaskCompletedEventId_
      }

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

-- | The input provided to the signal.
signalExternalWorkflowExecutionInitiatedEventAttributes_input :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_input :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_input = (SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> Maybe Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
input :: Maybe Text
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
input} -> Maybe Text
input) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input = Maybe Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)

-- | The @runId@ of the external workflow execution to send the signal to.
signalExternalWorkflowExecutionInitiatedEventAttributes_runId :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_runId :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_runId = (SignalExternalWorkflowExecutionInitiatedEventAttributes
 -> Maybe Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> Maybe Text
    -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId} -> Maybe Text
runId) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId = Maybe Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)

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

-- | The name of the signal.
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Prelude.Text
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName :: (Text -> f Text)
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName = (SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
    -> Text -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     SignalExternalWorkflowExecutionInitiatedEventAttributes
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Text
signalName :: Text
$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
signalName} -> Text
signalName) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
signalName = Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)

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

instance
  Core.FromJSON
    SignalExternalWorkflowExecutionInitiatedEventAttributes
  where
  parseJSON :: Value
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
parseJSON =
    String
-> (Object
    -> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Value
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"SignalExternalWorkflowExecutionInitiatedEventAttributes"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Text
 -> Text
 -> Integer
 -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Integer
      -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> Text
   -> Integer
   -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Text
      -> Text
      -> Integer
      -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
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
   -> Text
   -> Text
   -> Integer
   -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Text
      -> Text
      -> Integer
      -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
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
"runId")
              Parser
  (Text
   -> Text
   -> Integer
   -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Text
-> Parser
     (Text
      -> Integer
      -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
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
  (Text
   -> Integer
   -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Text
-> Parser
     (Integer
      -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
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
"signalName")
              Parser
  (Integer
   -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Integer
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
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")
      )

instance
  Prelude.Hashable
    SignalExternalWorkflowExecutionInitiatedEventAttributes

instance
  Prelude.NFData
    SignalExternalWorkflowExecutionInitiatedEventAttributes