Adding friendlier constructor to resource identity