The amino group of proline is part of a pyrrolidine ring, which makes it unique among the proteinogenic amino acids. To unravel its full electronic structure, proline in solid state and aqueous solution is investigated using X-ray emission spectroscopy and resonant inelastic soft X-ray scattering. By controlling the pH value of the solution, proline is studied in its cationic, zwitterionic, and anionic configurations. The spectra are analyzed within a "building-block principle" by comparing with suitable reference molecules, i.e., acetic acid, cysteine, and pyrrolidine, as well as with spectral calculations based on density functional theory. We find that the electronic structure of the carboxyl group of proline is very similar to that of other amino acids as well as acetic acid. In contrast, the electronic structure of the amino group is significantly different and strongly influenced by the ring structure of proline.