; and ; and (2) by adding at the end the following: (6) in the case of a State or unit of local government, to discharge or in any other manner discriminate against any law enforcement officer of that State or unit of local government because such law enforcement officer has taken any action to comply with a detainer (as such term is defined in section 4 of the Ending Sanctuary Cities Act of 2019) issued by the Secretary of Homeland Security. . 5. Definitions In this Act: (1) The term detainer means any order or request by the Secretary of Homeland Security— (A) to temporarily hold an alien in custody until such alien may be taken into Federal custody; (B) to transport an alien for transfer to Federal custody; or (C) to notify the Secretary prior to the release of an alien from State or local custody. (2) The term immigration laws has the meaning given such term in section 101 of the Immigration and Nationality Act. (3) The term unit of local government has the meaning given such term under section 901(a)(3) of the Omnibus Crime Control and Safe Streets Act of 1968 ( 42 U.S.C. 3791(a)(3) ).