Is there a way to cap the amount the 1st person camera moves?

Hi,
I’m trying to adjust the standard first person character so that it will only rotate 45 degrees in each direction.
How can I do this from this setup? (See Image)

Many Thanks