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 = -- | See: ParameterConfigurationProperty {haddock_workaround_ :: (), -- | See: value :: (Prelude.Maybe ParameterValueProperty), -- | See: valueType :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkParameterConfigurationProperty :: Value Prelude.Text -> ParameterConfigurationProperty mkParameterConfigurationProperty valueType = ParameterConfigurationProperty {haddock_workaround_ = (), 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, ..}