module Stratosphere.IoTTwinMaker.Entity.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)
groupType :: (Prelude.Maybe (Value Prelude.Text)),
PropertyGroupProperty -> Maybe (ValueList Text)
propertyNames :: (Prelude.Maybe (ValueList 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_ = (), groupType :: Maybe (Value Text)
groupType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
propertyNames :: Maybe (ValueList Text)
propertyNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PropertyGroupProperty where
toResourceProperties :: PropertyGroupProperty -> ResourceProperties
toResourceProperties PropertyGroupProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
groupType :: PropertyGroupProperty -> Maybe (Value Text)
propertyNames :: PropertyGroupProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
propertyNames :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTTwinMaker::Entity.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
"GroupType" (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)
groupType,
Key -> ValueList 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
"PropertyNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
propertyNames])}
instance JSON.ToJSON PropertyGroupProperty where
toJSON :: PropertyGroupProperty -> Value
toJSON PropertyGroupProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
groupType :: PropertyGroupProperty -> Maybe (Value Text)
propertyNames :: PropertyGroupProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
propertyNames :: Maybe (ValueList 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
"GroupType" (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)
groupType,
Key -> ValueList 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
"PropertyNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
propertyNames]))
instance Property "GroupType" PropertyGroupProperty where
type PropertyType "GroupType" PropertyGroupProperty = Value Prelude.Text
set :: PropertyType "GroupType" PropertyGroupProperty
-> PropertyGroupProperty -> PropertyGroupProperty
set PropertyType "GroupType" PropertyGroupProperty
newValue PropertyGroupProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
groupType :: PropertyGroupProperty -> Maybe (Value Text)
propertyNames :: PropertyGroupProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
propertyNames :: Maybe (ValueList Text)
..}
= PropertyGroupProperty {groupType :: Maybe (Value Text)
groupType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GroupType" PropertyGroupProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
propertyNames :: Maybe (ValueList Text)
haddock_workaround_ :: ()
propertyNames :: Maybe (ValueList Text)
..}
instance Property "PropertyNames" PropertyGroupProperty where
type PropertyType "PropertyNames" PropertyGroupProperty = ValueList Prelude.Text
set :: PropertyType "PropertyNames" PropertyGroupProperty
-> PropertyGroupProperty -> PropertyGroupProperty
set PropertyType "PropertyNames" PropertyGroupProperty
newValue PropertyGroupProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PropertyGroupProperty -> ()
groupType :: PropertyGroupProperty -> Maybe (Value Text)
propertyNames :: PropertyGroupProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
propertyNames :: Maybe (ValueList Text)
..}
= PropertyGroupProperty {propertyNames :: Maybe (ValueList Text)
propertyNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PropertyNames" PropertyGroupProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
haddock_workaround_ :: ()
groupType :: Maybe (Value Text)
..}