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