The following object methods are supported:
volumeId -- ID of the volume.
instanceId -- ID of the instance
status -- Attachment state, one of "attaching", "attached",
attachTime -- Timestamp for when volume was attached
deleteOnTermination -- True if the EBS volume will be deleted when its
attached instance terminates. Note that this is a
Perl true, and not the string "true".
The deleteOnTermination method is slightly more sophisticated than
the result from the standard AWS API because it returns the CURRENT
deleteOnTermination flag for the attachment, which might have been
changed by VM::EC2->modify_instance_attributes(). You may also change
the deleteOnTermination state by passing a boolean argument to the
In addition, this class provides several convenience functions:
CW$instance = CW$attachment->instance
Returns the VM::EC2::Instance corresponding to this attachment.
CW$volume = CW$attachment->volume
Returns the VM::EC2::Volume object corresponding to this
CW$device = CW$attachment->deviceName
Alias for device() to be compatible with VM::EC2::BlockDevice::Mapping call.
CW$result = CW$attachment->deleteOnTermination($boolean)
Change the deleteOnTermination flag on this attachment.
CW$status = CW$attachment->current_status
Refreshes the information in the object and returns status().
Calls AWS to refresh the attachment information.
Lincoln Stein <email@example.com>.
Copyright (c) 2011 Ontario Institute for Cancer Research
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.