:doc:`SsmSap <../../ssm-sap>` / Client / delete_resource_permission

**************************
delete_resource_permission
**************************



.. py:method:: SsmSap.Client.delete_resource_permission(**kwargs)

  

  Removes permissions associated with the target database.

  

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


  **Request Syntax**
  ::

    response = client.delete_resource_permission(
        ActionType='RESTORE',
        SourceResourceArn='string',
        ResourceArn='string'
    )
    
  :type ActionType: string
  :param ActionType: 

    Delete or restore the permissions on the target database.

    

  
  :type SourceResourceArn: string
  :param SourceResourceArn: 

    The Amazon Resource Name (ARN) of the source resource.

    

  
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Policy** *(string) --* 

        The policy that removes permissions on the target database.

        
  
  **Exceptions**
  
  *   :py:class:`SsmSap.Client.exceptions.ResourceNotFoundException`

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

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

  