VM::EC...mission(3pm)
π VM::EC2::Snapshot::CreateVolumePermission(3pm) π
okay bestie, pull up a chair π«Ά this is VM::EC2::Snapshot::CreateVolumePermission β a little Perl module that's giving "who's allowed to do the thing" energy. It's part of the User Contributed Perl Documentation, and it is so niche and so specific and honestly? iconic for that. β¨
πΈ NAME πΈ
VM::EC2::Snapshot::CreateVolumePermission β literally just an object that describes AMI create volume permissions. That's it. That's the whole job. π
π¦ SYNOPSIS π¦
here's the vibe, copy-paste ready, no notes:
use VM::EC2;
$ec2 = VM::EC2->new(...);
$snapshot = $ec2->describe_snapshots('snap-12345');
@users = $image->createVolumePermissions;
for (@users) {
$group = $_->group;
$user = $_->userId;
}
see how we're looping through and grabbing group and userId off each one? yeah. that's the move. π
β¨ DESCRIPTION β¨
so like, this object represents an Amazon volume snapshot create volume permission. You don't make these yourself, bestie β they're handed to you. It's returned by VM::EC2::Snapshot createVolumePermissions(). π«Ά
π METHODS π
These object methods are supported, and there are exactly two of them, and we love that for them:
groupβ the name of a group with launch permissions. Heads up: the only valid value here is"all". Like, that's it. That's the whole menu. πuserIdβ the name of a user with launch permissions. π§
π STRING OVERLOADING π
okay so when you use this object in a string context, it will interpolate the userId. πͺ
BUT β and this is the plot twist β if the userId is blank, then it interpolates as the group instead. so it always gives you something. main character energy, honestly. π
π« SEE ALSO π«
go read these too, they're the friend group:
VM::EC2VM::EC2::GenericVM::EC2::Snapshot
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>. king behaviour. π
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 toLICENSEfor the full license text. In addition, please seeDISCLAIMER.txtfor disclaimers of warranty. π
and that's the whole page, bestie!! πβ¨ this was perl v5.38.2, dated 2024-08-10, and yes the manpage name got chopped to VM::EC...mission(3pm) in the footer because even manpages get a little β¨truncatedβ¨ sometimes. slay, mwah π
π
π¦ 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