VM::EC...g::EBS(3pm)
π VM::EC2::BlockDevice::Mapping::EBS π
okay so bestie, welcome to the manual page for VM::EC2::BlockDevice::Mapping::EBS(3pm) β yes that's the whole name, it's giving "my parents named me after the entire family tree" energy, but we move π
πΈ NAME πΈ
VM::EC2::BlockDevice::Mapping::EBS β the object that describes an EBS volume that's been mapped onto an Amazon EC2 instance π«Ά
β¨ SYNOPSIS β¨
use VM::EC2;
my $instance = $ec2->describe_instances(-instance_id=>'i-123456');
my @devices = $instance->blockDeviceMapping;
for my $d (@devices) {
my $ebs = $d->ebs;
$volume_id = $ebs->volumeId;
$status = $ebs->status;
$atime = $ebs->attachmentTime;
$delete = $ebs->delete;
$volume = $ebs->volume;
}
π¦ DESCRIPTION π¦
So like, this object exists to describe an Amazon EBS volume that's mapped onto an EC2 block device. It gets handed back to you by VM::EC2->describe_instances(). That's the whole vibe. π
Now, do not confuse this with VM::EC2::BlockDevice::EBS, bestie β that one describes the parameters you need to create the EBS volume when an image is launched. This class is the other thing: it describes an active mapping between an instance's block device and the underlying EBS volume. Two different girls, two different jobs, no cap π
And here's the tea: because literally all the methods in this class get passed through to VM::EC2::BlockDeviceMapping, it's honestly simpler to just call them directly on the BlockDeviceMapping object:
my $instance = $ec2->describe_instances(-instance_id=>'i-123456');
my @devices = $instance->blockDeviceMapping;
for my $d (@devices) {
$volume_id = $d->volumeId;
$status = $d->status;
$atime = $d->attachmentTime;
$delete = $d->delete;
$volume = $d->volume;
}
π METHODS π
The following object methods are supported, queen π:
volumeIdβ the ID of the volume. that's it, that's the girl.statusβ one of"attaching","attached","detaching","detached"β¨attachTimeβ the time this volume was attached β°deleteOnTerminationβ whether the volume is gonna get deleted when its attached instance is deleted. > heads up bestie: this returns the perl0/1booleans, not the"false"/"true"strings. ikyk π
In addition, the following convenience method is supported:
π« $vol = $ebs->volume
This hands you back the VM::EC2::Volume object that corresponds to this EBS. The volume will give you extra info, like the availability zone πΊοΈ β so go ask her, she knows things.
π STRING OVERLOADING π
NONE π
she simply does not do that π
π«Ά SEE ALSO π«Ά
VM::EC2VM::EC2::GenericVM::EC2::SnapshotVM::EC2::BlockDeviceVM::EC2::BlockDevice::Attachment
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com> β an actual icon, we stan π«Ά
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.
and that's the whole page, bestie π this was perl v5.38.2, dated 2024-08-10, and yes it is still VM::EC2::BlockDevice::Mapping::EBS(3pm) β slay, periodt β¨ππ¦
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms