content: module Stratosphere.DocDB.DBClusterParameterGroup (
          DBClusterParameterGroup(..), mkDBClusterParameterGroup
      ) 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 DBClusterParameterGroup
    = DBClusterParameterGroup {description :: (Value Prelude.Text),
                               family :: (Value Prelude.Text),
                               name :: (Prelude.Maybe (Value Prelude.Text)),
                               parameters :: JSON.Object,
                               tags :: (Prelude.Maybe [Tag])}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkDBClusterParameterGroup ::
    Value Prelude.Text
    -> Value Prelude.Text -> JSON.Object -> DBClusterParameterGroup
  mkDBClusterParameterGroup description family parameters
    = DBClusterParameterGroup
        {description = description, family = family,
         parameters = parameters, name = Prelude.Nothing,
         tags = Prelude.Nothing}
  instance ToResourceProperties DBClusterParameterGroup where
    toResourceProperties DBClusterParameterGroup {..}
      = ResourceProperties
          {awsType = "AWS::DocDB::DBClusterParameterGroup",
           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 DBClusterParameterGroup where
    toJSON DBClusterParameterGroup {..}
      = 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" DBClusterParameterGroup where
    type PropertyType "Description" DBClusterParameterGroup = Value Prelude.Text
    set newValue DBClusterParameterGroup {..}
      = DBClusterParameterGroup {description = newValue, ..}
  instance Property "Family" DBClusterParameterGroup where
    type PropertyType "Family" DBClusterParameterGroup = Value Prelude.Text
    set newValue DBClusterParameterGroup {..}
      = DBClusterParameterGroup {family = newValue, ..}
  instance Property "Name" DBClusterParameterGroup where
    type PropertyType "Name" DBClusterParameterGroup = Value Prelude.Text
    set newValue DBClusterParameterGroup {..}
      = DBClusterParameterGroup {name = Prelude.pure newValue, ..}
  instance Property "Parameters" DBClusterParameterGroup where
    type PropertyType "Parameters" DBClusterParameterGroup = JSON.Object
    set newValue DBClusterParameterGroup {..}
      = DBClusterParameterGroup {parameters = newValue, ..}
  instance Property "Tags" DBClusterParameterGroup where
    type PropertyType "Tags" DBClusterParameterGroup = [Tag]
    set newValue DBClusterParameterGroup {..}
      = DBClusterParameterGroup {tags = Prelude.pure newValue, ..}