module Stratosphere.PCAConnectorAD.Template.GeneralFlagsV4Property (
GeneralFlagsV4Property(..), mkGeneralFlagsV4Property
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeneralFlagsV4Property
=
GeneralFlagsV4Property {GeneralFlagsV4Property -> ()
haddock_workaround_ :: (),
GeneralFlagsV4Property -> Maybe (Value Bool)
autoEnrollment :: (Prelude.Maybe (Value Prelude.Bool)),
GeneralFlagsV4Property -> Maybe (Value Bool)
machineType :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool
(GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool)
-> (GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool)
-> Eq GeneralFlagsV4Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool
== :: GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool
$c/= :: GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool
/= :: GeneralFlagsV4Property -> GeneralFlagsV4Property -> Bool
Prelude.Eq, Int -> GeneralFlagsV4Property -> ShowS
[GeneralFlagsV4Property] -> ShowS
GeneralFlagsV4Property -> String
(Int -> GeneralFlagsV4Property -> ShowS)
-> (GeneralFlagsV4Property -> String)
-> ([GeneralFlagsV4Property] -> ShowS)
-> Show GeneralFlagsV4Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeneralFlagsV4Property -> ShowS
showsPrec :: Int -> GeneralFlagsV4Property -> ShowS
$cshow :: GeneralFlagsV4Property -> String
show :: GeneralFlagsV4Property -> String
$cshowList :: [GeneralFlagsV4Property] -> ShowS
showList :: [GeneralFlagsV4Property] -> ShowS
Prelude.Show)
mkGeneralFlagsV4Property :: GeneralFlagsV4Property
mkGeneralFlagsV4Property :: GeneralFlagsV4Property
mkGeneralFlagsV4Property
= GeneralFlagsV4Property
{haddock_workaround_ :: ()
haddock_workaround_ = (), autoEnrollment :: Maybe (Value Bool)
autoEnrollment = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
machineType :: Maybe (Value Bool)
machineType = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeneralFlagsV4Property where
toResourceProperties :: GeneralFlagsV4Property -> ResourceProperties
toResourceProperties GeneralFlagsV4Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV4Property -> ()
autoEnrollment :: GeneralFlagsV4Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV4Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.GeneralFlagsV4",
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
"AutoEnrollment" (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)
autoEnrollment,
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
"MachineType" (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)
machineType])}
instance JSON.ToJSON GeneralFlagsV4Property where
toJSON :: GeneralFlagsV4Property -> Value
toJSON GeneralFlagsV4Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV4Property -> ()
autoEnrollment :: GeneralFlagsV4Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV4Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: 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
"AutoEnrollment" (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)
autoEnrollment,
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
"MachineType" (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)
machineType]))
instance Property "AutoEnrollment" GeneralFlagsV4Property where
type PropertyType "AutoEnrollment" GeneralFlagsV4Property = Value Prelude.Bool
set :: PropertyType "AutoEnrollment" GeneralFlagsV4Property
-> GeneralFlagsV4Property -> GeneralFlagsV4Property
set PropertyType "AutoEnrollment" GeneralFlagsV4Property
newValue GeneralFlagsV4Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV4Property -> ()
autoEnrollment :: GeneralFlagsV4Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV4Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
= GeneralFlagsV4Property
{autoEnrollment :: Maybe (Value Bool)
autoEnrollment = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoEnrollment" GeneralFlagsV4Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
..}
instance Property "MachineType" GeneralFlagsV4Property where
type PropertyType "MachineType" GeneralFlagsV4Property = Value Prelude.Bool
set :: PropertyType "MachineType" GeneralFlagsV4Property
-> GeneralFlagsV4Property -> GeneralFlagsV4Property
set PropertyType "MachineType" GeneralFlagsV4Property
newValue GeneralFlagsV4Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV4Property -> ()
autoEnrollment :: GeneralFlagsV4Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV4Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
= GeneralFlagsV4Property {machineType :: Maybe (Value Bool)
machineType = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MachineType" GeneralFlagsV4Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
..}