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

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.WorkflowExecution
import Amazonka.SWF.Types.WorkflowType

-- | Provides the details of the @ChildWorkflowExecutionFailed@ event.
--
-- /See:/ 'newChildWorkflowExecutionFailedEventAttributes' smart constructor.
data ChildWorkflowExecutionFailedEventAttributes = ChildWorkflowExecutionFailedEventAttributes'
  { -- | The reason for the failure (if provided).
    ChildWorkflowExecutionFailedEventAttributes -> Maybe Text
reason :: Prelude.Maybe Prelude.Text,
    -- | The details of the failure (if provided).
    ChildWorkflowExecutionFailedEventAttributes -> Maybe Text
details :: Prelude.Maybe Prelude.Text,
    -- | The child workflow execution that failed.
    ChildWorkflowExecutionFailedEventAttributes -> WorkflowExecution
workflowExecution :: WorkflowExecution,
    -- | The type of the child workflow execution.
    ChildWorkflowExecutionFailedEventAttributes -> WorkflowType
workflowType :: WorkflowType,
    -- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding
    -- to the @StartChildWorkflowExecution@ Decision to start this child
    -- workflow execution. This information can be useful for diagnosing
    -- problems by tracing back the chain of events leading up to this event.
    ChildWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId :: Prelude.Integer,
    -- | The ID of the @ChildWorkflowExecutionStarted@ event recorded when this
    -- child workflow execution was started. This information can be useful for
    -- diagnosing problems by tracing back the chain of events leading up to
    -- this event.
    ChildWorkflowExecutionFailedEventAttributes -> Integer
startedEventId :: Prelude.Integer
  }
  deriving (ChildWorkflowExecutionFailedEventAttributes
-> ChildWorkflowExecutionFailedEventAttributes -> Bool
(ChildWorkflowExecutionFailedEventAttributes
 -> ChildWorkflowExecutionFailedEventAttributes -> Bool)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> ChildWorkflowExecutionFailedEventAttributes -> Bool)
-> Eq ChildWorkflowExecutionFailedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChildWorkflowExecutionFailedEventAttributes
-> ChildWorkflowExecutionFailedEventAttributes -> Bool
$c/= :: ChildWorkflowExecutionFailedEventAttributes
-> ChildWorkflowExecutionFailedEventAttributes -> Bool
== :: ChildWorkflowExecutionFailedEventAttributes
-> ChildWorkflowExecutionFailedEventAttributes -> Bool
$c== :: ChildWorkflowExecutionFailedEventAttributes
-> ChildWorkflowExecutionFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [ChildWorkflowExecutionFailedEventAttributes]
ReadPrec ChildWorkflowExecutionFailedEventAttributes
Int -> ReadS ChildWorkflowExecutionFailedEventAttributes
ReadS [ChildWorkflowExecutionFailedEventAttributes]
(Int -> ReadS ChildWorkflowExecutionFailedEventAttributes)
-> ReadS [ChildWorkflowExecutionFailedEventAttributes]
-> ReadPrec ChildWorkflowExecutionFailedEventAttributes
-> ReadPrec [ChildWorkflowExecutionFailedEventAttributes]
-> Read ChildWorkflowExecutionFailedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChildWorkflowExecutionFailedEventAttributes]
$creadListPrec :: ReadPrec [ChildWorkflowExecutionFailedEventAttributes]
readPrec :: ReadPrec ChildWorkflowExecutionFailedEventAttributes
$creadPrec :: ReadPrec ChildWorkflowExecutionFailedEventAttributes
readList :: ReadS [ChildWorkflowExecutionFailedEventAttributes]
$creadList :: ReadS [ChildWorkflowExecutionFailedEventAttributes]
readsPrec :: Int -> ReadS ChildWorkflowExecutionFailedEventAttributes
$creadsPrec :: Int -> ReadS ChildWorkflowExecutionFailedEventAttributes
Prelude.Read, Int -> ChildWorkflowExecutionFailedEventAttributes -> ShowS
[ChildWorkflowExecutionFailedEventAttributes] -> ShowS
ChildWorkflowExecutionFailedEventAttributes -> String
(Int -> ChildWorkflowExecutionFailedEventAttributes -> ShowS)
-> (ChildWorkflowExecutionFailedEventAttributes -> String)
-> ([ChildWorkflowExecutionFailedEventAttributes] -> ShowS)
-> Show ChildWorkflowExecutionFailedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChildWorkflowExecutionFailedEventAttributes] -> ShowS
$cshowList :: [ChildWorkflowExecutionFailedEventAttributes] -> ShowS
show :: ChildWorkflowExecutionFailedEventAttributes -> String
$cshow :: ChildWorkflowExecutionFailedEventAttributes -> String
showsPrec :: Int -> ChildWorkflowExecutionFailedEventAttributes -> ShowS
$cshowsPrec :: Int -> ChildWorkflowExecutionFailedEventAttributes -> ShowS
Prelude.Show, (forall x.
 ChildWorkflowExecutionFailedEventAttributes
 -> Rep ChildWorkflowExecutionFailedEventAttributes x)
