:doc:`WAFV2 <../../wafv2>` / Client / list_resources_for_web_acl

**************************
list_resources_for_web_acl
**************************



.. py:method:: WAFV2.Client.list_resources_for_web_acl(**kwargs)

  

  Retrieves an array of the Amazon Resource Names (ARNs) for the resources that are associated with the specified web ACL.

   

  For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ``ListDistributionsByWebACLId``. For information, see `ListDistributionsByWebACLId <https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributionsByWebACLId.html>`__ in the *Amazon CloudFront API Reference*.

   

  **Required permissions for customer-managed IAM policies**

   

  This call requires permissions that are specific to the protected resource type. For details, see `Permissions for ListResourcesForWebACL <https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-ListResourcesForWebACL>`__ in the *WAF Developer Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListResourcesForWebACL>`_  


  **Request Syntax**
  ::

    response = client.list_resources_for_web_acl(
        WebACLArn='string',
        ResourceType='APPLICATION_LOAD_BALANCER'|'API_GATEWAY'|'APPSYNC'|'COGNITO_USER_POOL'|'APP_RUNNER_SERVICE'|'VERIFIED_ACCESS_INSTANCE'|'AMPLIFY'
    )
    
  :type WebACLArn: string
  :param WebACLArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the web ACL.

    

  
  :type ResourceType: string
  :param ResourceType: 

    Retrieves the web ACLs that are used by the specified resource type.

     

    For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ``ListDistributionsByWebACLId``. For information, see `ListDistributionsByWebACLId <https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributionsByWebACLId.html>`__ in the *Amazon CloudFront API Reference*.

     

    .. note::

      

      If you don't provide a resource type, the call uses the resource type ``APPLICATION_LOAD_BALANCER``.

      

     

    Default: ``APPLICATION_LOAD_BALANCER``

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ResourceArns': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceArns** *(list) --* 

        The array of Amazon Resource Names (ARNs) of the associated resources.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`WAFV2.Client.exceptions.WAFInternalErrorException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFNonexistentItemException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInvalidParameterException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInvalidOperationException`

  