Amazon's top spokesperson, Jay Carney, said Wednesday the company wants President Donald Trump to shed light on his involvement in a $10 billion cloud contract to make sure the process was "free of political interference."

Earlier this week, Amazon said in newly unsealed court documents that it's looking to question Trump, Defense Secretary Mark Esper and former Defense Secretary James Mattis as part of its protest of the JEDI cloud contract award.

It's not uncommon for companies to protest a government contract award. But Carney said Amazon's lawsuit is less about losing the contract itself and more about examining whether Trump used his position as president to interfere in the decision process.

"All we're trying to do through this protest and this request for a legal review is to ensure that a proper decision was made on behalf of U.S. taxpayers," Carney, a former press secretary for President Barack Obama, told CNBC's "Squawk on the Street" on Wednesday when asked about Amazon's move to depose Trump.

"It's about ensuring that the government, the Department of Defense, is free of political interference in these kinds of political decisions that affect the capabilities of our armed services," he said.