Using Console
Using CLI
<WebACL ID>
, <WebACL Name>
, and <Region>
with the actual values.<WebACL ID>
, <WebACL Name>
, <IPSet ARN>
, and <Region>
with the actual values. This command creates a rule that blocks requests from IP addresses defined in the specified IP set.<WebACL ID>
, <WebACL Name>
, and <Region>
with the actual values.Please note that you need to have the necessary permissions to perform these actions. Also, the AWS CLI commands should be run from a machine where AWS CLI is installed and configured with your AWS account.Using Python
pip install boto3
in your command line.
import boto3
.
get_web_acl
method and passing the WebACL ID. Here’s an example:update_web_acl
method. Here’s an example:ChangeToken
parameter is a value that you get from a call to get_change_token
, and you use it to ensure that your change request is submitted without any intervening updates.