When wiring your own flex cable to include in a light fitting it is crucial to include a Switch & Plug. Lampspares has many different Switches and Plugs for different projects based on what will work for you.
£5.39
This product has multiple variants. The options may be chosen on the product page