Unity Script Reference:
ConfigurableJointMotion.Locked
Description

Motion along the axis will be locked.