; (II) the alien fails to comply with the conditions of release or to continue to satisfy the conditions described in subparagraph (A); or (III) upon reconsideration, the Secretary, in the sole discretion of the Secretary, determines that the alien can be detained under subparagraph (B). (ii) Applicability This section shall apply to any alien returned to custody pursuant to this subparagraph as if the removal period terminated on the first day of such redetention. (F) Review of determinations by secretary A determination by the Secretary of Homeland Security under this paragraph shall not be subject to review by any other agency. . (b) Detention of aliens during removal proceedings Section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 ) is amended— (1) by striking Attorney General each place such term appears (except in the second place the term appears in subsection (a)) and inserting Secretary of Homeland Security ; (2) in subsection (a)— (A) in the matter preceding paragraph (1), by inserting the Secretary of Homeland Security or before the Attorney General— ; and (B) in paragraph (2)(B), by striking conditional parole; and inserting recognizance; ; (3) in subsection (b), by striking parole and inserting recognizance ; (4) in subsection (c), by amending paragraph (1) to read as follows: (1) Custody (A) In general The Secretary of Homeland Security shall take into custody any alien described in paragraph (2) or (3) of section 212(a) or paragraph (2) or (4) of section 237(a), or who has no lawful status in the United States and has been convicted for driving while intoxicated (including a conviction for driving while under the influence or impaired by alcohol or drugs), any time after the alien is released, regardless of whether the alien— (i) is released related to any activity, offense, or conviction described in this paragraph; (ii) is released on parole, supervised release, or probation