-> (forall x.
    Rep ChildWorkflowExecutionFailedEventAttributes x
    -> ChildWorkflowExecutionFailedEventAttributes)
-> Generic ChildWorkflowExecutionFailedEventAttributes
forall x.
Rep ChildWorkflowExecutionFailedEventAttributes x
-> ChildWorkflowExecutionFailedEventAttributes
forall x.
ChildWorkflowExecutionFailedEventAttributes
-> Rep ChildWorkflowExecutionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChildWorkflowExecutionFailedEventAttributes x
-> ChildWorkflowExecutionFailedEventAttributes
$cfrom :: forall x.
ChildWorkflowExecutionFailedEventAttributes
-> Rep ChildWorkflowExecutionFailedEventAttributes x
Prelude.Generic)

-- |
-- Create a value of 'ChildWorkflowExecutionFailedEventAttributes' 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:
--
-- 'reason', 'childWorkflowExecutionFailedEventAttributes_reason' - The reason for the failure (if provided).
--
-- 'details', 'childWorkflowExecutionFailedEventAttributes_details' - The details of the failure (if provided).
--
-- 'workflowExecution', 'childWorkflowExecutionFailedEventAttributes_workflowExecution' - The child workflow execution that failed.
--
-- 'workflowType', 'childWorkflowExecutionFailedEventAttributes_workflowType' - The type of the child workflow execution.
--
-- 'initiatedEventId', 'childWorkflowExecutionFailedEventAttributes_initiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding
-- to the @StartChildWorkflowExecution@ Decision to start this child
-- workflow execution. This information can be useful for diagnosing
-- problems by tracing back the chain of events leading up to this event.
--
-- 'startedEventId', 'childWorkflowExecutionFailedEventAttributes_startedEventId' - The ID of the @ChildWorkflowExecutionStarted@ event recorded when this
-- child workflow execution was started. This information can be useful for
-- diagnosing problems by tracing back the chain of events leading up to
-- this event.
newChildWorkflowExecutionFailedEventAttributes ::
  -- | 'workflowExecution'
  WorkflowExecution ->
  -- | 'workflowType'
  WorkflowType ->
  -- | 'initiatedEventId'
  Prelude.Integer ->
  -- | 'startedEventId'
  Prelude.Integer ->
  ChildWorkflowExecutionFailedEventAttributes
newChildWorkflowExecutionFailedEventAttributes :: WorkflowExecution
-> WorkflowType
-> Integer
-> Integer
-> ChildWorkflowExecutionFailedEventAttributes
newChildWorkflowExecutionFailedEventAttributes
  WorkflowExecution
pWorkflowExecution_
  WorkflowType
pWorkflowType_
  Integer
pInitiatedEventId_
  Integer
pStartedEventId_ =
    ChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
-> Maybe Text
-> WorkflowExecution
-> WorkflowType
-> Integer
-> Integer
-> ChildWorkflowExecutionFailedEventAttributes
ChildWorkflowExecutionFailedEventAttributes'
      { $sel:reason:ChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
reason =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:details:ChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
details = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:workflowExecution:ChildWorkflowExecutionFailedEventAttributes' :: WorkflowExecution
workflowExecution =
          WorkflowExecution
pWorkflowExecution_,
        $sel:workflowType:ChildWorkflowExecutionFailedEventAttributes' :: WorkflowType
workflowType = WorkflowType
pWorkflowType_,
        $sel:initiatedEventId:ChildWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId =
          Integer
pInitiatedEventId_,
        $sel:startedEventId:ChildWorkflowExecutionFailedEventAttributes' :: Integer
startedEventId =
          Integer
pStartedEventId_
      }

