1VM::EC2::Instance::Set(U3s)er Contributed Perl DocumentatViMo:n:EC2::Instance::Set(3)
2
3
4
6 VM::EC2::Instance::Set - Object describing a set of instances
7
9 use VM::EC2;
10
11 $ec2 = VM::EC2->new(...);
12 @instances = $ec2->run_instances(-image_id=>'ami-12345');
13 for my $i (@instances) {
14 $res = $i->reservationId;
15 $req = $i->requesterId;
16 $owner = $i->ownerId;
17 @groups = $i->groups;
18 }
19
21 This object is used internally to manage the output of
22 VM::EC2->run_instances(), which returns information about the
23 reservation and security groups as well as the list of launched
24 instances. Because reservations are infrequently used, this object is
25 not used directly; instead the reservation and requester IDs contained
26 within it are stored in the VM::EC2::Instance objects returned by
27 run_instances().
28
30 One object method is supported:
31
32 @instances = $reservation_set->instances()
33 This will return the instances contained within the instance set.
34
36 VM::EC2 VM::EC2::Generic VM::EC2::Instance
37
39 Lincoln Stein <lincoln.stein@gmail.com>.
40
41 Copyright (c) 2011 Ontario Institute for Cancer Research
42
43 This package and its accompanying libraries is free software; you can
44 redistribute it and/or modify it under the terms of the GPL (either
45 version 1, or at your option, any later version) or the Artistic
46 License 2.0. Refer to LICENSE for the full license text. In addition,
47 please see DISCLAIMER.txt for disclaimers of warranty.
48
49
50
51perl v5.30.1 2020-02-07 VM::EC2::Instance::Set(3)