U.S. Sen. Joni Ernst, R-Iowa, voiced her opposition Wednesday to President Donald Trump's announcement that transgender individuals won't be allowed to serve in the military.

Ernst's office said that the senator thinks "Americans who are qualified and can meet the standards to serve in the military should be afforded that opportunity."

The president took to Twitter Wednesday morning and, in a series of messages, said: "After consultation with my Generals and military experts, please be advised that the United States Government will not accept or allow......Transgender individuals to serve in any capacity in the U.S. Military. Our military must be focused on decisive and overwhelming.........victory and cannot be burdened with the tremendous medical costs and disruption that transgender in the military would entail. Thank you"

The Obama administration had decided to allow transgender people to serve, with the Pentagon lifting a ban on transgender men and women openly serving in June 2016. There are various estimates of how many transgender people are in the military. A Rand study last year put the number at 2,500 on active duty, out of 1.3 million overall. A 2014 study by the Williams Institute estimated the number at 15,000 who are on active duty, in the Reserves or National Guard.