The code official
, member of the board of appeals or employee charged with the enforcement of this code, acting in good faith and without malice in the discharge of the duties required by this code or other pertinent law or ordinance, shall not thereby be rendered personally liable for damages that may accrue to persons or property as a result of an act or by reason of an act or omission in the discharge of such duties. A suit brought against the code official
or employee because of such act or omission performed by the code official
or employee in the enforcement of any provision of such codes or other pertinent laws or ordinances implemented through the enforcement of this code or enforced by the code enforcement agency shall be defended by this jurisdiction until final termination of such proceedings, and any judgment resulting therefrom shall be assumed by this jurisdiction. The code enforcement agency or its parent jurisdiction shall not be held as assuming any liability by reason of the inspections authorized by this code or any permits or certificates issued under this code.