module Stratosphere.Pipes.Pipe.PipeTargetLambdaFunctionParametersProperty (
PipeTargetLambdaFunctionParametersProperty(..),
mkPipeTargetLambdaFunctionParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipeTargetLambdaFunctionParametersProperty
=
PipeTargetLambdaFunctionParametersProperty {PipeTargetLambdaFunctionParametersProperty -> ()
haddock_workaround_ :: (),
PipeTargetLambdaFunctionParametersProperty -> Maybe (Value Text)
invocationType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool
(PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool)
-> (PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool)
-> Eq PipeTargetLambdaFunctionParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool
== :: PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool
$c/= :: PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool
/= :: PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty -> Bool
Prelude.Eq, Int -> PipeTargetLambdaFunctionParametersProperty -> ShowS
[PipeTargetLambdaFunctionParametersProperty] -> ShowS
PipeTargetLambdaFunctionParametersProperty -> String
(Int -> PipeTargetLambdaFunctionParametersProperty -> ShowS)
-> (PipeTargetLambdaFunctionParametersProperty -> String)
-> ([PipeTargetLambdaFunctionParametersProperty] -> ShowS)
-> Show PipeTargetLambdaFunctionParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipeTargetLambdaFunctionParametersProperty -> ShowS
showsPrec :: Int -> PipeTargetLambdaFunctionParametersProperty -> ShowS
$cshow :: PipeTargetLambdaFunctionParametersProperty -> String
show :: PipeTargetLambdaFunctionParametersProperty -> String
$cshowList :: [PipeTargetLambdaFunctionParametersProperty] -> ShowS
showList :: [PipeTargetLambdaFunctionParametersProperty] -> ShowS
Prelude.Show)
mkPipeTargetLambdaFunctionParametersProperty ::
PipeTargetLambdaFunctionParametersProperty
mkPipeTargetLambdaFunctionParametersProperty :: PipeTargetLambdaFunctionParametersProperty
mkPipeTargetLambdaFunctionParametersProperty
= PipeTargetLambdaFunctionParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), invocationType :: Maybe (Value Text)
invocationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipeTargetLambdaFunctionParametersProperty where
toResourceProperties :: PipeTargetLambdaFunctionParametersProperty -> ResourceProperties
toResourceProperties
PipeTargetLambdaFunctionParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetLambdaFunctionParametersProperty -> ()
invocationType :: PipeTargetLambdaFunctionParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
invocationType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.PipeTargetLambdaFunctionParameters",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InvocationType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
invocationType])}
instance JSON.ToJSON PipeTargetLambdaFunctionParametersProperty where
toJSON :: PipeTargetLambdaFunctionParametersProperty -> Value
toJSON PipeTargetLambdaFunctionParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetLambdaFunctionParametersProperty -> ()
invocationType :: PipeTargetLambdaFunctionParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
invocationType :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InvocationType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
invocationType]))
instance Property "InvocationType" PipeTargetLambdaFunctionParametersProperty where
type PropertyType "InvocationType" PipeTargetLambdaFunctionParametersProperty = Value Prelude.Text
set :: PropertyType
"InvocationType" PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty
-> PipeTargetLambdaFunctionParametersProperty
set PropertyType
"InvocationType" PipeTargetLambdaFunctionParametersProperty
newValue PipeTargetLambdaFunctionParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetLambdaFunctionParametersProperty -> ()
invocationType :: PipeTargetLambdaFunctionParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
invocationType :: Maybe (Value Text)
..}
= PipeTargetLambdaFunctionParametersProperty
{invocationType :: Maybe (Value Text)
invocationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InvocationType" PipeTargetLambdaFunctionParametersProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}