module Stratosphere.IoT.ThingGroup.ThingGroupPropertiesProperty (
module Exports, ThingGroupPropertiesProperty(..),
mkThingGroupPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.ThingGroup.AttributePayloadProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThingGroupPropertiesProperty
=
ThingGroupPropertiesProperty {ThingGroupPropertiesProperty -> ()
haddock_workaround_ :: (),
ThingGroupPropertiesProperty -> Maybe AttributePayloadProperty
attributePayload :: (Prelude.Maybe AttributePayloadProperty),
ThingGroupPropertiesProperty -> Maybe (Value Text)
thingGroupDescription :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool
(ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool)
-> (ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool)
-> Eq ThingGroupPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool
== :: ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool
$c/= :: ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool
/= :: ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> Bool
Prelude.Eq, Int -> ThingGroupPropertiesProperty -> ShowS
[ThingGroupPropertiesProperty] -> ShowS
ThingGroupPropertiesProperty -> String
(Int -> ThingGroupPropertiesProperty -> ShowS)
-> (ThingGroupPropertiesProperty -> String)
-> ([ThingGroupPropertiesProperty] -> ShowS)
-> Show ThingGroupPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThingGroupPropertiesProperty -> ShowS
showsPrec :: Int -> ThingGroupPropertiesProperty -> ShowS
$cshow :: ThingGroupPropertiesProperty -> String
show :: ThingGroupPropertiesProperty -> String
$cshowList :: [ThingGroupPropertiesProperty] -> ShowS
showList :: [ThingGroupPropertiesProperty] -> ShowS
Prelude.Show)
mkThingGroupPropertiesProperty :: ThingGroupPropertiesProperty
mkThingGroupPropertiesProperty :: ThingGroupPropertiesProperty
mkThingGroupPropertiesProperty
= ThingGroupPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributePayload :: Maybe AttributePayloadProperty
attributePayload = Maybe AttributePayloadProperty
forall a. Maybe a
Prelude.Nothing,
thingGroupDescription :: Maybe (Value Text)
thingGroupDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ThingGroupPropertiesProperty where
toResourceProperties :: ThingGroupPropertiesProperty -> ResourceProperties
toResourceProperties ThingGroupPropertiesProperty {Maybe (Value Text)
Maybe AttributePayloadProperty
()
haddock_workaround_ :: ThingGroupPropertiesProperty -> ()
attributePayload :: ThingGroupPropertiesProperty -> Maybe AttributePayloadProperty
thingGroupDescription :: ThingGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
thingGroupDescription :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::ThingGroup.ThingGroupProperties",
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 -> AttributePayloadProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AttributePayload" (AttributePayloadProperty -> (Key, Value))
-> Maybe AttributePayloadProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AttributePayloadProperty
attributePayload,
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
"ThingGroupDescription"
(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)
thingGroupDescription])}
instance JSON.ToJSON ThingGroupPropertiesProperty where
toJSON :: ThingGroupPropertiesProperty -> Value
toJSON ThingGroupPropertiesProperty {Maybe (Value Text)
Maybe AttributePayloadProperty
()
haddock_workaround_ :: ThingGroupPropertiesProperty -> ()
attributePayload :: ThingGroupPropertiesProperty -> Maybe AttributePayloadProperty
thingGroupDescription :: ThingGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
thingGroupDescription :: 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 -> AttributePayloadProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AttributePayload" (AttributePayloadProperty -> (Key, Value))
-> Maybe AttributePayloadProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AttributePayloadProperty
attributePayload,
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
"ThingGroupDescription"
(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)
thingGroupDescription]))
instance Property "AttributePayload" ThingGroupPropertiesProperty where
type PropertyType "AttributePayload" ThingGroupPropertiesProperty = AttributePayloadProperty
set :: PropertyType "AttributePayload" ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> ThingGroupPropertiesProperty
set PropertyType "AttributePayload" ThingGroupPropertiesProperty
newValue ThingGroupPropertiesProperty {Maybe (Value Text)
Maybe AttributePayloadProperty
()
haddock_workaround_ :: ThingGroupPropertiesProperty -> ()
attributePayload :: ThingGroupPropertiesProperty -> Maybe AttributePayloadProperty
thingGroupDescription :: ThingGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
thingGroupDescription :: Maybe (Value Text)
..}
= ThingGroupPropertiesProperty
{attributePayload :: Maybe AttributePayloadProperty
attributePayload = AttributePayloadProperty -> Maybe AttributePayloadProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AttributePayload" ThingGroupPropertiesProperty
AttributePayloadProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
thingGroupDescription :: Maybe (Value Text)
haddock_workaround_ :: ()
thingGroupDescription :: Maybe (Value Text)
..}
instance Property "ThingGroupDescription" ThingGroupPropertiesProperty where
type PropertyType "ThingGroupDescription" ThingGroupPropertiesProperty = Value Prelude.Text
set :: PropertyType "ThingGroupDescription" ThingGroupPropertiesProperty
-> ThingGroupPropertiesProperty -> ThingGroupPropertiesProperty
set PropertyType "ThingGroupDescription" ThingGroupPropertiesProperty
newValue ThingGroupPropertiesProperty {Maybe (Value Text)
Maybe AttributePayloadProperty
()
haddock_workaround_ :: ThingGroupPropertiesProperty -> ()
attributePayload :: ThingGroupPropertiesProperty -> Maybe AttributePayloadProperty
thingGroupDescription :: ThingGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
thingGroupDescription :: Maybe (Value Text)
..}
= ThingGroupPropertiesProperty
{thingGroupDescription :: Maybe (Value Text)
thingGroupDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ThingGroupDescription" ThingGroupPropertiesProperty
Value Text
newValue, Maybe AttributePayloadProperty
()
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
haddock_workaround_ :: ()
attributePayload :: Maybe AttributePayloadProperty
..}