Must depend on the org and how you do it. My personal experience is that if you are open and up-front with going to a competitor, they'll cut your access and pay you for the remaining time left on your resignation letter/month.
If you go to a competitor and aren't open about it? You might find yourself terminated with no additional pay.
And it makes sense. At Amazon, most people have varying levels of customer data and/or confidential company data. Amazon has to protect itself from data exfiltration/data theft.