VM::EC...e::Set(3pm)

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

πŸ’– VM::EC2::Instance::Set πŸ’–

okay bestie, welcome to VM::EC2::Instance::Set(3pm) β€” the little group-chat object that holds a whole set of instances together. she's not the star of the show, but she's the one holding the receipts. πŸŽ€


✨ NAME ✨

VM::EC2::Instance::Set β€” an object that describes a set of instances. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

here's how she shows up in the wild:

use VM::EC2;

$ec2       = VM::EC2->new(...);
@instances = $ec2->run_instances(-image_id=>'ami-12345');
for my $i (@instances) {
   $res    = $i->reservationId;
   $req    = $i->requesterId;
   $owner  = $i->ownerId;
   @groups = $i->groups;
}

like yes, that's the whole thing. she's lowkey just chillin' in the background. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea, bestie. πŸ«–

this object is used internally to manage the output of VM::EC2->run_instances(), which returns information about the reservation and security groups as well as the list of launched instances.

and because reservations are infrequently used (ngl, she's a rare guest at the party), this object is not used directly. instead, the reservation and requester IDs contained within it get stored in the VM::EC2::Instance objects returned by run_instances().

so like… she's giving backstage crew energy. you don't see her, but the show does not go on without her. πŸ‘‘


πŸ”₯ METHODS πŸ”₯

exactly one object method is supported, and honestly? she's efficient. periodt. ✨

@instances = $reservation_set->instances()

this will return the instances contained within the instance set. that's the whole job. she does it. slay. πŸ’…


🌈 SEE ALSO 🌈

go read these next, fr fr:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Instance

πŸŽ€ AUTHOR πŸŽ€

Lincoln Stein <lincoln.stein@gmail.com> β€” icon behavior, 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.


okay so legally speaking: free software, two license options, and there's a LICENSE file plus a DISCLAIMER.txt if you want the whole story. no cap. 🫢

and that's the page bestie!! this was perl v5.38.2, dated 2024-08-10, and it's the VM::EC2::Instance::Set(3pm) manual β€” thanks for reading, mwah πŸ’‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from