File Coverage

blib/lib/Paws/EC2/IpPermission.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::EC2::IpPermission;
2 1     1   522 use Moose;
  1     1   2  
  1         6  
  1         580  
  1         3  
  1         8  
3             has FromPort => (is => 'ro', isa => 'Int', request_name => 'fromPort', traits => ['NameInRequest']);
4             has IpProtocol => (is => 'ro', isa => 'Str', request_name => 'ipProtocol', traits => ['NameInRequest']);
5             has IpRanges => (is => 'ro', isa => 'ArrayRef[Paws::EC2::IpRange]', request_name => 'ipRanges', traits => ['NameInRequest']);
6             has Ipv6Ranges => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Ipv6Range]', request_name => 'ipv6Ranges', traits => ['NameInRequest']);
7             has PrefixListIds => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PrefixListId]', request_name => 'prefixListIds', traits => ['NameInRequest']);
8             has ToPort => (is => 'ro', isa => 'Int', request_name => 'toPort', traits => ['NameInRequest']);
9             has UserIdGroupPairs => (is => 'ro', isa => 'ArrayRef[Paws::EC2::UserIdGroupPair]', request_name => 'groups', traits => ['NameInRequest']);
10             1;
11              
12             ### main pod documentation begin ###
13              
14             =head1 NAME
15              
16             Paws::EC2::IpPermission
17              
18             =head1 USAGE
19              
20             This class represents one of two things:
21              
22             =head3 Arguments in a call to a service
23              
24             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25             Each attribute should be used as a named argument in the calls that expect this type of object.
26              
27             As an example, if Att1 is expected to be a Paws::EC2::IpPermission object:
28              
29             $service_obj->Method(Att1 => { FromPort => $value, ..., UserIdGroupPairs => $value });
30              
31             =head3 Results returned from an API call
32              
33             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::IpPermission object:
34              
35             $result = $service_obj->Method(...);
36             $result->Att1->FromPort
37              
38             =head1 DESCRIPTION
39              
40             This class has no description
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 FromPort => Int
46              
47             The start of port range for the TCP and UDP protocols, or an
48             ICMP/ICMPv6 type number. A value of C<-1> indicates all ICMP/ICMPv6
49             types.
50              
51              
52             =head2 IpProtocol => Str
53              
54             The IP protocol name (C<tcp>, C<udp>, C<icmp>) or number (see Protocol
55             Numbers).
56              
57             [EC2-VPC only] Use C<-1> to specify all protocols. When authorizing
58             security group rules, specifying C<-1> or a protocol number other than
59             C<tcp>, C<udp>, C<icmp>, or C<58> (ICMPv6) allows traffic on all ports,
60             regardless of any port range you specify. For C<tcp>, C<udp>, and
61             C<icmp>, you must specify a port range. For C<58> (ICMPv6), you can
62             optionally specify a port range; if you don't, traffic for all types
63             and codes is allowed when authorizing rules.
64              
65              
66             =head2 IpRanges => ArrayRef[L<Paws::EC2::IpRange>]
67              
68             One or more IPv4 ranges.
69              
70              
71             =head2 Ipv6Ranges => ArrayRef[L<Paws::EC2::Ipv6Range>]
72              
73             [EC2-VPC only] One or more IPv6 ranges.
74              
75              
76             =head2 PrefixListIds => ArrayRef[L<Paws::EC2::PrefixListId>]
77              
78             (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and
79             DescribeSecurityGroups only) One or more prefix list IDs for an AWS
80             service. In an AuthorizeSecurityGroupEgress request, this is the AWS
81             service that you want to access through a VPC endpoint from instances
82             associated with the security group.
83              
84              
85             =head2 ToPort => Int
86              
87             The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
88             code. A value of C<-1> indicates all ICMP/ICMPv6 codes for the
89             specified ICMP type.
90              
91              
92             =head2 UserIdGroupPairs => ArrayRef[L<Paws::EC2::UserIdGroupPair>]
93              
94             One or more security group and AWS account ID pairs.
95              
96              
97              
98             =head1 SEE ALSO
99              
100             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
101              
102             =head1 BUGS and CONTRIBUTIONS
103              
104             The source code is located here: https://github.com/pplu/aws-sdk-perl
105              
106             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
107              
108             =cut