Amazon.com plans to continue spending on capacity to meet demand for artificial intelligence and cloud products.