module Stratosphere.DataZone.ProjectProfile.EnvironmentConfigurationParameterProperty ( EnvironmentConfigurationParameterProperty(..), mkEnvironmentConfigurationParameterProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data EnvironmentConfigurationParameterProperty = -- | See: EnvironmentConfigurationParameterProperty {haddock_workaround_ :: (), -- | See: isEditable :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: value :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkEnvironmentConfigurationParameterProperty :: EnvironmentConfigurationParameterProperty mkEnvironmentConfigurationParameterProperty = EnvironmentConfigurationParameterProperty {haddock_workaround_ = (), isEditable = Prelude.Nothing, name = Prelude.Nothing, value = Prelude.Nothing} instance ToResourceProperties EnvironmentConfigurationParameterProperty where toResourceProperties EnvironmentConfigurationParameterProperty {..} = ResourceProperties {awsType = "AWS::DataZone::ProjectProfile.EnvironmentConfigurationParameter", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "IsEditable" Prelude.<$> isEditable, (JSON..=) "Name" Prelude.<$> name, (JSON..=) "Value" Prelude.<$> value])} instance JSON.ToJSON EnvironmentConfigurationParameterProperty where toJSON EnvironmentConfigurationParameterProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "IsEditable" Prelude.<$> isEditable, (JSON..=) "Name" Prelude.<$> name, (JSON..=) "Value" Prelude.<$> value])) instance Property "IsEditable" EnvironmentConfigurationParameterProperty where type PropertyType "IsEditable" EnvironmentConfigurationParameterProperty = Value Prelude.Bool set newValue EnvironmentConfigurationParameterProperty {..} = EnvironmentConfigurationParameterProperty {isEditable = Prelude.pure newValue, ..} instance Property "Name" EnvironmentConfigurationParameterProperty where type PropertyType "Name" EnvironmentConfigurationParameterProperty = Value Prelude.Text set newValue EnvironmentConfigurationParameterProperty {..} = EnvironmentConfigurationParameterProperty {name = Prelude.pure newValue, ..} instance Property "Value" EnvironmentConfigurationParameterProperty where type PropertyType "Value" EnvironmentConfigurationParameterProperty = Value Prelude.Text set newValue EnvironmentConfigurationParameterProperty {..} = EnvironmentConfigurationParameterProperty {value = Prelude.pure newValue, ..}