how to use enhanced input for press, hold release

I am attempting to set up enhanced input for my game to allow the following:

  1. Tap the E key and the player fires the weapon once.
  2. Tap and hold the E key to initiate automatic fire and cease when the key is released.

I am doing this in C++.

How can I make this happen with Enhanced Input?