:doc:`Organizations <../../organizations>` / Client / describe_resource_policy

************************
describe_resource_policy
************************



.. py:method:: Organizations.Client.describe_resource_policy()

  

  Retrieves information about a resource policy.

   

  You can only call this operation from the management account or a member account that is a delegated administrator.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeResourcePolicy>`_  


  **Request Syntax**

  ::

    response = client.describe_resource_policy()
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ResourcePolicy': {
              'ResourcePolicySummary': {
                  'Id': 'string',
                  'Arn': 'string'
              },
              'Content': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourcePolicy** *(dict) --* 

        A structure that contains details about the resource policy.

        
        

        - **ResourcePolicySummary** *(dict) --* 

          A structure that contains resource policy ID and Amazon Resource Name (ARN).

          
          

          - **Id** *(string) --* 

            The unique identifier (ID) of the resource policy.

            
          

          - **Arn** *(string) --* 

            The Amazon Resource Name (ARN) of the resource policy.

            
      
        

        - **Content** *(string) --* 

          The policy text of the resource policy.

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

  
  *   :py:class:`Organizations.Client.exceptions.ServiceException`

  
  *   :py:class:`Organizations.Client.exceptions.UnsupportedAPIEndpointException`

  
  *   :py:class:`Organizations.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Organizations.Client.exceptions.AWSOrganizationsNotInUseException`

  
  *   :py:class:`Organizations.Client.exceptions.ResourcePolicyNotFoundException`

  
  *   :py:class:`Organizations.Client.exceptions.ConstraintViolationException`

  