Creating a resource definition

There are several ways to create a resource definition: