CmdID / aws / aws waf-regional
aws waf-regional associate-web-acl
This is AWS WAF Classic Regional documentation. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To associate a web ACL with a resource
The following associate-web-acl example associates a web ACL, specified by the web-acl-id, with a resource, specified by the resource-arn. The resource ARN can refer to either an application load balancer or an API Gateway.
aws waf-regional associate-web-acl --web-acl-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --resource-arn 12cs345-67cd-890b-1cd2-c3a4567d89f1Identify--web-acl-idA unique identifier (ID) for the web ACL.--resource-arnThe ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API Gateway stage.This command produces no output.
For more information, see Working with Web ACLs in the AWS WAF Developer Guide.
Options
--resource-arnThe ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API Gateway stage.--web-acl-idA unique identifier (ID) for the web ACL.