:doc:`CloudWatchRUM <../../rum>` / Client / get_resource_policy

*******************
get_resource_policy
*******************



.. py:method:: CloudWatchRUM.Client.get_resource_policy(**kwargs)

  

  Use this operation to retrieve information about a resource-based policy that is attached to an app monitor.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/GetResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policy(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the app monitor that is associated with the resource-based policy that you want to view.

    

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

    
    ::

      {
          'PolicyDocument': 'string',
          'PolicyRevisionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The JSON policy document that you requested.

        
      

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

        The revision ID information for this version of the policy document that you requested.

        
  
  **Exceptions**
  
  *   :py:class:`CloudWatchRUM.Client.exceptions.ConflictException`

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

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

  
  *   :py:class:`CloudWatchRUM.Client.exceptions.PolicyNotFoundException`

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

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

  
  *   :py:class:`CloudWatchRUM.Client.exceptions.AccessDeniedException`

  