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