packages feed

stratosphere-config-1.0.0: gen/Stratosphere/Config/RemediationConfiguration/ResourceValueProperty.hs

module Stratosphere.Config.RemediationConfiguration.ResourceValueProperty (
        ResourceValueProperty(..), mkResourceValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-resourcevalue.html>
    ResourceValueProperty {haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-resourcevalue.html#cfn-config-remediationconfiguration-resourcevalue-value>
                           value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkResourceValueProperty :: ResourceValueProperty
mkResourceValueProperty
  = ResourceValueProperty
      {haddock_workaround_ = (), value = Prelude.Nothing}
instance ToResourceProperties ResourceValueProperty where
  toResourceProperties ResourceValueProperty {..}
    = ResourceProperties
        {awsType = "AWS::Config::RemediationConfiguration.ResourceValue",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value])}
instance JSON.ToJSON ResourceValueProperty where
  toJSON ResourceValueProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value]))
instance Property "Value" ResourceValueProperty where
  type PropertyType "Value" ResourceValueProperty = Value Prelude.Text
  set newValue ResourceValueProperty {..}
    = ResourceValueProperty {value = Prelude.pure newValue, ..}