:doc:`PrometheusService <../../amp>` / Client / describe_resource_policy

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



.. py:method:: PrometheusService.Client.describe_resource_policy(**kwargs)

  

  Returns information about the resource-based policy attached to an Amazon Managed Service for Prometheus workspace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.describe_resource_policy(
        workspaceId='string'
    )
    
  :type workspaceId: string
  :param workspaceId: **[REQUIRED]** 

    The ID of the workspace to describe the resource-based policy for.

    

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

    
    ::

      {
          'policyDocument': 'string',
          'policyStatus': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING',
          'revisionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyDocument** *(string) --* 

        The JSON policy document for the resource-based policy attached to the workspace.

        
      

      - **policyStatus** *(string) --* 

        The current status of the resource-based policy.

        
      

      - **revisionId** *(string) --* 

        The revision ID of the current resource-based policy.

        
  
  **Exceptions**
  
  *   :py:class:`PrometheusService.Client.exceptions.ThrottlingException`

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

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

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

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

  