Assign resource type