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

import Amazonka.CodePipeline.Types.ActionTypeId
import Amazonka.CodePipeline.Types.ArtifactDetail
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Input information used for an action execution.
--
-- /See:/ 'newActionExecutionInput' smart constructor.
data ActionExecutionInput = ActionExecutionInput'
  { -- | The variable namespace associated with the action. All variables
    -- produced as output by this action fall under this namespace.
    ActionExecutionInput -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
    -- | Configuration data for an action execution with all variable references
    -- replaced with their real values for the execution.
    ActionExecutionInput -> Maybe (HashMap Text Text)
resolvedConfiguration :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The AWS Region for the action, such as us-east-1.
    ActionExecutionInput -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
    -- | Configuration data for an action execution.
    ActionExecutionInput -> Maybe (HashMap Text Text)
configuration :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    ActionExecutionInput -> Maybe ActionTypeId
actionTypeId :: Prelude.Maybe ActionTypeId,
    -- | Details of input artifacts of the action that correspond to the action
    -- execution.
    ActionExecutionInput -> Maybe [ArtifactDetail]
inputArtifacts :: Prelude.Maybe [ArtifactDetail],
    -- | The ARN of the IAM service role that performs the declared action. This
    -- is assumed through the roleArn for the pipeline.
    ActionExecutionInput -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
  }
  deriving (ActionExecutionInput -> ActionExecutionInput -> Bool
(ActionExecutionInput -> ActionExecutionInput -> Bool)
-> (ActionExecutionInput -> ActionExecutionInput -> Bool)
-> Eq ActionExecutionInput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionExecutionInput -> ActionExecutionInput -> Bool
$c/= :: ActionExecutionInput -> ActionExecutionInput -> Bool
== :: ActionExecutionInput -> ActionExecutionInput -> Bool
$c== :: ActionExecutionInput -> ActionExecutionInput -> Bool
Prelude.Eq, ReadPrec [ActionExecutionInput]
ReadPrec ActionExecutionInput
Int -> ReadS ActionExecutionInput
ReadS [ActionExecutionInput]
(Int -> ReadS ActionExecutionInput)
-> ReadS [ActionExecutionInput]
-> ReadPrec ActionExecutionInput
-> ReadPrec [ActionExecutionInput]
-> Read ActionExecutionInput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionExecutionInput]
$creadListPrec :: ReadPrec [ActionExecutionInput]
readPrec :: ReadPrec ActionExecutionInput
$creadPrec :: ReadPrec ActionExecutionInput
readList :: ReadS [ActionExecutionInput]
$creadList :: ReadS [ActionExecutionInput]
readsPrec :: Int -> ReadS ActionExecutionInput
$creadsPrec :: Int -> ReadS ActionExecutionInput
Prelude.Read, Int -> ActionExecutionInput -> ShowS
[ActionExecutionInput] -> ShowS
ActionExecutionInput -> String
(Int -> ActionExecutionInput -> ShowS)
-> (ActionExecutionInput -> String)
-> ([ActionExecutionInput] -> ShowS)
-> Show ActionExecutionInput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionExecutionInput] -> ShowS
$cshowList :: [ActionExecutionInput] -> ShowS
show :: ActionExecutionInput -> String
$cshow :: ActionExecutionInput -> String
showsPrec :: Int -> ActionExecutionInput -> ShowS
$cshowsPrec :: Int -> ActionExecutionInput -> ShowS
Prelude.Show, (forall x. ActionExecutionInput -> Rep ActionExecutionInput x)
-> (forall x. Rep ActionExecutionInput x -> ActionExecutionInput)
-> Generic ActionExecutionInput
forall x. Rep ActionExecutionInput x -> ActionExecutionInput
forall x. ActionExecutionInput -> Rep ActionExecutionInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionExecutionInput x -> ActionExecutionInput
$cfrom :: forall x. ActionExecutionInput -> Rep ActionExecutionInput x
Prelude.Generic)

