content: module Stratosphere.LakeFormation.TagAssociation.DatabaseResourceProperty (
          DatabaseResourceProperty(..), mkDatabaseResourceProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data DatabaseResourceProperty
    = DatabaseResourceProperty {catalogId :: (Value Prelude.Text),
                                name :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkDatabaseResourceProperty ::
    Value Prelude.Text
    -> Value Prelude.Text -> DatabaseResourceProperty
  mkDatabaseResourceProperty catalogId name
    = DatabaseResourceProperty {catalogId = catalogId, name = name}
  instance ToResourceProperties DatabaseResourceProperty where
    toResourceProperties DatabaseResourceProperty {..}
      = ResourceProperties
          {awsType = "AWS::LakeFormation::TagAssociation.DatabaseResource",
           supportsTags = Prelude.False,
           properties = ["CatalogId" JSON..= catalogId, "Name" JSON..= name]}
  instance JSON.ToJSON DatabaseResourceProperty where
    toJSON DatabaseResourceProperty {..}
      = JSON.object ["CatalogId" JSON..= catalogId, "Name" JSON..= name]
  instance Property "CatalogId" DatabaseResourceProperty where
    type PropertyType "CatalogId" DatabaseResourceProperty = Value Prelude.Text
    set newValue DatabaseResourceProperty {..}
      = DatabaseResourceProperty {catalogId = newValue, ..}
  instance Property "Name" DatabaseResourceProperty where
    type PropertyType "Name" DatabaseResourceProperty = Value Prelude.Text
    set newValue DatabaseResourceProperty {..}
      = DatabaseResourceProperty {name = newValue, ..}