Can you use aws git as source in building snaps?

Hi, I have seen some snaps using git as a source. is it possible to use aws git as well, gitlab or a private github repo which uses tokens for authentication?