The first letter is the modifier, the second letter in the designator.
So AH= ATTACK (modifier) Helicopter (designator)
H was the letter assigned for the modifier Search and Rescue , so you have HU, HC, HH.
I believe S is (Anti-)Submarine or just maybe Submarine??
Don
I know it's only rock and roll, but I like it.