{-# 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.CodePipeline.Types.ActionExecutionDetail
-- 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.CodePipeline.Types.ActionExecutionDetail where

import Amazonka.CodePipeline.Types.ActionExecutionInput
import Amazonka.CodePipeline.Types.ActionExecutionOutput
import Amazonka.CodePipeline.Types.ActionExecutionStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Returns information about an execution of an action, including the
-- action execution ID, and the name, version, and timing of the action.
--
-- /See:/ 'newActionExecutionDetail' smart constructor.
data ActionExecutionDetail = ActionExecutionDetail'
  { -- | The status of the action execution. Status categories are @InProgress@,
    -- @Succeeded@, and @Failed@.
    ActionExecutionDetail -> Maybe ActionExecutionStatus
status :: Prelude.Maybe ActionExecutionStatus,
    -- | The start time of the action execution.
    ActionExecutionDetail -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | The version of the pipeline where the action was run.
    ActionExecutionDetail -> Maybe Natural
pipelineVersion :: Prelude.Maybe Prelude.Natural,
    -- | Input details for the action execution, such as role ARN, Region, and
    -- input artifacts.
    ActionExecutionDetail -> Maybe ActionExecutionInput
input :: Prelude.Maybe ActionExecutionInput,
    -- | The name of the action.
    ActionExecutionDetail -> Maybe Text
actionName :: Prelude.Maybe Prelude.Text,
    -- | Output details for the action execution, such as the action execution
    -- result.
    ActionExecutionDetail -> Maybe ActionExecutionOutput
output :: Prelude.Maybe ActionExecutionOutput,
    -- | The pipeline execution ID for the action execution.
    ActionExecutionDetail -> Maybe Text
pipelineExecutionId :: Prelude.Maybe Prelude.Text,
    -- | The name of the stage that contains the action.
    ActionExecutionDetail -> Maybe Text
stageName :: Prelude.Maybe Prelude.Text,
    -- | The last update time of the action execution.
    ActionExecutionDetail -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | The action execution ID.
    ActionExecutionDetail -> Maybe Text
actionExecutionId :: Prelude.Maybe Prelude.Text
  }
  deriving (ActionExecutionDetail -> ActionExecutionDetail -> Bool
(ActionExecutionDetail -> ActionExecutionDetail -> Bool)
-> (ActionExecutionDetail -> ActionExecutionDetail -> Bool)
-> Eq ActionExecutionDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionExecutionDetail -> ActionExecutionDetail -> Bool
$c/= :: ActionExecutionDetail -> ActionExecutionDetail -> Bool
== :: ActionExecutionDetail -> ActionExecutionDetail -> Bool
$c== :: ActionExecutionDetail -> ActionExecutionDetail -> Bool
Prelude.Eq, ReadPrec [ActionExecutionDetail]
ReadPrec ActionExecutionDetail
Int -> ReadS ActionExecutionDetail
ReadS [ActionExecutionDetail]
(Int -> ReadS ActionExecutionDetail)
-> ReadS [ActionExecutionDetail]
-> ReadPrec ActionExecutionDetail
-> ReadPrec [ActionExecutionDetail]
-> Read ActionExecutionDetail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionExecutionDetail]
$creadListPrec :: ReadPrec [ActionExecutionDetail]
readPrec :: ReadPrec ActionExecutionDetail
$creadPrec :: ReadPrec ActionExecutionDetail
readList :: ReadS [ActionExecutionDetail]
$creadList :: ReadS [ActionExecutionDetail]
readsPrec :: Int -> ReadS ActionExecutionDetail
$creadsPrec :: Int -> ReadS ActionExecutionDetail
Prelude.Read, Int -> ActionExecutionDetail -> ShowS
[ActionExecutionDetail] -> ShowS
ActionExecutionDetail -> String
(Int -> ActionExecutionDetail -> ShowS)
-> (ActionExecutionDetail -> String)
-> ([ActionExecutionDetail] -> ShowS)
-> Show ActionExecutionDetail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionExecutionDetail] -> ShowS
$cshowList :: [ActionExecutionDetail] -> ShowS
show :: ActionExecutionDetail -> String
$cshow :: ActionExecutionDetail -> String
showsPrec :: Int -> ActionExecutionDetail -> ShowS
$cshowsPrec :: Int -> ActionExecutionDetail -> ShowS
Prelude.Show, (forall x. ActionExecutionDetail -> Rep ActionExecutionDetail x)
-> (forall x. Rep ActionExecutionDetail x -> ActionExecutionDetail)
-> Generic ActionExecutionDetail
forall x. Rep ActionExecutionDetail x -> ActionExecutionDetail
forall x. ActionExecutionDetail -> Rep ActionExecutionDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionExecutionDetail x -> ActionExecutionDetail
$cfrom :: forall x. ActionExecutionDetail -> Rep ActionExecutionDetail x
Prelude.Generic)

