# frozen_string_literal: true

require 'litany/resource'
require 'litany/mixins'

require 'litany/meta_resources/rds'

module Litany
  class RDSMysql < RDS
    property :engine, :mysql, :mysql
    property :port, 3306, 1150..65_535

    def finalize_resource
      super

      instance(name) if instances.count.zero?
    end
  end
end
