Pertussis causative agents are bordetella pertussis and bordetella parapertussis. Bacteria, not virus.
Immunity from vaccination is short lived, but more importantly is useful for infants and young children. Immune response was best early on after vaccines were first introduced. Now not so much which is resulting in more outbreaks.
https://emedicine.medscape.com/article/967268-overview#a1