It would seem the only way to get around it on the 2017 code is to put the receptacles inside. Maybe a small structure that has an opening for cords.