:doc:`MultipartyApproval <../../mpa>` / Client / list_resource_policies

**********************
list_resource_policies
**********************



.. py:method:: MultipartyApproval.Client.list_resource_policies(**kwargs)

  

  Returns a list of policies for a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mpa-2022-07-26/ListResourcePolicies>`_  


  **Request Syntax**
  ::

    response = client.list_resource_policies(
        ResourceArn='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) for the resource.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of items to return in the response. If more results exist than the specified ``MaxResults`` value, a token is included in the response so that you can retrieve the remaining results.

    

  
  :type NextToken: string
  :param NextToken: 

    If present, indicates that more output is available than is included in the current response. Use this value in the ``NextToken`` request parameter in a next call to the operation to get more output. You can repeat this until the ``NextToken`` response element returns ``null``.

    

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

    
    ::

      {
          'NextToken': 'string',
          'ResourcePolicies': [
              {
                  'PolicyArn': 'string',
                  'PolicyType': 'AWS_MANAGED'|'AWS_RAM',
                  'PolicyName': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **NextToken** *(string) --* 

        If present, indicates that more output is available than is included in the current response. Use this value in the ``NextToken`` request parameter in a next call to the operation to get more output. You can repeat this until the ``NextToken`` response element returns ``null``.

        
      

      - **ResourcePolicies** *(list) --* 

        An array of ``ListResourcePoliciesResponseResourcePolicy`` objects. Contains details about the policy for the resource.

        
        

        - *(dict) --* 

          Contains details about a policy for a resource.

          
          

          - **PolicyArn** *(string) --* 

            Amazon Resource Name (ARN) for policy.

            
          

          - **PolicyType** *(string) --* 

            The type of policy.

            
          

          - **PolicyName** *(string) --* 

            Name of the policy.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`MultipartyApproval.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ValidationException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.InternalServerException`

  