module Stratosphere.KinesisAnalyticsV2.Application.PropertyGroupProperty (
PropertyGroupProperty(..), mkPropertyGroupProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PropertyGroupProperty
=
PropertyGroupProperty {PropertyGroupProperty -> ()
haddock_workaround_ :: (),
PropertyGroupProperty -> Maybe (Value Text)
propertyGroupId :: (Prelude.Maybe (Value Prelude.Text)),
PropertyGroupProperty -> Maybe (Map Text (Value Text))
propertyMap :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (PropertyGroupProperty -> PropertyGroupProperty -> Bool
(PropertyGroupProperty -> PropertyGroupProperty -> Bool)
-> (PropertyGroupProperty -> PropertyGroupProperty -> Bool)
-> Eq PropertyGroupProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PropertyGroupProperty -> PropertyGroupProperty -> Bool
== :: PropertyGroupProperty -> PropertyGroupProperty -> Bool
$c/= :: PropertyGroupProperty -> PropertyGroupProperty -> Bool
/= :: PropertyGroupProperty -> PropertyGroupProperty -> Bool
Prelude.Eq, Int -> PropertyGroupProperty -> ShowS
[PropertyGroupProperty] -> ShowS
PropertyGroupProperty -> String
(Int -> PropertyGroupProperty -> ShowS)
-> (PropertyGroupProperty -> String)
-> ([PropertyGroupProperty] -> ShowS)
-> Show PropertyGroupProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PropertyGroupProperty -> ShowS
showsPrec :: Int -> PropertyGroupProperty -> ShowS
$cshow :: PropertyGroupProperty -> String
show :: PropertyGroupProperty -> String
$cshowList :: [PropertyGroupProperty] -> ShowS
showList :: [PropertyGroupProperty] -> ShowS
Prelude.Show)
mkPropertyGroupProperty :: PropertyGroupProperty
mkPropertyGroupProperty :: PropertyGroupProperty
mkPropertyGroupProperty
= PropertyGroupProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), propertyGroupId :: Maybe (Value Text)
propertyGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
propertyMap :: Maybe (Map Text (Value Text))
propertyMap = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PropertyGroupProperty where
toResourceProperties :: PropertyGroupProperty -> ResourceProperties
toResourceProperties PropertyGroupProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
propertyGroupId :: PropertyGroupProperty -> Maybe (Value Text)
propertyMap :: PropertyGroupProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
propertyMap :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.PropertyGroup",
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
"PropertyGroupId" (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)
propertyGroupId,
Key -> Map Text (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
"PropertyMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
propertyMap])}
instance JSON.ToJSON PropertyGroupProperty where
toJSON :: PropertyGroupProperty -> Value
toJSON PropertyGroupProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
propertyGroupId :: PropertyGroupProperty -> Maybe (Value Text)
propertyMap :: PropertyGroupProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
propertyMap :: Maybe (Map Text (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
"PropertyGroupId" (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)
propertyGroupId,
Key -> Map Text (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
"PropertyMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
propertyMap]))
instance Property "PropertyGroupId" PropertyGroupProperty where
type PropertyType "PropertyGroupId" PropertyGroupProperty = Value Prelude.Text
set :: PropertyType "PropertyGroupId" PropertyGroupProperty
-> PropertyGroupProperty -> PropertyGroupProperty
set PropertyType "PropertyGroupId" PropertyGroupProperty
newValue PropertyGroupProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
propertyGroupId :: PropertyGroupProperty -> Maybe (Value Text)
propertyMap :: PropertyGroupProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
propertyMap :: Maybe (Map Text (Value Text))
..}
= PropertyGroupProperty
{propertyGroupId :: Maybe (Value Text)
propertyGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PropertyGroupId" PropertyGroupProperty
Value Text
newValue, Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
propertyMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
propertyMap :: Maybe (Map Text (Value Text))
..}
instance Property "PropertyMap" PropertyGroupProperty where
type PropertyType "PropertyMap" PropertyGroupProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "PropertyMap" PropertyGroupProperty
-> PropertyGroupProperty -> PropertyGroupProperty
set PropertyType "PropertyMap" PropertyGroupProperty
newValue PropertyGroupProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
propertyGroupId :: PropertyGroupProperty -> Maybe (Value Text)
propertyMap :: PropertyGroupProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
propertyMap :: Maybe (Map Text (Value Text))
..}
= PropertyGroupProperty {propertyMap :: Maybe (Map Text (Value Text))
propertyMap = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "PropertyMap" PropertyGroupProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
propertyGroupId :: Maybe (Value Text)
..}