; and (2) in paragraph (2), by adding at the end the following: Training described in this paragraph may not exceed 14 days or 80 hours, whichever is longer. . 8. Immunity (a) Personal immunity (1) In general Notwithstanding any other provision of law, a law enforcement officer of a State or of a political subdivision of a State shall be immune from personal liability arising out of the enforcement of any immigration law to the same extent as a Federal law enforcement officer is immune. (2) Applicability The immunity provided under paragraph (1) only applies to an officer of a State, or of a political subdivision of a State, who is acting within the scope of such officer’s official duties. (b) Agency immunity Notwithstanding any other provision of law, a law enforcement agency of a State, or of a political subdivision of a State, shall be immune from any claim for money damages based on Federal, State, or local civil rights law for an incident arising out of the enforcement of any immigration law, except to the extent that the law enforcement officer of that agency, whose action the claim involves, committed a violation of Federal, State, or local criminal law in the course of enforcing such immigration law.