Amazon announced a second major round of layoffs at the company in three months.