Sometimes you can use the name output on the resource, if there is one. There is no generic answer though, as many resources use different properties to store their name.
little-cartoon-10569
12/15/2021, 4:08 AM
For example, AWS EC2 instances' names are the value of a tag called "Name". So there's no name output.