; and (B) may refuse or revoke any visa to any alien or class of aliens if the Secretary, or his or her designee, determines that such refusal or revocation is necessary or advisable in the security interests of the United States. (2) Effect of revocation The revocation of any visa under paragraph (1)(B)— (A) shall take effect immediately; and (B) shall automatically cancel any other valid visa that is in the alien’s possession. (3) Judicial review Notwithstanding any other provision of law, including section 2241 of title 28, United States Code, any other habeas corpus provision, and sections 1361 and 1651 of such title, no United States court has jurisdiction to review a decision by the Secretary to refuse or revoke a visa. (c) Effect of visa approval by the Secretary of State (1) In general The Secretary of State may direct a consular officer to refuse or revoke a visa to an alien if the Secretary determines that such refusal or revocation is necessary or advisable in the foreign policy interests of the United States. (2) Limitation No decision by the Secretary of State to approve a visa may override a decision by the Secretary under subsection (b). . (b) Visa revocation Section 428 of the Homeland Security Act ( 6 U.S.C. 236 ) is amended by adding at the end the following: (j) Visa revocation information If the Secretary or the Secretary of State revokes a visa— (1) the relevant consular, law enforcement, and terrorist screening databases shall be immediately updated on the date of the revocation