1VM::EC2::Group(3)     User Contributed Perl Documentation    VM::EC2::Group(3)
2
3
4

NAME

6       VM::EC2::Group - Object describing an Amazon EC2 security group name
7

SYNOPSIS

9         use VM::EC2;
10
11         $ec2      = VM::EC2->new(...);
12         $instance = $ec2->describe_instances(-instance_id=>'i-12345');
13         my @groups = $instance->groups;
14         for my $g (@groups) {
15           my $id      = $g->groupId;
16           my $name    = $g->groupName;
17
18           # get the security group details
19           my $sg      = $ec2->describe_security_group($g);
20           my $permissions = $sg->ipPermissions;
21         }
22

DESCRIPTION

24       This object represents the name and ID of a security group. It is
25       returned by an instance's groups() method. This object does not provide
26       any of the details about the security group, but you can use it in a
27       call to VM::EC2->describe_security_group() to get details about the
28       security group's allowed ports, etc.
29

METHODS

31       These object methods are supported:
32
33        groupId   -- the group ID
34        groupName -- the group's name
35
36       For convenience, the object also provides a permissions() method that
37       will return the fully detailed VM::EC2::SecurityGroup:
38
39        $details = $group->permissions()
40
41       See VM::EC2::SecurityGroup
42

STRING OVERLOADING

44       When used in a string context, this object will interpolate the
45       groupId.
46

SEE ALSO

48       VM::EC2 VM::EC2::Object VM::EC2::Generic VM::EC2::SecurityGroup
49

AUTHOR

51       Lincoln Stein <lincoln.stein@gmail.com>.
52
53       Copyright (c) 2011 Ontario Institute for Cancer Research
54
55       This package and its accompanying libraries is free software; you can
56       redistribute it and/or modify it under the terms of the GPL (either
57       version 1, or at your option, any later version) or the Artistic
58       License 2.0.  Refer to LICENSE for the full license text. In addition,
59       please see DISCLAIMER.txt for disclaimers of warranty.
60
61
62
63perl v5.32.0                      2020-07-28                 VM::EC2::Group(3)
Impressum