module Stratosphere.GreengrassV2.ComponentVersion.LambdaEventSourceProperty (
LambdaEventSourceProperty(..), mkLambdaEventSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaEventSourceProperty
=
LambdaEventSourceProperty {LambdaEventSourceProperty -> ()
haddock_workaround_ :: (),
LambdaEventSourceProperty -> Maybe (Value Text)
topic :: (Prelude.Maybe (Value Prelude.Text)),
LambdaEventSourceProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool
(LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool)
-> (LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool)
-> Eq LambdaEventSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool
== :: LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool
$c/= :: LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool
/= :: LambdaEventSourceProperty -> LambdaEventSourceProperty -> Bool
Prelude.Eq, Int -> LambdaEventSourceProperty -> ShowS
[LambdaEventSourceProperty] -> ShowS
LambdaEventSourceProperty -> String
(Int -> LambdaEventSourceProperty -> ShowS)
-> (LambdaEventSourceProperty -> String)
-> ([LambdaEventSourceProperty] -> ShowS)
-> Show LambdaEventSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaEventSourceProperty -> ShowS
showsPrec :: Int -> LambdaEventSourceProperty -> ShowS
$cshow :: LambdaEventSourceProperty -> String
show :: LambdaEventSourceProperty -> String
$cshowList :: [LambdaEventSourceProperty] -> ShowS
showList :: [LambdaEventSourceProperty] -> ShowS
Prelude.Show)
mkLambdaEventSourceProperty :: LambdaEventSourceProperty
mkLambdaEventSourceProperty :: LambdaEventSourceProperty
mkLambdaEventSourceProperty
= LambdaEventSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), topic :: Maybe (Value Text)
topic = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaEventSourceProperty where
toResourceProperties :: LambdaEventSourceProperty -> ResourceProperties
toResourceProperties LambdaEventSourceProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaEventSourceProperty -> ()
topic :: LambdaEventSourceProperty -> Maybe (Value Text)
type' :: LambdaEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GreengrassV2::ComponentVersion.LambdaEventSource",
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
"Topic" (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)
topic,
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
"Type" (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)
type'])}
instance JSON.ToJSON LambdaEventSourceProperty where
toJSON :: LambdaEventSourceProperty -> Value
toJSON LambdaEventSourceProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaEventSourceProperty -> ()
topic :: LambdaEventSourceProperty -> Maybe (Value Text)
type' :: LambdaEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
type' :: 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
"Topic" (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)
topic,
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
"Type" (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)
type']))
instance Property "Topic" LambdaEventSourceProperty where
type PropertyType "Topic" LambdaEventSourceProperty = Value Prelude.Text
set :: PropertyType "Topic" LambdaEventSourceProperty
-> LambdaEventSourceProperty -> LambdaEventSourceProperty
set PropertyType "Topic" LambdaEventSourceProperty
newValue LambdaEventSourceProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaEventSourceProperty -> ()
topic :: LambdaEventSourceProperty -> Maybe (Value Text)
type' :: LambdaEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LambdaEventSourceProperty {topic :: Maybe (Value Text)
topic = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Topic" LambdaEventSourceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" LambdaEventSourceProperty where
type PropertyType "Type" LambdaEventSourceProperty = Value Prelude.Text
set :: PropertyType "Type" LambdaEventSourceProperty
-> LambdaEventSourceProperty -> LambdaEventSourceProperty
set PropertyType "Type" LambdaEventSourceProperty
newValue LambdaEventSourceProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaEventSourceProperty -> ()
topic :: LambdaEventSourceProperty -> Maybe (Value Text)
type' :: LambdaEventSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LambdaEventSourceProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" LambdaEventSourceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
haddock_workaround_ :: ()
topic :: Maybe (Value Text)
..}