-- |
-- Create a value of 'ActionExecutionDetail' 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:
--
-- 'status', 'actionExecutionDetail_status' - The status of the action execution. Status categories are @InProgress@,
-- @Succeeded@, and @Failed@.
--
-- 'startTime', 'actionExecutionDetail_startTime' - The start time of the action execution.
--
-- 'pipelineVersion', 'actionExecutionDetail_pipelineVersion' - The version of the pipeline where the action was run.
--
-- 'input', 'actionExecutionDetail_input' - Input details for the action execution, such as role ARN, Region, and
-- input artifacts.
--
-- 'actionName', 'actionExecutionDetail_actionName' - The name of the action.
--
-- 'output', 'actionExecutionDetail_output' - Output details for the action execution, such as the action execution
-- result.
--
-- 'pipelineExecutionId', 'actionExecutionDetail_pipelineExecutionId' - The pipeline execution ID for the action execution.
--
-- 'stageName', 'actionExecutionDetail_stageName' - The name of the stage that contains the action.
--
-- 'lastUpdateTime', 'actionExecutionDetail_lastUpdateTime' - The last update time of the action execution.
--
-- 'actionExecutionId', 'actionExecutionDetail_actionExecutionId' - The action execution ID.
newActionExecutionDetail ::
  ActionExecutionDetail
newActionExecutionDetail :: ActionExecutionDetail
newActionExecutionDetail =
  ActionExecutionDetail' :: Maybe ActionExecutionStatus
-> Maybe POSIX
-> Maybe Natural
-> Maybe ActionExecutionInput
-> Maybe Text
-> Maybe ActionExecutionOutput
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> ActionExecutionDetail
ActionExecutionDetail'
    { $sel:status:ActionExecutionDetail' :: Maybe ActionExecutionStatus
status = Maybe ActionExecutionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:ActionExecutionDetail' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineVersion:ActionExecutionDetail' :: Maybe Natural
pipelineVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:input:ActionExecutionDetail' :: Maybe ActionExecutionInput
input = Maybe ActionExecutionInput
forall a. Maybe a
Prelude.Nothing,
      $sel:actionName:ActionExecutionDetail' :: Maybe Text
actionName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:output:ActionExecutionDetail' :: Maybe ActionExecutionOutput
output = Maybe ActionExecutionOutput
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineExecutionId:ActionExecutionDetail' :: Maybe Text
pipelineExecutionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:stageName:ActionExecutionDetail' :: Maybe Text
stageName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdateTime:ActionExecutionDetail' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:actionExecutionId:ActionExecutionDetail' :: Maybe Text
actionExecutionId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the action execution. Status categories are @InProgress@,
-- @Succeeded@, and @Failed@.
actionExecutionDetail_status :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe ActionExecutionStatus)
actionExecutionDetail_status :: (Maybe ActionExecutionStatus -> f (Maybe ActionExecutionStatus))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_status = (ActionExecutionDetail -> Maybe ActionExecutionStatus)
-> (ActionExecutionDetail
    -> Maybe ActionExecutionStatus -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe ActionExecutionStatus)
     (Maybe ActionExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe ActionExecutionStatus
status :: Maybe ActionExecutionStatus
$sel:status:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe ActionExecutionStatus
status} -> Maybe ActionExecutionStatus
status) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe ActionExecutionStatus
a -> ActionExecutionDetail
s {$sel:status:ActionExecutionDetail' :: Maybe ActionExecutionStatus
status = Maybe ActionExecutionStatus
a} :: ActionExecutionDetail)

-- | The start time of the action execution.
actionExecutionDetail_startTime :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.UTCTime)
actionExecutionDetail_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_startTime = (ActionExecutionDetail -> Maybe POSIX)
-> (ActionExecutionDetail -> Maybe POSIX -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe POSIX
a -> ActionExecutionDetail
s {$sel:startTime:ActionExecutionDetail' :: Maybe POSIX
startTime = Maybe POSIX
a} :: ActionExecutionDetail) ((Maybe POSIX -> f (Maybe POSIX))
 -> ActionExecutionDetail -> f ActionExecutionDetail)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ActionExecutionDetail
