Enable/disable module with a providers

Per documentation on Legacy Shared Modules with Provider Configurations
you can’t use count with providers on modules.

How can I enable/disable modules with a provider?

module "name" {
  source = "../module"

   ...

  providers = {
    aws = aws.east
  }

}