Amazon CEO Andy Jassy expressed optimism about the transformative potential of generative AI while also emphasizing ongoing cost-cutting measures in his annual letter to shareholders.