package Net::Amazon::EC2::SecurityGroup; use Moose; =head1 NAME Net::Amazon::EC2::SecurityGroup =head1 DESCRIPTION A class representing a security group. =head1 ATTRIBUTES =over =item owner_id (required) The AWS Access Key ID of the owner of the security group. =item group_name (required) The name of the security group. =item group_description (required) The description of the security group. =item ip_permissions (optional) An array ref of Net::Amazon::EC2::IpPermission objects. =cut has 'owner_id' => ( is => 'ro', isa => 'Str', required => 1 ); has 'group_name' => ( is => 'ro', isa => 'Str', required => 1 ); has 'group_description' => ( is => 'ro', isa => 'Str', required => 1 ); has 'ip_permissions' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::IpPermission]]', predicate => 'has_ip_permissions', default => sub { [ ] }, ); __PACKAGE__->meta->make_immutable(); =head1 AUTHOR Jeff Kim =head1 COPYRIGHT Copyright (c) 2006-2008 Jeff Kim. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut no Moose; 1;