(CNN) Amazon has asked a federal court for permission to get testimony from President Donald Trump and Defense Secretary Mark Esper as part of its ongoing protest over the Defense Department's handling of a multibillion-dollar cloud computing contract, according to a court filing unsealed Monday.

The document also seeks permission to depose former Defense Secretary James Mattis and what he may have known about Trump's attitude toward the contract, known as the Joint Enterprise Defense Infrastructure.

The decision on the motion to depose is expected in the coming weeks.

It is incredibly rare, if not unprecedented, for a sitting US president to be deposed in a contract protest. In a footnote of the court filing, Amazon notes that "a deposition of a sitting President of the United States presents unique circumstances."

Amazon AMZN argues in the document that the Pentagon's explanation for awarding the contract to Microsoft left out "crucial information and details that led to this flawed and potentially detrimental decision regarding DoD's future cloud infrastructure."

Read More