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

***********************
put_resource_permission
***********************



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

  

  Adds permissions to the target database.

  

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


  **Request Syntax**
  ::

    response = client.put_resource_permission(
        ActionType='RESTORE',
        SourceResourceArn='string',
        ResourceArn='string'
    )
    
  :type ActionType: string
  :param ActionType: **[REQUIRED]** 

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

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

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Policy** *(string) --* 
  
  **Exceptions**
  
  *   :py:class:`SsmSap.Client.exceptions.ResourceNotFoundException`

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

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

  