update-rule
command. For example, if you want to update a rule with the ID 12345678-1234-1234-1234-123456789012
in a WebACL named MyWebACL
, you can use the following command:
ALLOW
and overriding any previous actions.
update-rate-based-rule
command. For example, if you want to update a rate-based rule with the ID 12345678-1234-1234-1234-123456789012
in a WebACL named MyWebACL
, you can use the following command:
1000
requests per 5 minutes.
update-managed-rule-set-version
command. For example, if you want to update a managed rule group with the ARN arn:aws:wafv2:us-west-2:123456789012:managed-rule-set/aws-managed/gbqj2j5k5k-owasp-top-10
to the latest available version, you can use the following command:
create_ip_set
method to create an IP set in AWS WAF.update_ip_set
method to add the IP addresses to the IP set.update_web_acl
method to associate the IP set with the desired web ACL.create_rate_based_rule
method to create the rate-based rule.update_web_acl
method to associate the rate-based rule with the desired web ACL.create_rule
method to create the custom rule.update_web_acl
method to associate the custom rule with the desired web ACL.CHANGE_TOKEN
, IP_SET_ID
, WEB_ACL_ID
, etc.) with the actual values specific to your AWS WAF configuration.