; and (II) in the second sentence, by striking (under paragraph (3)) ; (ii) by striking paragraph (3); (iii) by redesignating paragraph (4) as paragraph (3); and (iv) in paragraph (3) (as so redesignated), by striking An alien provided and inserting the following: (A) In general Except as provided in subparagraph (B), the Secretary of Homeland Security may detain an alien provided temporary protected status under this section, as determined by the Secretary to be appropriate under the law. (B) Exception An alien provided . (2) Conforming amendment Section 244(b)(3)(B) of the Immigration and Nationality Act ( 8 U.S.C. 1254a(b)(3)(B) ) is amended in the second sentence by striking is effective in accordance with subsection (d)(3), but . (h) Special immigrant juvenile visas Section 101(a)(27)(J)(iii) of the Immigration and Nationality Act ( 8 U.S.C. 1101(a)(27)(J)(iii) ) is amended— (1) in subclause (I), by striking ; and and inserting a semicolon; (2) in subclause (II), by striking the semicolon at the end and inserting ; and ; and (3) by adding at the end the following: (III) no alien described in section 212(a)(2)(J) or section 237(a)(2)(G) shall be eligible for any immigration benefit under this subparagraph; . (i) Parole Section 212(d)(5) of the Immigration and Nationality Act ( 8 U.S.C. 1182(d)(5) ) is amended— (1) by striking Attorney General each place it appears and inserting Secretary of Homeland Security ; (2) by striking the paragraph designation and all that follows through in his discretion in subparagraph (A) and inserting the following: (5) Parole (A) In general Except as provided in subparagraphs (B) and (C) and in section 214(f), the Secretary of Homeland Security may