module Stratosphere.Neptune.DBParameterGroup ( DBParameterGroup(..), mkDBParameterGroup ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data DBParameterGroup = -- | See: DBParameterGroup {haddock_workaround_ :: (), -- | See: description :: (Value Prelude.Text), -- | See: family :: (Value Prelude.Text), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: parameters :: JSON.Object, -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkDBParameterGroup :: Value Prelude.Text -> Value Prelude.Text -> JSON.Object -> DBParameterGroup mkDBParameterGroup description family parameters = DBParameterGroup {haddock_workaround_ = (), description = description, family = family, parameters = parameters, name = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties DBParameterGroup where toResourceProperties DBParameterGroup {..} = ResourceProperties {awsType = "AWS::Neptune::DBParameterGroup", supportsTags = Prelude.True, properties = Prelude.fromList ((Prelude.<>) ["Description" JSON..= description, "Family" JSON..= family, "Parameters" JSON..= parameters] (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags]))} instance JSON.ToJSON DBParameterGroup where toJSON DBParameterGroup {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Description" JSON..= description, "Family" JSON..= family, "Parameters" JSON..= parameters] (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags]))) instance Property "Description" DBParameterGroup where type PropertyType "Description" DBParameterGroup = Value Prelude.Text set newValue DBParameterGroup {..} = DBParameterGroup {description = newValue, ..} instance Property "Family" DBParameterGroup where type PropertyType "Family" DBParameterGroup = Value Prelude.Text set newValue DBParameterGroup {..} = DBParameterGroup {family = newValue, ..} instance Property "Name" DBParameterGroup where type PropertyType "Name" DBParameterGroup = Value Prelude.Text set newValue DBParameterGroup {..} = DBParameterGroup {name = Prelude.pure newValue, ..} instance Property "Parameters" DBParameterGroup where type PropertyType "Parameters" DBParameterGroup = JSON.Object set newValue DBParameterGroup {..} = DBParameterGroup {parameters = newValue, ..} instance Property "Tags" DBParameterGroup where type PropertyType "Tags" DBParameterGroup = [Tag] set newValue DBParameterGroup {..} = DBParameterGroup {tags = Prelude.pure newValue, ..}