(2)A noncertified deputy sheriff or detention officer is a peace officer employed by a county or city and county whose authority is limited to the duties assigned by and while working under the direction of the chief of police, sheriff, an official who has the duties of a sheriff in a city and county, or chief executive of the employing law enforcement agency.