Seems pretty clear to me ....
Title 8 § 12 US Code Part II 1182 (f):
- - -
Whenever the President finds that the entry of any aliens or of any class of aliens into the United States would be detrimental to the interests of the United States, he may by proclamation, and for such period as he shall deem necessary, suspend the entry of all aliens or any class of aliens as immigrants or non-immigrants, or impose on entry of aliens any restrictions he may deem to be appropriate.