:doc:`XRay <../../xray>` / Client / list_resource_policies

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



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

  

  Returns the list of resource policies in the target Amazon Web Services account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePolicies>`_  


  **Request Syntax**
  ::

    response = client.list_resource_policies(
        NextToken='string'
    )
    
  :type NextToken: string
  :param NextToken: 

    Not currently supported.

    

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

    
    ::

      {
          'ResourcePolicies': [
              {
                  'PolicyName': 'string',
                  'PolicyDocument': 'string',
                  'PolicyRevisionId': 'string',
                  'LastUpdatedTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The list of resource policies in the target Amazon Web Services account.

        
        

        - *(dict) --* 

          A resource policy grants one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy is associated with a specific Amazon Web Services account.

          
          

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

            The name of the resource policy. Must be unique within a specific Amazon Web Services account.

            
          

          - **PolicyDocument** *(string) --* 

            The resource policy document, which can be up to 5kb in size.

            
          

          - **PolicyRevisionId** *(string) --* 

            Returns the current policy revision id for this policy name.

            
          

          - **LastUpdatedTime** *(datetime) --* 

            When the policy was last updated, in Unix time seconds.

            
      
    
      

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

        Pagination token. Not currently supported.

        
  
  **Exceptions**
  
  *   :py:class:`XRay.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`XRay.Client.exceptions.ThrottledException`

  