The current electrical code requires that receptacles on decks be protected with a ground fault interrupter (GFI). Hot tubs and spas that use electricity are also required to be on GFI's.
In building a deck, careful attention must be given to the proximity of the deck to existing electric lines and other electrical equipment.