content: module Stratosphere.SecurityHub.SecurityControl.ParameterConfigurationProperty (
          module Exports, ParameterConfigurationProperty(..),
          mkParameterConfigurationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.SecurityHub.SecurityControl.ParameterValueProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ParameterConfigurationProperty
    = ParameterConfigurationProperty {value :: (Prelude.Maybe ParameterValueProperty),
                                      valueType :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkParameterConfigurationProperty ::
    Value Prelude.Text -> ParameterConfigurationProperty
  mkParameterConfigurationProperty valueType
    = ParameterConfigurationProperty
        {valueType = valueType, value = Prelude.Nothing}
  instance ToResourceProperties ParameterConfigurationProperty where
    toResourceProperties ParameterConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::SecurityHub::SecurityControl.ParameterConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["ValueType" JSON..= valueType]
                             (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value]))}
  instance JSON.ToJSON ParameterConfigurationProperty where
    toJSON ParameterConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["ValueType" JSON..= valueType]
                (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value])))
  instance Property "Value" ParameterConfigurationProperty where
    type PropertyType "Value" ParameterConfigurationProperty = ParameterValueProperty
    set newValue ParameterConfigurationProperty {..}
      = ParameterConfigurationProperty
          {value = Prelude.pure newValue, ..}
  instance Property "ValueType" ParameterConfigurationProperty where
    type PropertyType "ValueType" ParameterConfigurationProperty = Value Prelude.Text
    set newValue ParameterConfigurationProperty {..}
      = ParameterConfigurationProperty {valueType = newValue, ..}