The only way to make it specific to something like bordering on the sea, is the same way docks are done. Assigned in the startpos or changing the slot type for those structures. While the UI is locked, it's not particularly feasible.
Required resource is in building_levels I believe.