(g) The attorney general shall represent Wyoming national guard members, peace officers or law enforcement officials in litigation that may commence due to a national guard member's, peace officer's or law enforcement official's compliance with subsection (e) or (f) of this section.