| 1 | package Net::Amazon::EC2::SecurityGroup; | ||
| 2 | 2 | $Net::Amazon::EC2::SecurityGroup::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::SecurityGroup | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing a security group. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item owner_id (required) | ||
| 18 | |||
| 19 | The AWS Access Key ID of the owner of the security group. | ||
| 20 | |||
| 21 | =item group_name (required) | ||
| 22 | |||
| 23 | The name of the security group. | ||
| 24 | |||
| 25 | =item group_id (required) | ||
| 26 | |||
| 27 | The id of the security group. | ||
| 28 | |||
| 29 | =item group_description (required) | ||
| 30 | |||
| 31 | The description of the security group. | ||
| 32 | |||
| 33 | =item ip_permissions (optional) | ||
| 34 | |||
| 35 | An array ref of Net::Amazon::EC2::IpPermission objects for ingress. | ||
| 36 | |||
| 37 | =item ip_permissions_egress (optional) | ||
| 38 | |||
| 39 | An array ref of Net::Amazon::EC2::IpPermission objects for egress. | ||
| 40 | |||
| 41 | =item vpc_id (optional) | ||
| 42 | |||
| 43 | The VPC id of the corresponding security group | ||
| 44 | |||
| 45 | =item tag_set (optional) | ||
| 46 | |||
| 47 | The set of associated tags for the security group | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | 2 | has 'owner_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 52 | 2 | has 'group_name' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 53 | 2 | has 'group_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 54 | 2 | has 'group_description' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 55 | has 'ip_permissions' => ( | ||
| 56 | is => 'ro', | ||
| 57 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::IpPermission]]', | ||
| 58 | predicate => 'has_ip_permissions', | ||
| 59 | 0 | ▶ | default => sub { [ ] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 60 | 2 | ); | |
| 61 | has 'ip_permissions_egress' => ( | ||
| 62 | is => 'ro', | ||
| 63 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::IpPermission]]', | ||
| 64 | predicate => 'has_ip_permissions_egress', | ||
| 65 | 0 | ▶ | default => sub { [ ] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 66 | 2 | ); | |
| 67 | 2 | has 'vpc_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 68 | 2 | has 'tag_set' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 ); | |
| 69 | |||
| 70 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | =head1 AUTHOR | ||
| 75 | |||
| 76 | Jeff Kim <cpan@chosec.com> | ||
| 77 | |||
| 78 | =head1 COPYRIGHT | ||
| 79 | |||
| 80 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 81 | under the same terms as Perl itself. | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 86 | 2 | 1; | |