The online retailer plans to spend $53 billion over the next three years on AI and cloud technology.