Both AWS and the Amazon retail business have big opportunities to reap the financial benefits of AI.