---
title: "POST /#X-Amz-Target=AWSWAF_Regional_20161128.AssociateWebACL"
method: POST
path: "/#X-Amz-Target=AWSWAF_Regional_20161128.AssociateWebACL"
---

# POST /#X-Amz-Target=AWSWAF_Regional_20161128.AssociateWebACL

`POST /#X-Amz-Target=AWSWAF_Regional_20161128.AssociateWebACL`

<note> <p>This is <b>AWS WAF Classic Regional</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Associates a web ACL with a resource, either an application load balancer or Amazon API Gateway stage.</p>

## Headers

- `X-Amz-Target` 'AWSWAF_Regional_20161128.AssociateWebACL', required

## Request body

- AssociateWebACLRequest
  - `WebACLId` string, required — A unique identifier (ID) for the web ACL.
  - `ResourceArn` string, required — <p>The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be in one of the following formats:</p> <ul> <li> <p>For an Application Load Balancer: <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i> </code> </p> </li> <li> <p>For an Amazon API Gateway stage: <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i> </code> </p> </li> </ul>

## Response `200`

Success

- AssociateWebACLResponse

## Other responses

- `480` — WAFInternalErrorException
- `481` — WAFInvalidAccountException
- `482` — WAFInvalidParameterException
- `483` — WAFNonexistentItemException
- `484` — WAFUnavailableEntityException

---

[API](https://skmtc.net/aws/apis/waf-regional.md) · [All operations](https://skmtc.net/aws/apis/waf-regional/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/waf-regional/versions/12b830ff94fb/schema)
