It is a solenoid. There are two kinds, one that is designed to operate intermittently, like for starting the engine, and one that is designed to stay on constantly, like that needed to power things like wipers, heater blower, etc., that you want on when the engine is running, but off when the key is off.
The are very, very common. I've bought some replacements at NAPA, but any good auto parts place will have what you need.
Holiday Rambler Navigator DP, Hummer, and Honda VT1100C Shadow