Iowa Code § 80F.2
1. If a peace officer, as defined in section 801.4, or a corrections officer is charged with the alleged commission of a public offense, based on acts or omissions within the scope of the officer’s lawful duty or authority, and the charge is dismissed or the officer is acquitted of the charge, the presiding magistrate or judge shall enter judgment awarding reimbursement to the officer for any costs incurred in defending against the charge, including but not limited to a reasonable attorney fee, if the court finds the existence of any of the following grounds:
2016 Acts, ch 1049, §1