:doc:`Comprehend <../../comprehend>` / Client / delete_resource_policy

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



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

  

  Deletes a resource-based policy that is attached to a custom model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the custom model version that has the policy to delete.

    

  
  :type PolicyRevisionId: string
  :param PolicyRevisionId: 

    The revision ID of the policy to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Comprehend.Client.exceptions.InvalidRequestException`

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

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

  