:doc:`EC2 <../../ec2>` / Client / restore_volume_from_recycle_bin

*******************************
restore_volume_from_recycle_bin
*******************************



.. py:method:: EC2.Client.restore_volume_from_recycle_bin(**kwargs)

  

  Restores a volume from the Recycle Bin. For more information, see `Restore volumes from the Recycle Bin <https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin-working-with-volumes.html#recycle-bin-restore-volumes>`__ in the *Amazon EBS User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreVolumeFromRecycleBin>`_  


  **Request Syntax**
  ::

    response = client.restore_volume_from_recycle_bin(
        VolumeId='string',
        DryRun=True|False
    )
    
  :type VolumeId: string
  :param VolumeId: **[REQUIRED]** 

    The ID of the volume to restore.

    

  
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    
    ::

      {
          'Return': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Returns ``true`` if the request succeeds; otherwise, it returns an error.

        
  