VM::EC...mission(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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::EC2
  • VM::EC2::Generic
  • VM::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 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 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