update-rule
command. For example, if you want to update a rule with the rule ID 12345678-1234-1234-1234-123456789012
in a WebACL named MyWebACL
, you can use the following command:ALLOW
. You can replace ALLOW
with BLOCK
, COUNT
, or NONE
depending on your requirement.
update-rate-based-rule
command. For example, if you want to update a rate-based rule with the rule ID 12345678-1234-1234-1234-123456789012
in a WebACL named MyWebACL
, you can use the following command:100
requests per 5 minutes. You can adjust the rate-limit
parameter as per your requirement.
update-web-acl
command. For example, if you want to update a managed rule group with the ARN arn:aws:wafv2:us-west-2:123456789012:regional/webacl/MyWebACL/managed-rule-group/SQLi-ManagedRuleSet
in a WebACL named MyWebACL
, you can use the following command:ALLOW
and updates the managed rule group to SQLi-ManagedRuleSet
. You can modify the parameters based on your specific requirements.
your_ip_set_id
, your_change_token
, etc.) with the actual values specific to your AWS environment.