Honda part number 35330-413-003 is the front brake light switch. The factory parts catalog lists this same number on all of these bikes, so the part is interchangeable between them:
Selling this part? "Copy eBay title" gives you a listing title with every bike it fits.
Sellers don't always list the part number, so try both searches. Old numbers are sometimes replaced by a newer number with a different ending; the source page shows the current one.
The details
Does the CB750F / CB750K (1980, DOHC) front brake light switch fit the CB900F (1981) / CB1100F (1983)? #35330-413-003
Same part number
Yes. The front brake light switch from the CB750F / CB750K (1980, DOHC) fits the CB900F (1981) / CB1100F (1983). Both use part number 35330-413-003, so it swaps either way.
Does the CX500 / CX500C (1979-1980) front brake light switch fit the GL500 (1981), CB750 DOHC, CB900F, CB1100F? #35330-413-003
Same part number
Yes. The front brake light switch from the CX500 / CX500C (1979-1980) fits the GL500 (1981), CB750 DOHC, CB900F, CB1100F. Both use part number 35330-413-003, so it swaps either way.