-> f ActionExecutionDetail
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The version of the pipeline where the action was run.
actionExecutionDetail_pipelineVersion :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.Natural)
actionExecutionDetail_pipelineVersion :: (Maybe Natural -> f (Maybe Natural))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_pipelineVersion = (ActionExecutionDetail -> Maybe Natural)
-> (ActionExecutionDetail
    -> Maybe Natural -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe Natural
pipelineVersion :: Maybe Natural
$sel:pipelineVersion:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe Natural
pipelineVersion} -> Maybe Natural
pipelineVersion) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe Natural
a -> ActionExecutionDetail
s {$sel:pipelineVersion:ActionExecutionDetail' :: Maybe Natural
pipelineVersion = Maybe Natural
a} :: ActionExecutionDetail)

-- | Input details for the action execution, such as role ARN, Region, and
-- input artifacts.
actionExecutionDetail_input :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe ActionExecutionInput)
actionExecutionDetail_input :: (Maybe ActionExecutionInput -> f (Maybe ActionExecutionInput))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_input = (ActionExecutionDetail -> Maybe ActionExecutionInput)
-> (ActionExecutionDetail
    -> Maybe ActionExecutionInput -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe ActionExecutionInput)
     (Maybe ActionExecutionInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe ActionExecutionInput
input :: Maybe ActionExecutionInput
$sel:input:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe ActionExecutionInput
input} -> Maybe ActionExecutionInput
input) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe ActionExecutionInput
a -> ActionExecutionDetail
s {$sel:input:ActionExecutionDetail' :: Maybe ActionExecutionInput
input = Maybe ActionExecutionInput
a} :: ActionExecutionDetail)

-- | The name of the action.
actionExecutionDetail_actionName :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.Text)
actionExecutionDetail_actionName :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_actionName = (ActionExecutionDetail -> Maybe Text)
-> (ActionExecutionDetail -> Maybe Text -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe Text
actionName :: Maybe Text
$sel:actionName:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe Text
actionName} -> Maybe Text
actionName) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe Text
a -> ActionExecutionDetail
s {$sel:actionName:ActionExecutionDetail' :: Maybe Text
actionName = Maybe Text
a} :: ActionExecutionDetail)

-- | Output details for the action execution, such as the action execution
-- result.
actionExecutionDetail_output :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe ActionExecutionOutput)
actionExecutionDetail_output :: (Maybe ActionExecutionOutput -> f (Maybe ActionExecutionOutput))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_output = (ActionExecutionDetail -> Maybe ActionExecutionOutput)
-> (ActionExecutionDetail
    -> Maybe ActionExecutionOutput -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe ActionExecutionOutput)
     (Maybe ActionExecutionOutput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe ActionExecutionOutput
output :: Maybe ActionExecutionOutput
$sel:output:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe ActionExecutionOutput
output} -> Maybe ActionExecutionOutput
output) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe ActionExecutionOutput
a -> ActionExecutionDetail
s {$sel:output:ActionExecutionDetail' :: Maybe ActionExecutionOutput
output = Maybe ActionExecutionOutput
a} :: ActionExecutionDetail)

-- | The pipeline execution ID for the action execution.
actionExecutionDetail_pipelineExecutionId :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.Text)
actionExecutionDetail_pipelineExecutionId :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_pipelineExecutionId = (ActionExecutionDetail -> Maybe Text)
-> (ActionExecutionDetail -> Maybe Text -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe Text
pipelineExecutionId :: Maybe Text
$sel:pipelineExecutionId:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe Text
pipelineExecutionId} -> Maybe Text
pipelineExecutionId) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe Text
a -> ActionExecutionDetail
s {$sel:pipelineExecutionId:ActionExecutionDetail' :: Maybe Text
pipelineExecutionId = Maybe Text
a} :: ActionExecutionDetail)

-- | The name of the stage that contains the action.
actionExecutionDetail_stageName :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.Text)
actionExecutionDetail_stageName :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_stageName = (ActionExecutionDetail -> Maybe Text)
-> (ActionExecutionDetail -> Maybe Text -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe Text
stageName :: Maybe Text
$sel:stageName:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe Text
stageName} -> Maybe Text
stageName) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe Text
a -> ActionExecutionDetail
s {$sel:stageName:ActionExecutionDetail' :: Maybe Text
stageName = Maybe Text
a} :: ActionExecutionDetail)

