module Stratosphere.WorkspacesInstances.WorkspaceInstance.RunInstancesMonitoringEnabledProperty (
RunInstancesMonitoringEnabledProperty(..),
mkRunInstancesMonitoringEnabledProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RunInstancesMonitoringEnabledProperty
=
RunInstancesMonitoringEnabledProperty {RunInstancesMonitoringEnabledProperty -> ()
haddock_workaround_ :: (),
RunInstancesMonitoringEnabledProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool
(RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool)
-> (RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool)
-> Eq RunInstancesMonitoringEnabledProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool
== :: RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool
$c/= :: RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool
/= :: RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty -> Bool
Prelude.Eq, Int -> RunInstancesMonitoringEnabledProperty -> ShowS
[RunInstancesMonitoringEnabledProperty] -> ShowS
RunInstancesMonitoringEnabledProperty -> String
(Int -> RunInstancesMonitoringEnabledProperty -> ShowS)
-> (RunInstancesMonitoringEnabledProperty -> String)
-> ([RunInstancesMonitoringEnabledProperty] -> ShowS)
-> Show RunInstancesMonitoringEnabledProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RunInstancesMonitoringEnabledProperty -> ShowS
showsPrec :: Int -> RunInstancesMonitoringEnabledProperty -> ShowS
$cshow :: RunInstancesMonitoringEnabledProperty -> String
show :: RunInstancesMonitoringEnabledProperty -> String
$cshowList :: [RunInstancesMonitoringEnabledProperty] -> ShowS
showList :: [RunInstancesMonitoringEnabledProperty] -> ShowS
Prelude.Show)
mkRunInstancesMonitoringEnabledProperty ::
RunInstancesMonitoringEnabledProperty
mkRunInstancesMonitoringEnabledProperty :: RunInstancesMonitoringEnabledProperty
mkRunInstancesMonitoringEnabledProperty
= RunInstancesMonitoringEnabledProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RunInstancesMonitoringEnabledProperty where
toResourceProperties :: RunInstancesMonitoringEnabledProperty -> ResourceProperties
toResourceProperties RunInstancesMonitoringEnabledProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RunInstancesMonitoringEnabledProperty -> ()
enabled :: RunInstancesMonitoringEnabledProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkspacesInstances::WorkspaceInstance.RunInstancesMonitoringEnabled",
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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled])}
instance JSON.ToJSON RunInstancesMonitoringEnabledProperty where
toJSON :: RunInstancesMonitoringEnabledProperty -> Value
toJSON RunInstancesMonitoringEnabledProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RunInstancesMonitoringEnabledProperty -> ()
enabled :: RunInstancesMonitoringEnabledProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled]))
instance Property "Enabled" RunInstancesMonitoringEnabledProperty where
type PropertyType "Enabled" RunInstancesMonitoringEnabledProperty = Value Prelude.Bool
set :: PropertyType "Enabled" RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty
-> RunInstancesMonitoringEnabledProperty
set PropertyType "Enabled" RunInstancesMonitoringEnabledProperty
newValue RunInstancesMonitoringEnabledProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RunInstancesMonitoringEnabledProperty -> ()
enabled :: RunInstancesMonitoringEnabledProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= RunInstancesMonitoringEnabledProperty
{enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" RunInstancesMonitoringEnabledProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}