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