-- | The reason for the failure (if provided).
childWorkflowExecutionFailedEventAttributes_reason :: Lens.Lens' ChildWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
childWorkflowExecutionFailedEventAttributes_reason :: (Maybe Text -> f (Maybe Text))
-> ChildWorkflowExecutionFailedEventAttributes
-> f ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes_reason = (ChildWorkflowExecutionFailedEventAttributes -> Maybe Text)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> Maybe Text -> ChildWorkflowExecutionFailedEventAttributes)
-> Lens
     ChildWorkflowExecutionFailedEventAttributes
     ChildWorkflowExecutionFailedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionFailedEventAttributes' {Maybe Text
reason :: Maybe Text
$sel:reason:ChildWorkflowExecutionFailedEventAttributes' :: ChildWorkflowExecutionFailedEventAttributes -> Maybe Text
reason} -> Maybe Text
reason) (\s :: ChildWorkflowExecutionFailedEventAttributes
s@ChildWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> ChildWorkflowExecutionFailedEventAttributes
s {$sel:reason:ChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
reason = Maybe Text
a} :: ChildWorkflowExecutionFailedEventAttributes)

-- | The details of the failure (if provided).
childWorkflowExecutionFailedEventAttributes_details :: Lens.Lens' ChildWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
childWorkflowExecutionFailedEventAttributes_details :: (Maybe Text -> f (Maybe Text))
-> ChildWorkflowExecutionFailedEventAttributes
-> f ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes_details = (ChildWorkflowExecutionFailedEventAttributes -> Maybe Text)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> Maybe Text -> ChildWorkflowExecutionFailedEventAttributes)
-> Lens
     ChildWorkflowExecutionFailedEventAttributes
     ChildWorkflowExecutionFailedEventAttributes
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionFailedEventAttributes' {Maybe Text
details :: Maybe Text
$sel:details:ChildWorkflowExecutionFailedEventAttributes' :: ChildWorkflowExecutionFailedEventAttributes -> Maybe Text
details} -> Maybe Text
details) (\s :: ChildWorkflowExecutionFailedEventAttributes
s@ChildWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> ChildWorkflowExecutionFailedEventAttributes
s {$sel:details:ChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
details = Maybe Text
a} :: ChildWorkflowExecutionFailedEventAttributes)

-- | The child workflow execution that failed.
childWorkflowExecutionFailedEventAttributes_workflowExecution :: Lens.Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution
childWorkflowExecutionFailedEventAttributes_workflowExecution :: (WorkflowExecution -> f WorkflowExecution)
-> ChildWorkflowExecutionFailedEventAttributes
-> f ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes_workflowExecution = (ChildWorkflowExecutionFailedEventAttributes -> WorkflowExecution)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> WorkflowExecution
    -> ChildWorkflowExecutionFailedEventAttributes)
-> Lens
     ChildWorkflowExecutionFailedEventAttributes
     ChildWorkflowExecutionFailedEventAttributes
     WorkflowExecution
     WorkflowExecution
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionFailedEventAttributes' {WorkflowExecution
workflowExecution :: WorkflowExecution
$sel:workflowExecution:ChildWorkflowExecutionFailedEventAttributes' :: ChildWorkflowExecutionFailedEventAttributes -> WorkflowExecution
workflowExecution} -> WorkflowExecution
workflowExecution) (\s :: ChildWorkflowExecutionFailedEventAttributes
s@ChildWorkflowExecutionFailedEventAttributes' {} WorkflowExecution
a -> ChildWorkflowExecutionFailedEventAttributes
s {$sel:workflowExecution:ChildWorkflowExecutionFailedEventAttributes' :: WorkflowExecution
workflowExecution = WorkflowExecution
a} :: ChildWorkflowExecutionFailedEventAttributes)

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

-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding
-- to the @StartChildWorkflowExecution@ Decision to start this child
-- workflow execution. This information can be useful for diagnosing
-- problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens.Lens' ChildWorkflowExecutionFailedEventAttributes Prelude.Integer
childWorkflowExecutionFailedEventAttributes_initiatedEventId :: (Integer -> f Integer)
-> ChildWorkflowExecutionFailedEventAttributes
-> f ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes_initiatedEventId = (ChildWorkflowExecutionFailedEventAttributes -> Integer)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> Integer -> ChildWorkflowExecutionFailedEventAttributes)
-> Lens
     ChildWorkflowExecutionFailedEventAttributes
     ChildWorkflowExecutionFailedEventAttributes
     Integer
     Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionFailedEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:ChildWorkflowExecutionFailedEventAttributes' :: ChildWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: ChildWorkflowExecutionFailedEventAttributes
