module Stratosphere.CloudFormation.StackSet.ManagedExecutionProperty (
        ManagedExecutionProperty(..), mkManagedExecutionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ManagedExecutionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-managedexecution.html>
    ManagedExecutionProperty {ManagedExecutionProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-managedexecution.html#cfn-cloudformation-stackset-managedexecution-active>
                              ManagedExecutionProperty -> Maybe (Value Bool)
active :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ManagedExecutionProperty -> ManagedExecutionProperty -> Bool
(ManagedExecutionProperty -> ManagedExecutionProperty -> Bool)
-> (ManagedExecutionProperty -> ManagedExecutionProperty -> Bool)
-> Eq ManagedExecutionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ManagedExecutionProperty -> ManagedExecutionProperty -> Bool
== :: ManagedExecutionProperty -> ManagedExecutionProperty -> Bool
$c/= :: ManagedExecutionProperty -> ManagedExecutionProperty -> Bool
/= :: ManagedExecutionProperty -> ManagedExecutionProperty -> Bool
Prelude.Eq, Int -> ManagedExecutionProperty -> ShowS
[ManagedExecutionProperty] -> ShowS
ManagedExecutionProperty -> String
(Int -> ManagedExecutionProperty -> ShowS)
-> (ManagedExecutionProperty -> String)
-> ([ManagedExecutionProperty] -> ShowS)
-> Show ManagedExecutionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ManagedExecutionProperty -> ShowS
showsPrec :: Int -> ManagedExecutionProperty -> ShowS
$cshow :: ManagedExecutionProperty -> String
show :: ManagedExecutionProperty -> String
$cshowList :: [ManagedExecutionProperty] -> ShowS
showList :: [ManagedExecutionProperty] -> ShowS
Prelude.Show)
mkManagedExecutionProperty :: ManagedExecutionProperty
mkManagedExecutionProperty :: ManagedExecutionProperty
mkManagedExecutionProperty
  = ManagedExecutionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), active :: Maybe (Value Bool)
active = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ManagedExecutionProperty where
  toResourceProperties :: ManagedExecutionProperty -> ResourceProperties
toResourceProperties ManagedExecutionProperty {Maybe (Value Bool)
()
haddock_workaround_ :: ManagedExecutionProperty -> ()
active :: ManagedExecutionProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
active :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudFormation::StackSet.ManagedExecution",
         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
"Active" (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)
active])}
instance JSON.ToJSON ManagedExecutionProperty where
  toJSON :: ManagedExecutionProperty -> Value
toJSON ManagedExecutionProperty {Maybe (Value Bool)
()
haddock_workaround_ :: ManagedExecutionProperty -> ()
active :: ManagedExecutionProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
active :: 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
"Active" (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)
active]))
instance Property "Active" ManagedExecutionProperty where
  type PropertyType "Active" ManagedExecutionProperty = Value Prelude.Bool
  set :: PropertyType "Active" ManagedExecutionProperty
-> ManagedExecutionProperty -> ManagedExecutionProperty
set PropertyType "Active" ManagedExecutionProperty
newValue ManagedExecutionProperty {Maybe (Value Bool)
()
haddock_workaround_ :: ManagedExecutionProperty -> ()
active :: ManagedExecutionProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
active :: Maybe (Value Bool)
..}
    = ManagedExecutionProperty {active :: Maybe (Value Bool)
active = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Active" ManagedExecutionProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}