module Stratosphere.IoTSiteWise.Gateway.GreengrassV2Property (
GreengrassV2Property(..), mkGreengrassV2Property
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GreengrassV2Property
=
GreengrassV2Property {GreengrassV2Property -> ()
haddock_workaround_ :: (),
GreengrassV2Property -> Maybe (Value Text)
coreDeviceOperatingSystem :: (Prelude.Maybe (Value Prelude.Text)),
GreengrassV2Property -> Value Text
coreDeviceThingName :: (Value Prelude.Text)}
deriving stock (GreengrassV2Property -> GreengrassV2Property -> Bool
(GreengrassV2Property -> GreengrassV2Property -> Bool)
-> (GreengrassV2Property -> GreengrassV2Property -> Bool)
-> Eq GreengrassV2Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GreengrassV2Property -> GreengrassV2Property -> Bool
== :: GreengrassV2Property -> GreengrassV2Property -> Bool
$c/= :: GreengrassV2Property -> GreengrassV2Property -> Bool
/= :: GreengrassV2Property -> GreengrassV2Property -> Bool
Prelude.Eq, Int -> GreengrassV2Property -> ShowS
[GreengrassV2Property] -> ShowS
GreengrassV2Property -> String
(Int -> GreengrassV2Property -> ShowS)
-> (GreengrassV2Property -> String)
-> ([GreengrassV2Property] -> ShowS)
-> Show GreengrassV2Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GreengrassV2Property -> ShowS
showsPrec :: Int -> GreengrassV2Property -> ShowS
$cshow :: GreengrassV2Property -> String
show :: GreengrassV2Property -> String
$cshowList :: [GreengrassV2Property] -> ShowS
showList :: [GreengrassV2Property] -> ShowS
Prelude.Show)
mkGreengrassV2Property ::
Value Prelude.Text -> GreengrassV2Property
mkGreengrassV2Property :: Value Text -> GreengrassV2Property
mkGreengrassV2Property Value Text
coreDeviceThingName
= GreengrassV2Property
{haddock_workaround_ :: ()
haddock_workaround_ = (),
coreDeviceThingName :: Value Text
coreDeviceThingName = Value Text
coreDeviceThingName,
coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceOperatingSystem = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GreengrassV2Property where
toResourceProperties :: GreengrassV2Property -> ResourceProperties
toResourceProperties GreengrassV2Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GreengrassV2Property -> ()
coreDeviceOperatingSystem :: GreengrassV2Property -> Maybe (Value Text)
coreDeviceThingName :: GreengrassV2Property -> Value Text
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceThingName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTSiteWise::Gateway.GreengrassV2",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"CoreDeviceThingName" 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..= Value Text
coreDeviceThingName]
([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
"CoreDeviceOperatingSystem"
(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)
coreDeviceOperatingSystem]))}
instance JSON.ToJSON GreengrassV2Property where
toJSON :: GreengrassV2Property -> Value
toJSON GreengrassV2Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GreengrassV2Property -> ()
coreDeviceOperatingSystem :: GreengrassV2Property -> Maybe (Value Text)
coreDeviceThingName :: GreengrassV2Property -> Value Text
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceThingName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"CoreDeviceThingName" 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..= Value Text
coreDeviceThingName]
([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
"CoreDeviceOperatingSystem"
(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)
coreDeviceOperatingSystem])))
instance Property "CoreDeviceOperatingSystem" GreengrassV2Property where
type PropertyType "CoreDeviceOperatingSystem" GreengrassV2Property = Value Prelude.Text
set :: PropertyType "CoreDeviceOperatingSystem" GreengrassV2Property
-> GreengrassV2Property -> GreengrassV2Property
set PropertyType "CoreDeviceOperatingSystem" GreengrassV2Property
newValue GreengrassV2Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GreengrassV2Property -> ()
coreDeviceOperatingSystem :: GreengrassV2Property -> Maybe (Value Text)
coreDeviceThingName :: GreengrassV2Property -> Value Text
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceThingName :: Value Text
..}
= GreengrassV2Property
{coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceOperatingSystem = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CoreDeviceOperatingSystem" GreengrassV2Property
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
coreDeviceThingName :: Value Text
haddock_workaround_ :: ()
coreDeviceThingName :: Value Text
..}
instance Property "CoreDeviceThingName" GreengrassV2Property where
type PropertyType "CoreDeviceThingName" GreengrassV2Property = Value Prelude.Text
set :: PropertyType "CoreDeviceThingName" GreengrassV2Property
-> GreengrassV2Property -> GreengrassV2Property
set PropertyType "CoreDeviceThingName" GreengrassV2Property
newValue GreengrassV2Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GreengrassV2Property -> ()
coreDeviceOperatingSystem :: GreengrassV2Property -> Maybe (Value Text)
coreDeviceThingName :: GreengrassV2Property -> Value Text
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
coreDeviceThingName :: Value Text
..}
= GreengrassV2Property {coreDeviceThingName :: Value Text
coreDeviceThingName = PropertyType "CoreDeviceThingName" GreengrassV2Property
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
haddock_workaround_ :: ()
coreDeviceOperatingSystem :: Maybe (Value Text)
..}