{-# 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.LambdaFunctionScheduledEventDetails 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 LambdaFunctionScheduledEventDetails = LambdaFunctionScheduledEventDetails'
{
LambdaFunctionScheduledEventDetails
-> Maybe HistoryEventExecutionDataDetails
inputDetails :: Prelude.Maybe HistoryEventExecutionDataDetails,
LambdaFunctionScheduledEventDetails -> Maybe (Sensitive Text)
input :: Prelude.Maybe (Core.Sensitive Prelude.Text),
LambdaFunctionScheduledEventDetails -> Maybe Integer
timeoutInSeconds :: Prelude.Maybe Prelude.Integer,
LambdaFunctionScheduledEventDetails -> Text
resource :: Prelude.Text
}
deriving (LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool
(LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool)
-> (LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool)
-> Eq LambdaFunctionScheduledEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool
$c/= :: LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool
== :: LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool
$c== :: LambdaFunctionScheduledEventDetails
-> LambdaFunctionScheduledEventDetails -> Bool
Prelude.Eq, Int -> LambdaFunctionScheduledEventDetails -> ShowS
[LambdaFunctionScheduledEventDetails] -> ShowS
LambdaFunctionScheduledEventDetails -> String
(Int -> LambdaFunctionScheduledEventDetails -> ShowS)
-> (LambdaFunctionScheduledEventDetails -> String)
-> ([LambdaFunctionScheduledEventDetails] -> ShowS)
-> Show LambdaFunctionScheduledEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LambdaFunctionScheduledEventDetails] -> ShowS
$cshowList :: [LambdaFunctionScheduledEventDetails] -> ShowS
show :: LambdaFunctionScheduledEventDetails -> String
$cshow :: LambdaFunctionScheduledEventDetails -> String
showsPrec :: Int -> LambdaFunctionScheduledEventDetails -> ShowS
$cshowsPrec :: Int -> LambdaFunctionScheduledEventDetails -> ShowS
Prelude.Show, (forall x.
LambdaFunctionScheduledEventDetails
-> Rep LambdaFunctionScheduledEventDetails x)
-> (forall x.
Rep LambdaFunctionScheduledEventDetails x
-> LambdaFunctionScheduledEventDetails)
-> Generic LambdaFunctionScheduledEventDetails
forall x.
Rep LambdaFunctionScheduledEventDetails x
-> LambdaFunctionScheduledEventDetails
forall x.
LambdaFunctionScheduledEventDetails
-> Rep LambdaFunctionScheduledEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LambdaFunctionScheduledEventDetails x
-> LambdaFunctionScheduledEventDetails
$cfrom :: forall x.
LambdaFunctionScheduledEventDetails
-> Rep LambdaFunctionScheduledEventDetails x
Prelude.Generic)
newLambdaFunctionScheduledEventDetails ::
Prelude.Text ->
LambdaFunctionScheduledEventDetails
newLambdaFunctionScheduledEventDetails :: Text -> LambdaFunctionScheduledEventDetails
newLambdaFunctionScheduledEventDetails Text
pResource_ =
LambdaFunctionScheduledEventDetails' :: Maybe HistoryEventExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Integer
-> Text
-> LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails'
{ $sel:inputDetails:LambdaFunctionScheduledEventDetails' :: Maybe HistoryEventExecutionDataDetails
inputDetails =
Maybe HistoryEventExecutionDataDetails
forall a. Maybe a
Prelude.Nothing,
$sel:input:LambdaFunctionScheduledEventDetails' :: Maybe (Sensitive Text)
input = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:timeoutInSeconds:LambdaFunctionScheduledEventDetails' :: Maybe Integer
timeoutInSeconds = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:resource:LambdaFunctionScheduledEventDetails' :: Text
resource = Text
pResource_
}
lambdaFunctionScheduledEventDetails_inputDetails :: Lens.Lens' LambdaFunctionScheduledEventDetails (Prelude.Maybe HistoryEventExecutionDataDetails)
lambdaFunctionScheduledEventDetails_inputDetails :: (Maybe HistoryEventExecutionDataDetails
-> f (Maybe HistoryEventExecutionDataDetails))
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails_inputDetails = (LambdaFunctionScheduledEventDetails
-> Maybe HistoryEventExecutionDataDetails)
-> (LambdaFunctionScheduledEventDetails
-> Maybe HistoryEventExecutionDataDetails
-> LambdaFunctionScheduledEventDetails)
-> Lens
LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails
(Maybe HistoryEventExecutionDataDetails)
(Maybe HistoryEventExecutionDataDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionScheduledEventDetails' {Maybe HistoryEventExecutionDataDetails
inputDetails :: Maybe HistoryEventExecutionDataDetails
$sel:inputDetails:LambdaFunctionScheduledEventDetails' :: LambdaFunctionScheduledEventDetails
-> Maybe HistoryEventExecutionDataDetails
inputDetails} -> Maybe HistoryEventExecutionDataDetails
inputDetails) (\s :: LambdaFunctionScheduledEventDetails
s@LambdaFunctionScheduledEventDetails' {} Maybe HistoryEventExecutionDataDetails
a -> LambdaFunctionScheduledEventDetails
s {$sel:inputDetails:LambdaFunctionScheduledEventDetails' :: Maybe HistoryEventExecutionDataDetails
inputDetails = Maybe HistoryEventExecutionDataDetails
a} :: LambdaFunctionScheduledEventDetails)
lambdaFunctionScheduledEventDetails_input :: Lens.Lens' LambdaFunctionScheduledEventDetails (Prelude.Maybe Prelude.Text)
lambdaFunctionScheduledEventDetails_input :: (Maybe Text -> f (Maybe Text))
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails_input = (LambdaFunctionScheduledEventDetails -> Maybe (Sensitive Text))
-> (LambdaFunctionScheduledEventDetails
-> Maybe (Sensitive Text) -> LambdaFunctionScheduledEventDetails)
-> Lens
LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionScheduledEventDetails' {Maybe (Sensitive Text)
input :: Maybe (Sensitive Text)
$sel:input:LambdaFunctionScheduledEventDetails' :: LambdaFunctionScheduledEventDetails -> Maybe (Sensitive Text)
input} -> Maybe (Sensitive Text)
input) (\s :: LambdaFunctionScheduledEventDetails
s@LambdaFunctionScheduledEventDetails' {} Maybe (Sensitive Text)
a -> LambdaFunctionScheduledEventDetails
s {$sel:input:LambdaFunctionScheduledEventDetails' :: Maybe (Sensitive Text)
input = Maybe (Sensitive Text)
a} :: LambdaFunctionScheduledEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails
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
lambdaFunctionScheduledEventDetails_timeoutInSeconds :: Lens.Lens' LambdaFunctionScheduledEventDetails (Prelude.Maybe Prelude.Integer)
lambdaFunctionScheduledEventDetails_timeoutInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails_timeoutInSeconds = (LambdaFunctionScheduledEventDetails -> Maybe Integer)
-> (LambdaFunctionScheduledEventDetails
-> Maybe Integer -> LambdaFunctionScheduledEventDetails)
-> Lens
LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionScheduledEventDetails' {Maybe Integer
timeoutInSeconds :: Maybe Integer
$sel:timeoutInSeconds:LambdaFunctionScheduledEventDetails' :: LambdaFunctionScheduledEventDetails -> Maybe Integer
timeoutInSeconds} -> Maybe Integer
timeoutInSeconds) (\s :: LambdaFunctionScheduledEventDetails
s@LambdaFunctionScheduledEventDetails' {} Maybe Integer
a -> LambdaFunctionScheduledEventDetails
s {$sel:timeoutInSeconds:LambdaFunctionScheduledEventDetails' :: Maybe Integer
timeoutInSeconds = Maybe Integer
a} :: LambdaFunctionScheduledEventDetails)
lambdaFunctionScheduledEventDetails_resource :: Lens.Lens' LambdaFunctionScheduledEventDetails Prelude.Text
lambdaFunctionScheduledEventDetails_resource :: (Text -> f Text)
-> LambdaFunctionScheduledEventDetails
-> f LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails_resource = (LambdaFunctionScheduledEventDetails -> Text)
-> (LambdaFunctionScheduledEventDetails
-> Text -> LambdaFunctionScheduledEventDetails)
-> Lens
LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionScheduledEventDetails' {Text
resource :: Text
$sel:resource:LambdaFunctionScheduledEventDetails' :: LambdaFunctionScheduledEventDetails -> Text
resource} -> Text
resource) (\s :: LambdaFunctionScheduledEventDetails
s@LambdaFunctionScheduledEventDetails' {} Text
a -> LambdaFunctionScheduledEventDetails
s {$sel:resource:LambdaFunctionScheduledEventDetails' :: Text
resource = Text
a} :: LambdaFunctionScheduledEventDetails)
instance
Core.FromJSON
LambdaFunctionScheduledEventDetails
where
parseJSON :: Value -> Parser LambdaFunctionScheduledEventDetails
parseJSON =
String
-> (Object -> Parser LambdaFunctionScheduledEventDetails)
-> Value
-> Parser LambdaFunctionScheduledEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LambdaFunctionScheduledEventDetails"
( \Object
x ->
Maybe HistoryEventExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Integer
-> Text
-> LambdaFunctionScheduledEventDetails
LambdaFunctionScheduledEventDetails'
(Maybe HistoryEventExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Integer
-> Text
-> LambdaFunctionScheduledEventDetails)
-> Parser (Maybe HistoryEventExecutionDataDetails)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Integer -> Text -> LambdaFunctionScheduledEventDetails)
forall (f :: * -> *) a b. Functor 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
"inputDetails")
Parser
(Maybe (Sensitive Text)
-> Maybe Integer -> Text -> LambdaFunctionScheduledEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Integer -> Text -> LambdaFunctionScheduledEventDetails)
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
"input")
Parser
(Maybe Integer -> Text -> LambdaFunctionScheduledEventDetails)
-> Parser (Maybe Integer)
-> Parser (Text -> LambdaFunctionScheduledEventDetails)
forall (f :: * -> *) a b. Applicative f => 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
"timeoutInSeconds")
Parser (Text -> LambdaFunctionScheduledEventDetails)
-> Parser Text -> Parser LambdaFunctionScheduledEventDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resource")
)
instance
Prelude.Hashable
LambdaFunctionScheduledEventDetails
instance
Prelude.NFData
LambdaFunctionScheduledEventDetails