s@ChildWorkflowExecutionFailedEventAttributes' {} Integer
a -> ChildWorkflowExecutionFailedEventAttributes
s {$sel:initiatedEventId:ChildWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId = Integer
a} :: ChildWorkflowExecutionFailedEventAttributes)

-- | The ID of the @ChildWorkflowExecutionStarted@ event recorded when this
-- child workflow execution was started. This information can be useful for
-- diagnosing problems by tracing back the chain of events leading up to
-- this event.
childWorkflowExecutionFailedEventAttributes_startedEventId :: Lens.Lens' ChildWorkflowExecutionFailedEventAttributes Prelude.Integer
childWorkflowExecutionFailedEventAttributes_startedEventId :: (Integer -> f Integer)
-> ChildWorkflowExecutionFailedEventAttributes
-> f ChildWorkflowExecutionFailedEventAttributes
childWorkflowExecutionFailedEventAttributes_startedEventId = (ChildWorkflowExecutionFailedEventAttributes -> Integer)
-> (ChildWorkflowExecutionFailedEventAttributes
    -> Integer -> ChildWorkflowExecutionFailedEventAttributes)
-> Lens
     ChildWorkflowExecutionFailedEventAttributes
     ChildWorkflowExecutionFailedEventAttributes
     Integer
     Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionFailedEventAttributes' {Integer
startedEventId :: Integer
$sel:startedEventId:ChildWorkflowExecutionFailedEventAttributes' :: ChildWorkflowExecutionFailedEventAttributes -> Integer
startedEventId} -> Integer
startedEventId) (\s :: ChildWorkflowExecutionFailedEventAttributes
s@ChildWorkflowExecutionFailedEventAttributes' {} Integer
a -> ChildWorkflowExecutionFailedEventAttributes
s {$sel:startedEventId:ChildWorkflowExecutionFailedEventAttributes' :: Integer
startedEventId = Integer
a} :: ChildWorkflowExecutionFailedEventAttributes)

instance
  Core.FromJSON
    ChildWorkflowExecutionFailedEventAttributes
  where
  parseJSON :: Value -> Parser ChildWorkflowExecutionFailedEventAttributes
parseJSON =
    String
-> (Object -> Parser ChildWorkflowExecutionFailedEventAttributes)
-> Value
-> Parser ChildWorkflowExecutionFailedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ChildWorkflowExecutionFailedEventAttributes"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> WorkflowExecution
-> WorkflowType
-> Integer
-> Integer
-> ChildWorkflowExecutionFailedEventAttributes
ChildWorkflowExecutionFailedEventAttributes'
            (Maybe Text
 -> Maybe Text
 -> WorkflowExecution
 -> WorkflowType
 -> Integer
 -> Integer
 -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> WorkflowExecution
      -> WorkflowType
      -> Integer
      -> Integer
      -> ChildWorkflowExecutionFailedEventAttributes)
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
"reason")
              Parser
  (Maybe Text
   -> WorkflowExecution
   -> WorkflowType
   -> Integer
   -> Integer
   -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser (Maybe Text)
-> Parser
     (WorkflowExecution
      -> WorkflowType
      -> Integer
      -> Integer
      -> ChildWorkflowExecutionFailedEventAttributes)
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
"details")
              Parser
  (WorkflowExecution
   -> WorkflowType
   -> Integer
   -> Integer
   -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser WorkflowExecution
-> Parser
     (WorkflowType
      -> Integer
      -> Integer
      -> ChildWorkflowExecutionFailedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser WorkflowExecution
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowExecution")
              Parser
  (WorkflowType
   -> Integer
   -> Integer
   -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser WorkflowType
-> Parser
     (Integer -> Integer -> ChildWorkflowExecutionFailedEventAttributes)
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
  (Integer -> Integer -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser Integer
-> Parser (Integer -> ChildWorkflowExecutionFailedEventAttributes)
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
"initiatedEventId")
              Parser (Integer -> ChildWorkflowExecutionFailedEventAttributes)
-> Parser Integer
-> Parser ChildWorkflowExecutionFailedEventAttributes
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
"startedEventId")
      )

instance
  Prelude.Hashable
    ChildWorkflowExecutionFailedEventAttributes

instance
  Prelude.NFData
    ChildWorkflowExecutionFailedEventAttributes