{-# 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.LambdaFunctionTimedOutEventDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data LambdaFunctionTimedOutEventDetails = LambdaFunctionTimedOutEventDetails'
{
LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text)
error :: Prelude.Maybe (Core.Sensitive Prelude.Text),
LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text)
cause :: Prelude.Maybe (Core.Sensitive Prelude.Text)
}
deriving (LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool
(LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool)
-> (LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool)
-> Eq LambdaFunctionTimedOutEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool
$c/= :: LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool
== :: LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool
$c== :: LambdaFunctionTimedOutEventDetails
-> LambdaFunctionTimedOutEventDetails -> Bool
Prelude.Eq, Int -> LambdaFunctionTimedOutEventDetails -> ShowS
[LambdaFunctionTimedOutEventDetails] -> ShowS
LambdaFunctionTimedOutEventDetails -> String
(Int -> LambdaFunctionTimedOutEventDetails -> ShowS)
-> (LambdaFunctionTimedOutEventDetails -> String)
-> ([LambdaFunctionTimedOutEventDetails] -> ShowS)
-> Show LambdaFunctionTimedOutEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LambdaFunctionTimedOutEventDetails] -> ShowS
$cshowList :: [LambdaFunctionTimedOutEventDetails] -> ShowS
show :: LambdaFunctionTimedOutEventDetails -> String
$cshow :: LambdaFunctionTimedOutEventDetails -> String
showsPrec :: Int -> LambdaFunctionTimedOutEventDetails -> ShowS
$cshowsPrec :: Int -> LambdaFunctionTimedOutEventDetails -> ShowS
Prelude.Show, (forall x.
LambdaFunctionTimedOutEventDetails
-> Rep LambdaFunctionTimedOutEventDetails x)
-> (forall x.
Rep LambdaFunctionTimedOutEventDetails x
-> LambdaFunctionTimedOutEventDetails)
-> Generic LambdaFunctionTimedOutEventDetails
forall x.
Rep LambdaFunctionTimedOutEventDetails x
-> LambdaFunctionTimedOutEventDetails
forall x.
LambdaFunctionTimedOutEventDetails
-> Rep LambdaFunctionTimedOutEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LambdaFunctionTimedOutEventDetails x
-> LambdaFunctionTimedOutEventDetails
$cfrom :: forall x.
LambdaFunctionTimedOutEventDetails
-> Rep LambdaFunctionTimedOutEventDetails x
Prelude.Generic)
newLambdaFunctionTimedOutEventDetails ::
LambdaFunctionTimedOutEventDetails
newLambdaFunctionTimedOutEventDetails :: LambdaFunctionTimedOutEventDetails
newLambdaFunctionTimedOutEventDetails =
LambdaFunctionTimedOutEventDetails' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails
LambdaFunctionTimedOutEventDetails'
{ $sel:error:LambdaFunctionTimedOutEventDetails' :: Maybe (Sensitive Text)
error =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:cause:LambdaFunctionTimedOutEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing
}
lambdaFunctionTimedOutEventDetails_error :: Lens.Lens' LambdaFunctionTimedOutEventDetails (Prelude.Maybe Prelude.Text)
lambdaFunctionTimedOutEventDetails_error :: (Maybe Text -> f (Maybe Text))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails_error = (LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text))
-> (LambdaFunctionTimedOutEventDetails
-> Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails)
-> Lens
LambdaFunctionTimedOutEventDetails
LambdaFunctionTimedOutEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionTimedOutEventDetails' {Maybe (Sensitive Text)
error :: Maybe (Sensitive Text)
$sel:error:LambdaFunctionTimedOutEventDetails' :: LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text)
error} -> Maybe (Sensitive Text)
error) (\s :: LambdaFunctionTimedOutEventDetails
s@LambdaFunctionTimedOutEventDetails' {} Maybe (Sensitive Text)
a -> LambdaFunctionTimedOutEventDetails
s {$sel:error:LambdaFunctionTimedOutEventDetails' :: Maybe (Sensitive Text)
error = Maybe (Sensitive Text)
a} :: LambdaFunctionTimedOutEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails
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
lambdaFunctionTimedOutEventDetails_cause :: Lens.Lens' LambdaFunctionTimedOutEventDetails (Prelude.Maybe Prelude.Text)
lambdaFunctionTimedOutEventDetails_cause :: (Maybe Text -> f (Maybe Text))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails_cause = (LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text))
-> (LambdaFunctionTimedOutEventDetails
-> Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails)
-> Lens
LambdaFunctionTimedOutEventDetails
LambdaFunctionTimedOutEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionTimedOutEventDetails' {Maybe (Sensitive Text)
cause :: Maybe (Sensitive Text)
$sel:cause:LambdaFunctionTimedOutEventDetails' :: LambdaFunctionTimedOutEventDetails -> Maybe (Sensitive Text)
cause} -> Maybe (Sensitive Text)
cause) (\s :: LambdaFunctionTimedOutEventDetails
s@LambdaFunctionTimedOutEventDetails' {} Maybe (Sensitive Text)
a -> LambdaFunctionTimedOutEventDetails
s {$sel:cause:LambdaFunctionTimedOutEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
a} :: LambdaFunctionTimedOutEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> LambdaFunctionTimedOutEventDetails
-> f LambdaFunctionTimedOutEventDetails
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
instance
Core.FromJSON
LambdaFunctionTimedOutEventDetails
where
parseJSON :: Value -> Parser LambdaFunctionTimedOutEventDetails
parseJSON =
String
-> (Object -> Parser LambdaFunctionTimedOutEventDetails)
-> Value
-> Parser LambdaFunctionTimedOutEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LambdaFunctionTimedOutEventDetails"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails
LambdaFunctionTimedOutEventDetails'
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails)
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
"error")
Parser
(Maybe (Sensitive Text) -> LambdaFunctionTimedOutEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser LambdaFunctionTimedOutEventDetails
forall (f :: * -> *) a b. Applicative f => 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
"cause")
)
instance
Prelude.Hashable
LambdaFunctionTimedOutEventDetails
instance
Prelude.NFData
LambdaFunctionTimedOutEventDetails