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