Amazon, UPS and Pinterest are among the companies that announced layoffs.