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

**********************
delete_resource_policy
**********************



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

  

  Removes the association of a resource-based policy from an app monitor.

  

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


  **Request Syntax**
  ::

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

    The app monitor that you want to remove the resource policy from.

    

  
  :type PolicyRevisionId: string
  :param PolicyRevisionId: 

    Specifies a specific policy revision to delete. Provide a ``PolicyRevisionId`` to ensure an atomic delete operation. If the revision ID that you provide doesn't match the latest policy revision ID, the request will be rejected with an ``InvalidPolicyRevisionIdException`` error.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The revision ID of the policy that was removed, if it had one.

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

  
  *   :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`

  