{-# 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.SWF.Types.StartLambdaFunctionFailedEventAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.StartLambdaFunctionFailedCause
data StartLambdaFunctionFailedEventAttributes = StartLambdaFunctionFailedEventAttributes'
{
StartLambdaFunctionFailedEventAttributes -> Maybe Integer
scheduledEventId :: Prelude.Maybe Prelude.Integer,
StartLambdaFunctionFailedEventAttributes
-> Maybe StartLambdaFunctionFailedCause
cause :: Prelude.Maybe StartLambdaFunctionFailedCause,
StartLambdaFunctionFailedEventAttributes -> Maybe Text
message :: Prelude.Maybe Prelude.Text
}
deriving (StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool
(StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool)
-> (StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool)
-> Eq StartLambdaFunctionFailedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool
$c/= :: StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool
== :: StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool
$c== :: StartLambdaFunctionFailedEventAttributes
-> StartLambdaFunctionFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [StartLambdaFunctionFailedEventAttributes]
ReadPrec StartLambdaFunctionFailedEventAttributes
Int -> ReadS StartLambdaFunctionFailedEventAttributes
ReadS [StartLambdaFunctionFailedEventAttributes]
(Int -> ReadS StartLambdaFunctionFailedEventAttributes)
-> ReadS [StartLambdaFunctionFailedEventAttributes]
-> ReadPrec StartLambdaFunctionFailedEventAttributes
-> ReadPrec [StartLambdaFunctionFailedEventAttributes]
-> Read StartLambdaFunctionFailedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartLambdaFunctionFailedEventAttributes]
$creadListPrec :: ReadPrec [StartLambdaFunctionFailedEventAttributes]
readPrec :: ReadPrec StartLambdaFunctionFailedEventAttributes
$creadPrec :: ReadPrec StartLambdaFunctionFailedEventAttributes
readList :: ReadS [StartLambdaFunctionFailedEventAttributes]
$creadList :: ReadS [StartLambdaFunctionFailedEventAttributes]
readsPrec :: Int -> ReadS StartLambdaFunctionFailedEventAttributes
$creadsPrec :: Int -> ReadS StartLambdaFunctionFailedEventAttributes
Prelude.Read, Int -> StartLambdaFunctionFailedEventAttributes -> ShowS
[StartLambdaFunctionFailedEventAttributes] -> ShowS
StartLambdaFunctionFailedEventAttributes -> String
(Int -> StartLambdaFunctionFailedEventAttributes -> ShowS)
-> (StartLambdaFunctionFailedEventAttributes -> String)
-> ([StartLambdaFunctionFailedEventAttributes] -> ShowS)
-> Show StartLambdaFunctionFailedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartLambdaFunctionFailedEventAttributes] -> ShowS
$cshowList :: [StartLambdaFunctionFailedEventAttributes] -> ShowS
show :: StartLambdaFunctionFailedEventAttributes -> String
$cshow :: StartLambdaFunctionFailedEventAttributes -> String
showsPrec :: Int -> StartLambdaFunctionFailedEventAttributes -> ShowS
$cshowsPrec :: Int -> StartLambdaFunctionFailedEventAttributes -> ShowS
Prelude.Show, (forall x.
StartLambdaFunctionFailedEventAttributes
-> Rep StartLambdaFunctionFailedEventAttributes x)
-> (forall x.
Rep StartLambdaFunctionFailedEventAttributes x
-> StartLambdaFunctionFailedEventAttributes)
-> Generic StartLambdaFunctionFailedEventAttributes
forall x.
Rep StartLambdaFunctionFailedEventAttributes x
-> StartLambdaFunctionFailedEventAttributes
forall x.
StartLambdaFunctionFailedEventAttributes
-> Rep StartLambdaFunctionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartLambdaFunctionFailedEventAttributes x
-> StartLambdaFunctionFailedEventAttributes
$cfrom :: forall x.
StartLambdaFunctionFailedEventAttributes
-> Rep StartLambdaFunctionFailedEventAttributes x
Prelude.Generic)
newStartLambdaFunctionFailedEventAttributes ::
StartLambdaFunctionFailedEventAttributes
newStartLambdaFunctionFailedEventAttributes :: StartLambdaFunctionFailedEventAttributes
newStartLambdaFunctionFailedEventAttributes =
StartLambdaFunctionFailedEventAttributes' :: Maybe Integer
-> Maybe StartLambdaFunctionFailedCause
-> Maybe Text
-> StartLambdaFunctionFailedEventAttributes
StartLambdaFunctionFailedEventAttributes'
{ $sel:scheduledEventId:StartLambdaFunctionFailedEventAttributes' :: Maybe Integer
scheduledEventId =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:cause:StartLambdaFunctionFailedEventAttributes' :: Maybe StartLambdaFunctionFailedCause
cause = Maybe StartLambdaFunctionFailedCause
forall a. Maybe a
Prelude.Nothing,
$sel:message:StartLambdaFunctionFailedEventAttributes' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
startLambdaFunctionFailedEventAttributes_scheduledEventId :: Lens.Lens' StartLambdaFunctionFailedEventAttributes (Prelude.Maybe Prelude.Integer)
startLambdaFunctionFailedEventAttributes_scheduledEventId :: (Maybe Integer -> f (Maybe Integer))
-> StartLambdaFunctionFailedEventAttributes
-> f StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes_scheduledEventId = (StartLambdaFunctionFailedEventAttributes -> Maybe Integer)
-> (StartLambdaFunctionFailedEventAttributes
-> Maybe Integer -> StartLambdaFunctionFailedEventAttributes)
-> Lens
StartLambdaFunctionFailedEventAttributes
StartLambdaFunctionFailedEventAttributes
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartLambdaFunctionFailedEventAttributes' {Maybe Integer
scheduledEventId :: Maybe Integer
$sel:scheduledEventId:StartLambdaFunctionFailedEventAttributes' :: StartLambdaFunctionFailedEventAttributes -> Maybe Integer
scheduledEventId} -> Maybe Integer
scheduledEventId) (\s :: StartLambdaFunctionFailedEventAttributes
s@StartLambdaFunctionFailedEventAttributes' {} Maybe Integer
a -> StartLambdaFunctionFailedEventAttributes
s {$sel:scheduledEventId:StartLambdaFunctionFailedEventAttributes' :: Maybe Integer
scheduledEventId = Maybe Integer
a} :: StartLambdaFunctionFailedEventAttributes)
startLambdaFunctionFailedEventAttributes_cause :: Lens.Lens' StartLambdaFunctionFailedEventAttributes (Prelude.Maybe StartLambdaFunctionFailedCause)
startLambdaFunctionFailedEventAttributes_cause :: (Maybe StartLambdaFunctionFailedCause
-> f (Maybe StartLambdaFunctionFailedCause))
-> StartLambdaFunctionFailedEventAttributes
-> f StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes_cause = (StartLambdaFunctionFailedEventAttributes
-> Maybe StartLambdaFunctionFailedCause)
-> (StartLambdaFunctionFailedEventAttributes
-> Maybe StartLambdaFunctionFailedCause
-> StartLambdaFunctionFailedEventAttributes)
-> Lens
StartLambdaFunctionFailedEventAttributes
StartLambdaFunctionFailedEventAttributes
(Maybe StartLambdaFunctionFailedCause)
(Maybe StartLambdaFunctionFailedCause)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartLambdaFunctionFailedEventAttributes' {Maybe StartLambdaFunctionFailedCause
cause :: Maybe StartLambdaFunctionFailedCause
$sel:cause:StartLambdaFunctionFailedEventAttributes' :: StartLambdaFunctionFailedEventAttributes
-> Maybe StartLambdaFunctionFailedCause
cause} -> Maybe StartLambdaFunctionFailedCause
cause) (\s :: StartLambdaFunctionFailedEventAttributes
s@StartLambdaFunctionFailedEventAttributes' {} Maybe StartLambdaFunctionFailedCause
a -> StartLambdaFunctionFailedEventAttributes
s {$sel:cause:StartLambdaFunctionFailedEventAttributes' :: Maybe StartLambdaFunctionFailedCause
cause = Maybe StartLambdaFunctionFailedCause
a} :: StartLambdaFunctionFailedEventAttributes)
startLambdaFunctionFailedEventAttributes_message :: Lens.Lens' StartLambdaFunctionFailedEventAttributes (Prelude.Maybe Prelude.Text)
startLambdaFunctionFailedEventAttributes_message :: (Maybe Text -> f (Maybe Text))
-> StartLambdaFunctionFailedEventAttributes
-> f StartLambdaFunctionFailedEventAttributes
startLambdaFunctionFailedEventAttributes_message = (StartLambdaFunctionFailedEventAttributes -> Maybe Text)
-> (StartLambdaFunctionFailedEventAttributes
-> Maybe Text -> StartLambdaFunctionFailedEventAttributes)
-> Lens
StartLambdaFunctionFailedEventAttributes
StartLambdaFunctionFailedEventAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartLambdaFunctionFailedEventAttributes' {Maybe Text
message :: Maybe Text
$sel:message:StartLambdaFunctionFailedEventAttributes' :: StartLambdaFunctionFailedEventAttributes -> Maybe Text
message} -> Maybe Text
message) (\s :: StartLambdaFunctionFailedEventAttributes
s@StartLambdaFunctionFailedEventAttributes' {} Maybe Text
a -> StartLambdaFunctionFailedEventAttributes
s {$sel:message:StartLambdaFunctionFailedEventAttributes' :: Maybe Text
message = Maybe Text
a} :: StartLambdaFunctionFailedEventAttributes)
instance
Core.FromJSON
StartLambdaFunctionFailedEventAttributes
where
parseJSON :: Value -> Parser StartLambdaFunctionFailedEventAttributes
parseJSON =
String
-> (Object -> Parser StartLambdaFunctionFailedEventAttributes)
-> Value
-> Parser StartLambdaFunctionFailedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"StartLambdaFunctionFailedEventAttributes"
( \Object
x ->
Maybe Integer
-> Maybe StartLambdaFunctionFailedCause
-> Maybe Text
-> StartLambdaFunctionFailedEventAttributes
StartLambdaFunctionFailedEventAttributes'
(Maybe Integer
-> Maybe StartLambdaFunctionFailedCause
-> Maybe Text
-> StartLambdaFunctionFailedEventAttributes)
-> Parser (Maybe Integer)
-> Parser
(Maybe StartLambdaFunctionFailedCause
-> Maybe Text -> StartLambdaFunctionFailedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"scheduledEventId")
Parser
(Maybe StartLambdaFunctionFailedCause
-> Maybe Text -> StartLambdaFunctionFailedEventAttributes)
-> Parser (Maybe StartLambdaFunctionFailedCause)
-> Parser (Maybe Text -> StartLambdaFunctionFailedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StartLambdaFunctionFailedCause)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cause")
Parser (Maybe Text -> StartLambdaFunctionFailedEventAttributes)
-> Parser (Maybe Text)
-> Parser StartLambdaFunctionFailedEventAttributes
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
"message")
)
instance
Prelude.Hashable
StartLambdaFunctionFailedEventAttributes
instance
Prelude.NFData
StartLambdaFunctionFailedEventAttributes