Using rule actions in AWS WAF - AWS WAF, AWS Firewall Manager, AWS Shield Advanced, and AWS Shield network security director

The rule action tells AWS WAF what to do with a web request when it matches the rule.