South Carolina Gov. Nikki Haley has accepted Donald Trump's offer to be ambassador to the United Nations, a source confirmed to NBC News on Wednesday.

Haley, 44, a two-term governor, initially backed Sen. Marco Rubio and Sen. Ted Cruz during the campaign for the White House.

She is the first woman in the state's history to hold the role and only the nation's second Asian-American governor.

If confirmed, Haley would succeed Samantha Power, who served as President Barack Obama's U.N. ambassador since 2013.