Damage Absorption

Whenever the creature is subjected to the associated damage type, it takes no damage and instead regains a number of hit points equal to the lightning damage dealt. (Iron Golem, pp. 170, MM)