EC2 / Client / restore_volume_from_recycle_bin

restore_volume_from_recycle_bin

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 in the Amazon EBS User Guide.

See also: AWS API Documentation

Request Syntax

response = client.restore_volume_from_recycle_bin(
    VolumeId='string',
    DryRun=True|False
)
Parameters:
  • VolumeId (string) –

    [REQUIRED]

    The ID of the volume to restore.

  • DryRun (boolean) – 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.

Return type:

dict

Returns:

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) –

    • Return (boolean) –

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