{-# 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 #-}
module Amazonka.StepFunctions.Types.ActivitySucceededEventDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.StepFunctions.Types.HistoryEventExecutionDataDetails
data ActivitySucceededEventDetails = ActivitySucceededEventDetails'
{
ActivitySucceededEventDetails -> Maybe (Sensitive Text)
output :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ActivitySucceededEventDetails
-> Maybe HistoryEventExecutionDataDetails
outputDetails :: Prelude.Maybe HistoryEventExecutionDataDetails
}
deriving (ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool
(ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool)
-> (ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool)
-> Eq ActivitySucceededEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool
$c/= :: ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool
== :: ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool
$c== :: ActivitySucceededEventDetails
-> ActivitySucceededEventDetails -> Bool
Prelude.Eq, Int -> ActivitySucceededEventDetails -> ShowS
[ActivitySucceededEventDetails] -> ShowS
ActivitySucceededEventDetails -> String
(Int -> ActivitySucceededEventDetails -> ShowS)
-> (ActivitySucceededEventDetails -> String)
-> ([ActivitySucceededEventDetails] -> ShowS)
-> Show ActivitySucceededEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivitySucceededEventDetails] -> ShowS
$cshowList :: [ActivitySucceededEventDetails] -> ShowS
show :: ActivitySucceededEventDetails -> String
$cshow :: ActivitySucceededEventDetails -> String
showsPrec :: Int -> ActivitySucceededEventDetails -> ShowS
$cshowsPrec :: Int -> ActivitySucceededEventDetails -> ShowS
Prelude.Show, (forall x.
ActivitySucceededEventDetails
-> Rep ActivitySucceededEventDetails x)
-> (forall x.
Rep ActivitySucceededEventDetails x
-> ActivitySucceededEventDetails)
-> Generic ActivitySucceededEventDetails
forall x.
Rep ActivitySucceededEventDetails x
-> ActivitySucceededEventDetails
forall x.
ActivitySucceededEventDetails
-> Rep ActivitySucceededEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ActivitySucceededEventDetails x
-> ActivitySucceededEventDetails
$cfrom :: forall x.
ActivitySucceededEventDetails
-> Rep ActivitySucceededEventDetails x
Prelude.Generic)
newActivitySucceededEventDetails ::
ActivitySucceededEventDetails
newActivitySucceededEventDetails :: ActivitySucceededEventDetails
newActivitySucceededEventDetails =
ActivitySucceededEventDetails' :: Maybe (Sensitive Text)
-> Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails
ActivitySucceededEventDetails'
{ $sel:output:ActivitySucceededEventDetails' :: Maybe (Sensitive Text)
output =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:outputDetails:ActivitySucceededEventDetails' :: Maybe HistoryEventExecutionDataDetails
outputDetails = Maybe HistoryEventExecutionDataDetails
forall a. Maybe a
Prelude.Nothing
}
activitySucceededEventDetails_output :: Lens.Lens' ActivitySucceededEventDetails (Prelude.Maybe Prelude.Text)
activitySucceededEventDetails_output :: (Maybe Text -> f (Maybe Text))
-> ActivitySucceededEventDetails -> f ActivitySucceededEventDetails
activitySucceededEventDetails_output = (ActivitySucceededEventDetails -> Maybe (Sensitive Text))
-> (ActivitySucceededEventDetails
-> Maybe (Sensitive Text) -> ActivitySucceededEventDetails)
-> Lens
ActivitySucceededEventDetails
ActivitySucceededEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivitySucceededEventDetails' {Maybe (Sensitive Text)
output :: Maybe (Sensitive Text)
$sel:output:ActivitySucceededEventDetails' :: ActivitySucceededEventDetails -> Maybe (Sensitive Text)
output} -> Maybe (Sensitive Text)
output) (\s :: ActivitySucceededEventDetails
s@ActivitySucceededEventDetails' {} Maybe (Sensitive Text)
a -> ActivitySucceededEventDetails
s {$sel:output:ActivitySucceededEventDetails' :: Maybe (Sensitive Text)
output = Maybe (Sensitive Text)
a} :: ActivitySucceededEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ActivitySucceededEventDetails
-> f ActivitySucceededEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ActivitySucceededEventDetails
-> f ActivitySucceededEventDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
activitySucceededEventDetails_outputDetails :: Lens.Lens' ActivitySucceededEventDetails (Prelude.Maybe HistoryEventExecutionDataDetails)
activitySucceededEventDetails_outputDetails :: (Maybe HistoryEventExecutionDataDetails
-> f (Maybe HistoryEventExecutionDataDetails))
-> ActivitySucceededEventDetails -> f ActivitySucceededEventDetails
activitySucceededEventDetails_outputDetails = (ActivitySucceededEventDetails
-> Maybe HistoryEventExecutionDataDetails)
-> (ActivitySucceededEventDetails
-> Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails)
-> Lens
ActivitySucceededEventDetails
ActivitySucceededEventDetails
(Maybe HistoryEventExecutionDataDetails)
(Maybe HistoryEventExecutionDataDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivitySucceededEventDetails' {Maybe HistoryEventExecutionDataDetails
outputDetails :: Maybe HistoryEventExecutionDataDetails
$sel:outputDetails:ActivitySucceededEventDetails' :: ActivitySucceededEventDetails
-> Maybe HistoryEventExecutionDataDetails
outputDetails} -> Maybe HistoryEventExecutionDataDetails
outputDetails) (\s :: ActivitySucceededEventDetails
s@ActivitySucceededEventDetails' {} Maybe HistoryEventExecutionDataDetails
a -> ActivitySucceededEventDetails
s {$sel:outputDetails:ActivitySucceededEventDetails' :: Maybe HistoryEventExecutionDataDetails
outputDetails = Maybe HistoryEventExecutionDataDetails
a} :: ActivitySucceededEventDetails)
instance Core.FromJSON ActivitySucceededEventDetails where
parseJSON :: Value -> Parser ActivitySucceededEventDetails
parseJSON =
String
-> (Object -> Parser ActivitySucceededEventDetails)
-> Value
-> Parser ActivitySucceededEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ActivitySucceededEventDetails"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails
ActivitySucceededEventDetails'
(Maybe (Sensitive Text)
-> Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"output")
Parser
(Maybe HistoryEventExecutionDataDetails
-> ActivitySucceededEventDetails)
-> Parser (Maybe HistoryEventExecutionDataDetails)
-> Parser ActivitySucceededEventDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe HistoryEventExecutionDataDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"outputDetails")
)
instance
Prelude.Hashable
ActivitySucceededEventDetails
instance Prelude.NFData ActivitySucceededEventDetails