The Rotation Constraint allows you to set limits on an object’s rotation and/or copy the rotation properties from a target object. These properties can be independently activated.
Add a Rotation Constraint to an object
Choose a target
Test that the Rotation Constraint is working