packages feed

stratosphere-cloudformation-1.0.0: gen/Stratosphere/CloudFormation/StackSet/ManagedExecutionProperty.hs

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 {haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-managedexecution.html#cfn-cloudformation-stackset-managedexecution-active>
                              active :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkManagedExecutionProperty :: ManagedExecutionProperty
mkManagedExecutionProperty
  = ManagedExecutionProperty
      {haddock_workaround_ = (), active = Prelude.Nothing}
instance ToResourceProperties ManagedExecutionProperty where
  toResourceProperties ManagedExecutionProperty {..}
    = ResourceProperties
        {awsType = "AWS::CloudFormation::StackSet.ManagedExecution",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes [(JSON..=) "Active" Prelude.<$> active])}
instance JSON.ToJSON ManagedExecutionProperty where
  toJSON ManagedExecutionProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes [(JSON..=) "Active" Prelude.<$> active]))
instance Property "Active" ManagedExecutionProperty where
  type PropertyType "Active" ManagedExecutionProperty = Value Prelude.Bool
  set newValue ManagedExecutionProperty {..}
    = ManagedExecutionProperty {active = Prelude.pure newValue, ..}