-- |
-- Create a value of 'ActionExecutionInput' 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:
--
-- 'namespace', 'actionExecutionInput_namespace' - The variable namespace associated with the action. All variables
-- produced as output by this action fall under this namespace.
--
-- 'resolvedConfiguration', 'actionExecutionInput_resolvedConfiguration' - Configuration data for an action execution with all variable references
-- replaced with their real values for the execution.
--
-- 'region', 'actionExecutionInput_region' - The AWS Region for the action, such as us-east-1.
--
-- 'configuration', 'actionExecutionInput_configuration' - Configuration data for an action execution.
--
-- 'actionTypeId', 'actionExecutionInput_actionTypeId' - Undocumented member.
--
-- 'inputArtifacts', 'actionExecutionInput_inputArtifacts' - Details of input artifacts of the action that correspond to the action
-- execution.
--
-- 'roleArn', 'actionExecutionInput_roleArn' - The ARN of the IAM service role that performs the declared action. This
-- is assumed through the roleArn for the pipeline.
newActionExecutionInput ::
  ActionExecutionInput
newActionExecutionInput :: ActionExecutionInput
newActionExecutionInput =
  ActionExecutionInput' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe ActionTypeId
-> Maybe [ArtifactDetail]
-> Maybe Text
-> ActionExecutionInput
ActionExecutionInput'
    { $sel:namespace:ActionExecutionInput' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resolvedConfiguration:ActionExecutionInput' :: Maybe (HashMap Text Text)
resolvedConfiguration = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:region:ActionExecutionInput' :: Maybe Text
region = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:configuration:ActionExecutionInput' :: Maybe (HashMap Text Text)
configuration = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:actionTypeId:ActionExecutionInput' :: Maybe ActionTypeId
actionTypeId = Maybe ActionTypeId
forall a. Maybe a
Prelude.Nothing,
      $sel:inputArtifacts:ActionExecutionInput' :: Maybe [ArtifactDetail]
inputArtifacts = Maybe [ArtifactDetail]
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:ActionExecutionInput' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The variable namespace associated with the action. All variables
-- produced as output by this action fall under this namespace.
actionExecutionInput_namespace :: Lens.Lens' ActionExecutionInput (Prelude.Maybe Prelude.Text)
actionExecutionInput_namespace :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_namespace = (ActionExecutionInput -> Maybe Text)
-> (ActionExecutionInput -> Maybe Text -> ActionExecutionInput)
-> Lens
     ActionExecutionInput ActionExecutionInput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe Text
namespace :: Maybe Text
$sel:namespace:ActionExecutionInput' :: ActionExecutionInput -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe Text
a -> ActionExecutionInput
s {$sel:namespace:ActionExecutionInput' :: Maybe Text
namespace = Maybe Text
a} :: ActionExecutionInput)

-- | Configuration data for an action execution with all variable references
-- replaced with their real values for the execution.
actionExecutionInput_resolvedConfiguration :: Lens.Lens' ActionExecutionInput (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
actionExecutionInput_resolvedConfiguration :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_resolvedConfiguration = (ActionExecutionInput -> Maybe (HashMap Text Text))
-> (ActionExecutionInput
    -> Maybe (HashMap Text Text) -> ActionExecutionInput)
-> Lens
     ActionExecutionInput
     ActionExecutionInput
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe (HashMap Text Text)
resolvedConfiguration :: Maybe (HashMap Text Text)
$sel:resolvedConfiguration:ActionExecutionInput' :: ActionExecutionInput -> Maybe (HashMap Text Text)
resolvedConfiguration} -> Maybe (HashMap Text Text)
resolvedConfiguration) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe (HashMap Text Text)
a -> ActionExecutionInput
s {$sel:resolvedConfiguration:ActionExecutionInput' :: Maybe (HashMap Text Text)
resolvedConfiguration = Maybe (HashMap Text Text)
a} :: ActionExecutionInput) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ActionExecutionInput -> f ActionExecutionInput)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ActionExecutionInput
-> f ActionExecutionInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The AWS Region for the action, such as us-east-1.
actionExecutionInput_region :: Lens.Lens' ActionExecutionInput (Prelude.Maybe Prelude.Text)
actionExecutionInput_region :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_region = (ActionExecutionInput -> Maybe Text)
-> (ActionExecutionInput -> Maybe Text -> ActionExecutionInput)
-> Lens
     ActionExecutionInput ActionExecutionInput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe Text
