generally you may need an "adapter harness" to go involving the new brake light and also the bike's factory harness and to also connect to the brake lever sensors (switches). Here is a fundamental schematic:
But a https://adambors151387.bloginder.com/29506219/a-secret-weapon-for-yellow-jacket-sting-hot-to-touch