volumeId -- ID of this volume.
size -- Size of this volume (in GB).
snapshotId -- ID of snapshot this volume was created from.
availabilityZone -- Availability zone in which this volume resides.
status -- Volume state, one of "creating", "available",
"in-use", "deleting", "deleted", "error"
createTime -- Timestamp for when volume was created.
volumeType -- The volume type, one of "standard" or "io1"
iops -- The number of I/O operations per second that the volume
supports, an integer between 100 and 2000. Only valid for
volumes of type "io1".
tags -- Hashref containing tags associated with this group.
See L<VM::EC2::Generic>.

The attachment() method returns a VM::EC2::BlockDevice::Attachment object describing the attachment of this volume to an instance. If the volume is unused, then this returns undef.

The attachments() method is similar, except that it returns a list of the attachments. Currently an EBS volume can only be attached to one instance at a time, but the Amazon call syntax supports multiple attachments and this method is provided for future compatibility.

Detaches this volume. With no arguments, will detach the volume from whatever instance it is currently attached to. Provide -instance_id and/or -device as a check that you are detaching the volume from the expected instance and device.

Optional arguments:

-instance_id -- ID of the instance to detach from.
-device -- How the device is exposed to the instance.
-force -- Force detachment, even if previous attempts were
unsuccessful.

The result is a VM::EC2::BlockDevice::Attachment object which you can monitor by calling current_status():

Get or set the deleteOnTermination flag for attached volumes. If the volume is unattached, then this causes a fatal error. Called with no arguments, this method returns the current state of the deleteOnTermination flag for the volume's attachment. Called with a true/false argument, the method sets the flag by calling modify_instance_attributes() on the corresponding instance and returns true if successful.

Create a snapshot of the volume and return a VM::EC2::Snapshot object. To ensure a consistent snapshot, you should unmount the volume before snapshotting it. The optional argument allows you to add a description to the snapshot.

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.