region :: Maybe Text
$sel:region:ActionExecutionInput' :: ActionExecutionInput -> Maybe Text
region} -> Maybe Text
region) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe Text
a -> ActionExecutionInput
s {$sel:region:ActionExecutionInput' :: Maybe Text
region = Maybe Text
a} :: ActionExecutionInput)

-- | Configuration data for an action execution.
actionExecutionInput_configuration :: Lens.Lens' ActionExecutionInput (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
actionExecutionInput_configuration :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_configuration = (ActionExecutionInput -> Maybe (HashMap Text Text))
-> (ActionExecutionInput
    -> Maybe (HashMap Text Text) -> ActionExecutionInput)
-> Lens
     ActionExecutionInput
     ActionExecutionInput
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe (HashMap Text Text)
configuration :: Maybe (HashMap Text Text)
$sel:configuration:ActionExecutionInput' :: ActionExecutionInput -> Maybe (HashMap Text Text)
configuration} -> Maybe (HashMap Text Text)
configuration) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe (HashMap Text Text)
a -> ActionExecutionInput
s {$sel:configuration:ActionExecutionInput' :: Maybe (HashMap Text Text)
configuration = Maybe (HashMap Text Text)
a} :: ActionExecutionInput) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ActionExecutionInput -> f ActionExecutionInput)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ActionExecutionInput
-> f ActionExecutionInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
actionExecutionInput_actionTypeId :: Lens.Lens' ActionExecutionInput (Prelude.Maybe ActionTypeId)
actionExecutionInput_actionTypeId :: (Maybe ActionTypeId -> f (Maybe ActionTypeId))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_actionTypeId = (ActionExecutionInput -> Maybe ActionTypeId)
-> (ActionExecutionInput
    -> Maybe ActionTypeId -> ActionExecutionInput)
-> Lens
     ActionExecutionInput
     ActionExecutionInput
     (Maybe ActionTypeId)
     (Maybe ActionTypeId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe ActionTypeId
actionTypeId :: Maybe ActionTypeId
$sel:actionTypeId:ActionExecutionInput' :: ActionExecutionInput -> Maybe ActionTypeId
actionTypeId} -> Maybe ActionTypeId
actionTypeId) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe ActionTypeId
a -> ActionExecutionInput
s {$sel:actionTypeId:ActionExecutionInput' :: Maybe ActionTypeId
actionTypeId = Maybe ActionTypeId
a} :: ActionExecutionInput)

-- | Details of input artifacts of the action that correspond to the action
-- execution.
actionExecutionInput_inputArtifacts :: Lens.Lens' ActionExecutionInput (Prelude.Maybe [ArtifactDetail])
actionExecutionInput_inputArtifacts :: (Maybe [ArtifactDetail] -> f (Maybe [ArtifactDetail]))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_inputArtifacts = (ActionExecutionInput -> Maybe [ArtifactDetail])
-> (ActionExecutionInput
    -> Maybe [ArtifactDetail] -> ActionExecutionInput)
-> Lens
     ActionExecutionInput
     ActionExecutionInput
     (Maybe [ArtifactDetail])
     (Maybe [ArtifactDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe [ArtifactDetail]
inputArtifacts :: Maybe [ArtifactDetail]
$sel:inputArtifacts:ActionExecutionInput' :: ActionExecutionInput -> Maybe [ArtifactDetail]
inputArtifacts} -> Maybe [ArtifactDetail]
inputArtifacts) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe [ArtifactDetail]
a -> ActionExecutionInput
s {$sel:inputArtifacts:ActionExecutionInput' :: Maybe [ArtifactDetail]
inputArtifacts = Maybe [ArtifactDetail]
a} :: ActionExecutionInput) ((Maybe [ArtifactDetail] -> f (Maybe [ArtifactDetail]))
 -> ActionExecutionInput -> f ActionExecutionInput)
-> ((Maybe [ArtifactDetail] -> f (Maybe [ArtifactDetail]))
    -> Maybe [ArtifactDetail] -> f (Maybe [ArtifactDetail]))
