What part of speech is "being" in the following sentence: I was surprised at John's being absent.

ger·und

/ˈjerənd/

noun
Grammar

noun: gerund; plural noun: gerunds

a form that is derived from a verb but that functions as a noun, in English ending in -ing, e.g., asking in do you mind my asking you?.