-- | The last update time of the action execution.
actionExecutionDetail_lastUpdateTime :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.UTCTime)
actionExecutionDetail_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_lastUpdateTime = (ActionExecutionDetail -> Maybe POSIX)
-> (ActionExecutionDetail -> Maybe POSIX -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe POSIX
a -> ActionExecutionDetail
s {$sel:lastUpdateTime:ActionExecutionDetail' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: ActionExecutionDetail) ((Maybe POSIX -> f (Maybe POSIX))
 -> ActionExecutionDetail -> f ActionExecutionDetail)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ActionExecutionDetail
-> f ActionExecutionDetail
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The action execution ID.
actionExecutionDetail_actionExecutionId :: Lens.Lens' ActionExecutionDetail (Prelude.Maybe Prelude.Text)
actionExecutionDetail_actionExecutionId :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionDetail -> f ActionExecutionDetail
actionExecutionDetail_actionExecutionId = (ActionExecutionDetail -> Maybe Text)
-> (ActionExecutionDetail -> Maybe Text -> ActionExecutionDetail)
-> Lens
     ActionExecutionDetail
     ActionExecutionDetail
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionDetail' {Maybe Text
actionExecutionId :: Maybe Text
$sel:actionExecutionId:ActionExecutionDetail' :: ActionExecutionDetail -> Maybe Text
actionExecutionId} -> Maybe Text
actionExecutionId) (\s :: ActionExecutionDetail
s@ActionExecutionDetail' {} Maybe Text
a -> ActionExecutionDetail
s {$sel:actionExecutionId:ActionExecutionDetail' :: Maybe Text
actionExecutionId = Maybe Text
a} :: ActionExecutionDetail)

instance Core.FromJSON ActionExecutionDetail where
  parseJSON :: Value -> Parser ActionExecutionDetail
parseJSON =
    String
-> (Object -> Parser ActionExecutionDetail)
-> Value
-> Parser ActionExecutionDetail
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ActionExecutionDetail"
      ( \Object
x ->
          Maybe ActionExecutionStatus
-> Maybe POSIX
-> Maybe Natural
-> Maybe ActionExecutionInput
-> Maybe Text
-> Maybe ActionExecutionOutput
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> ActionExecutionDetail
ActionExecutionDetail'
            (Maybe ActionExecutionStatus
 -> Maybe POSIX
 -> Maybe Natural
 -> Maybe ActionExecutionInput
 -> Maybe Text
 -> Maybe ActionExecutionOutput
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> ActionExecutionDetail)
-> Parser (Maybe ActionExecutionStatus)
-> Parser
     (Maybe POSIX
      -> Maybe Natural
      -> Maybe ActionExecutionInput
      -> Maybe Text
      -> Maybe ActionExecutionOutput
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ActionExecutionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe POSIX
   -> Maybe Natural
   -> Maybe ActionExecutionInput
   -> Maybe Text
   -> Maybe ActionExecutionOutput
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Natural
      -> Maybe ActionExecutionInput
      -> Maybe Text
      -> Maybe ActionExecutionOutput
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startTime")
            Parser
  (Maybe Natural
   -> Maybe ActionExecutionInput
   -> Maybe Text
   -> Maybe ActionExecutionOutput
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ActionExecutionInput
      -> Maybe Text
      -> Maybe ActionExecutionOutput
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"pipelineVersion")
            Parser
  (Maybe ActionExecutionInput
   -> Maybe Text
   -> Maybe ActionExecutionOutput
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe ActionExecutionInput)
-> Parser
     (Maybe Text
      -> Maybe ActionExecutionOutput
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActionExecutionInput)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"input")
            Parser
  (Maybe Text
   -> Maybe ActionExecutionOutput
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe ActionExecutionOutput
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
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
"actionName")
            Parser
  (Maybe ActionExecutionOutput
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe ActionExecutionOutput)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> ActionExecutionDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActionExecutionOutput)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"output")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> ActionExecutionDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe POSIX -> Maybe Text -> ActionExecutionDetail)
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
"pipelineExecutionId")
            Parser
  (Maybe Text -> Maybe POSIX -> Maybe Text -> ActionExecutionDetail)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe Text -> ActionExecutionDetail)
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
"stageName")
            Parser (Maybe POSIX -> Maybe Text -> ActionExecutionDetail)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> ActionExecutionDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdateTime")
            Parser (Maybe Text -> ActionExecutionDetail)
-> Parser (Maybe Text) -> Parser ActionExecutionDetail
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
"actionExecutionId")
      )

instance Prelude.Hashable ActionExecutionDetail

instance Prelude.NFData ActionExecutionDetail