-> (Maybe [ArtifactDetail] -> f (Maybe [ArtifactDetail]))
-> ActionExecutionInput
-> f ActionExecutionInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ArtifactDetail] [ArtifactDetail] [ArtifactDetail] [ArtifactDetail]
-> Iso
     (Maybe [ArtifactDetail])
     (Maybe [ArtifactDetail])
     (Maybe [ArtifactDetail])
     (Maybe [ArtifactDetail])
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
  [ArtifactDetail] [ArtifactDetail] [ArtifactDetail] [ArtifactDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ARN of the IAM service role that performs the declared action. This
-- is assumed through the roleArn for the pipeline.
actionExecutionInput_roleArn :: Lens.Lens' ActionExecutionInput (Prelude.Maybe Prelude.Text)
actionExecutionInput_roleArn :: (Maybe Text -> f (Maybe Text))
-> ActionExecutionInput -> f ActionExecutionInput
actionExecutionInput_roleArn = (ActionExecutionInput -> Maybe Text)
-> (ActionExecutionInput -> Maybe Text -> ActionExecutionInput)
-> Lens
     ActionExecutionInput ActionExecutionInput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActionExecutionInput' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:ActionExecutionInput' :: ActionExecutionInput -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: ActionExecutionInput
s@ActionExecutionInput' {} Maybe Text
a -> ActionExecutionInput
s {$sel:roleArn:ActionExecutionInput' :: Maybe Text
roleArn = Maybe Text
a} :: ActionExecutionInput)

instance Core.FromJSON ActionExecutionInput where
  parseJSON :: Value -> Parser ActionExecutionInput
parseJSON =
    String
-> (Object -> Parser ActionExecutionInput)
-> Value
-> Parser ActionExecutionInput
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ActionExecutionInput"
      ( \Object
x ->
          Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe ActionTypeId
-> Maybe [ArtifactDetail]
-> Maybe Text
-> ActionExecutionInput
ActionExecutionInput'
            (Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe ActionTypeId
 -> Maybe [ArtifactDetail]
 -> Maybe Text
 -> ActionExecutionInput)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe ActionTypeId
      -> Maybe [ArtifactDetail]
      -> Maybe Text
      -> ActionExecutionInput)
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
"namespace")
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe ActionTypeId
   -> Maybe [ArtifactDetail]
   -> Maybe Text
   -> ActionExecutionInput)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe ActionTypeId
      -> Maybe [ArtifactDetail]
      -> Maybe Text
      -> ActionExecutionInput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"resolvedConfiguration"
                            Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe ActionTypeId
   -> Maybe [ArtifactDetail]
   -> Maybe Text
   -> ActionExecutionInput)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe ActionTypeId
      -> Maybe [ArtifactDetail]
      -> Maybe Text
      -> ActionExecutionInput)
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
"region")
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe ActionTypeId
   -> Maybe [ArtifactDetail]
   -> Maybe Text
   -> ActionExecutionInput)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe ActionTypeId
      -> Maybe [ArtifactDetail] -> Maybe Text -> ActionExecutionInput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"configuration" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe ActionTypeId
   -> Maybe [ArtifactDetail] -> Maybe Text -> ActionExecutionInput)
-> Parser (Maybe ActionTypeId)
-> Parser
     (Maybe [ArtifactDetail] -> Maybe Text -> ActionExecutionInput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActionTypeId)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"actionTypeId")
            Parser
  (Maybe [ArtifactDetail] -> Maybe Text -> ActionExecutionInput)
-> Parser (Maybe [ArtifactDetail])
-> Parser (Maybe Text -> ActionExecutionInput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [ArtifactDetail]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"inputArtifacts" Parser (Maybe (Maybe [ArtifactDetail]))
-> Maybe [ArtifactDetail] -> Parser (Maybe [ArtifactDetail])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ArtifactDetail]
forall a. Monoid a => a
Prelude.mempty)
            Parser (Maybe Text -> ActionExecutionInput)
-> Parser (Maybe Text) -> Parser ActionExecutionInput
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
"roleArn")
      )

instance Prelude.Hashable ActionExecutionInput

instance Prelude.NFData ActionExecutionInput