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