CmdID / aws / aws waf-regional
aws waf-regional update-web-acl
This is AWS WAF Classic documentation. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To update a web ACL
The following update-web-acl example deletes an ActivatedRule object in a WebACL. Because the updates value contains embedded double quotes, you must surround the entire value in single quotes.
aws waf-regional update-web-acl --web-acl-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --change-token 12cs345-67cd-890b-1cd2-c3a4567d89f1 --updates Action="DELETE",ActivatedRule='{Priority=1,RuleId="WAFRule-1-Example",Action={Type="ALLOW"},Type="ALLOW"}'Identify--web-acl-idThe WebACLId of the WebACL that you want to update.--change-tokenThe value returned by the most recent call to GetChangeToken.--updatesAn array of updates to make to the WebACL.Its output
{
"ChangeToken": "12cs345-67cd-890b-1cd2-c3a4567d89f1"
}For more information, see Working with Web ACLs in the AWS WAF Developer Guide.
Options
--change-tokenThe value returned by the most recent call to GetChangeToken.--default-actionA default action for the web ACL, either ALLOW or BLOCK.--updatesAn array of updates to make to the WebACL.--web-acl-idThe WebACLId of the WebACL that you want to update.