3D Printer Endstop Switch on PCB & Cable - Mechanical Lever Microswitch End Stop
Version 1.2 mounted on PCB with detachable cable.
eBay