module Stratosphere.WorkspacesInstances.WorkspaceInstance.EnclaveOptionsRequestProperty (
EnclaveOptionsRequestProperty(..), mkEnclaveOptionsRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnclaveOptionsRequestProperty
=
EnclaveOptionsRequestProperty {EnclaveOptionsRequestProperty -> ()
haddock_workaround_ :: (),
EnclaveOptionsRequestProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool
(EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool)
-> (EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool)
-> Eq EnclaveOptionsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool
== :: EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool
$c/= :: EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool
/= :: EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> Bool
Prelude.Eq, Int -> EnclaveOptionsRequestProperty -> ShowS
[EnclaveOptionsRequestProperty] -> ShowS
EnclaveOptionsRequestProperty -> String
(Int -> EnclaveOptionsRequestProperty -> ShowS)
-> (EnclaveOptionsRequestProperty -> String)
-> ([EnclaveOptionsRequestProperty] -> ShowS)
-> Show EnclaveOptionsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EnclaveOptionsRequestProperty -> ShowS
showsPrec :: Int -> EnclaveOptionsRequestProperty -> ShowS
$cshow :: EnclaveOptionsRequestProperty -> String
show :: EnclaveOptionsRequestProperty -> String
$cshowList :: [EnclaveOptionsRequestProperty] -> ShowS
showList :: [EnclaveOptionsRequestProperty] -> ShowS
Prelude.Show)
mkEnclaveOptionsRequestProperty :: EnclaveOptionsRequestProperty
mkEnclaveOptionsRequestProperty :: EnclaveOptionsRequestProperty
mkEnclaveOptionsRequestProperty
= EnclaveOptionsRequestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EnclaveOptionsRequestProperty where
toResourceProperties :: EnclaveOptionsRequestProperty -> ResourceProperties
toResourceProperties EnclaveOptionsRequestProperty {Maybe (Value Bool)
()
haddock_workaround_ :: EnclaveOptionsRequestProperty -> ()
enabled :: EnclaveOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkspacesInstances::WorkspaceInstance.EnclaveOptionsRequest",
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 EnclaveOptionsRequestProperty where
toJSON :: EnclaveOptionsRequestProperty -> Value
toJSON EnclaveOptionsRequestProperty {Maybe (Value Bool)
()
haddock_workaround_ :: EnclaveOptionsRequestProperty -> ()
enabled :: EnclaveOptionsRequestProperty -> 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" EnclaveOptionsRequestProperty where
type PropertyType "Enabled" EnclaveOptionsRequestProperty = Value Prelude.Bool
set :: PropertyType "Enabled" EnclaveOptionsRequestProperty
-> EnclaveOptionsRequestProperty -> EnclaveOptionsRequestProperty
set PropertyType "Enabled" EnclaveOptionsRequestProperty
newValue EnclaveOptionsRequestProperty {Maybe (Value Bool)
()
haddock_workaround_ :: EnclaveOptionsRequestProperty -> ()
enabled :: EnclaveOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= EnclaveOptionsRequestProperty
{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" EnclaveOptionsRequestProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}