Knowledge sharing: Order of precedence for BIG-IP modules, ASM DDOS Protection, Bot Protection
For the General order of the modules in F5:
Packet Filter > AFM > iRule Flow Init event> LTM(or GTM/DNS) >APM > ASM .
Also in the AFM there is DDOS at Layer 3 or 4 that is before the AFM rules ...