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

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



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

  

  Deletes 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/DeleteResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_resource_policy(
        workspaceId='string',
        clientToken='string',
        revisionId='string'
    )
    
  :type workspaceId: string
  :param workspaceId: **[REQUIRED]** 

    The ID of the workspace from which to delete the resource-based policy.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).

    This field is autopopulated if not provided.

  
  :type revisionId: string
  :param revisionId: 

    The revision ID of the policy to delete. Use this parameter to ensure that you are deleting the correct version of the policy.

    

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

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

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

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

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

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

  