module Stratosphere.DataZone.PolicyGrant.CreateGlossaryPolicyGrantDetailProperty (
        CreateGlossaryPolicyGrantDetailProperty(..),
        mkCreateGlossaryPolicyGrantDetailProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CreateGlossaryPolicyGrantDetailProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-policygrant-createglossarypolicygrantdetail.html>
    CreateGlossaryPolicyGrantDetailProperty {CreateGlossaryPolicyGrantDetailProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-policygrant-createglossarypolicygrantdetail.html#cfn-datazone-policygrant-createglossarypolicygrantdetail-includechilddomainunits>
                                             CreateGlossaryPolicyGrantDetailProperty -> Maybe (Value Bool)
includeChildDomainUnits :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty -> Bool
(CreateGlossaryPolicyGrantDetailProperty
 -> CreateGlossaryPolicyGrantDetailProperty -> Bool)
-> (CreateGlossaryPolicyGrantDetailProperty
    -> CreateGlossaryPolicyGrantDetailProperty -> Bool)
-> Eq CreateGlossaryPolicyGrantDetailProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty -> Bool
== :: CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty -> Bool
$c/= :: CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty -> Bool
/= :: CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty -> Bool
Prelude.Eq, Int -> CreateGlossaryPolicyGrantDetailProperty -> ShowS
[CreateGlossaryPolicyGrantDetailProperty] -> ShowS
CreateGlossaryPolicyGrantDetailProperty -> String
(Int -> CreateGlossaryPolicyGrantDetailProperty -> ShowS)
-> (CreateGlossaryPolicyGrantDetailProperty -> String)
-> ([CreateGlossaryPolicyGrantDetailProperty] -> ShowS)
-> Show CreateGlossaryPolicyGrantDetailProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreateGlossaryPolicyGrantDetailProperty -> ShowS
showsPrec :: Int -> CreateGlossaryPolicyGrantDetailProperty -> ShowS
$cshow :: CreateGlossaryPolicyGrantDetailProperty -> String
show :: CreateGlossaryPolicyGrantDetailProperty -> String
$cshowList :: [CreateGlossaryPolicyGrantDetailProperty] -> ShowS
showList :: [CreateGlossaryPolicyGrantDetailProperty] -> ShowS
Prelude.Show)
mkCreateGlossaryPolicyGrantDetailProperty ::
  CreateGlossaryPolicyGrantDetailProperty
mkCreateGlossaryPolicyGrantDetailProperty :: CreateGlossaryPolicyGrantDetailProperty
mkCreateGlossaryPolicyGrantDetailProperty
  = CreateGlossaryPolicyGrantDetailProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       includeChildDomainUnits :: Maybe (Value Bool)
includeChildDomainUnits = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CreateGlossaryPolicyGrantDetailProperty where
  toResourceProperties :: CreateGlossaryPolicyGrantDetailProperty -> ResourceProperties
toResourceProperties CreateGlossaryPolicyGrantDetailProperty {Maybe (Value Bool)
()
haddock_workaround_ :: CreateGlossaryPolicyGrantDetailProperty -> ()
includeChildDomainUnits :: CreateGlossaryPolicyGrantDetailProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
includeChildDomainUnits :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::PolicyGrant.CreateGlossaryPolicyGrantDetail",
         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 CreateGlossaryPolicyGrantDetailProperty where
  toJSON :: CreateGlossaryPolicyGrantDetailProperty -> Value
toJSON CreateGlossaryPolicyGrantDetailProperty {Maybe (Value Bool)
()
haddock_workaround_ :: CreateGlossaryPolicyGrantDetailProperty -> ()
includeChildDomainUnits :: CreateGlossaryPolicyGrantDetailProperty -> 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" CreateGlossaryPolicyGrantDetailProperty where
  type PropertyType "IncludeChildDomainUnits" CreateGlossaryPolicyGrantDetailProperty = Value Prelude.Bool
  set :: PropertyType
  "IncludeChildDomainUnits" CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty
-> CreateGlossaryPolicyGrantDetailProperty
set PropertyType
  "IncludeChildDomainUnits" CreateGlossaryPolicyGrantDetailProperty
newValue CreateGlossaryPolicyGrantDetailProperty {Maybe (Value Bool)
()
haddock_workaround_ :: CreateGlossaryPolicyGrantDetailProperty -> ()
includeChildDomainUnits :: CreateGlossaryPolicyGrantDetailProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
includeChildDomainUnits :: Maybe (Value Bool)
..}
    = CreateGlossaryPolicyGrantDetailProperty
        {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" CreateGlossaryPolicyGrantDetailProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}