Add constraint to defining resources