How to configure cloud entities by domain?

How to configure cloud entities by domain?

I tried to use that code:
# Sensors block
sensor:
description: SmartThings Sensor

This:
# Sensors block
“sensor*”:
description: SmartThings Sensor

And this one:
entity_config_domain

But this code doesn’t works, how to do it?
Thanks!