The deal carries “flexibility” for Amazon.