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   544 use Moose;
  1     1   2  
  1         10  
  1         539  
  1         2  
  1         9  
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. If you specify all ICMP/ICMPv6 types, you must specify all
50             codes.
51              
52              
53             =head2 IpProtocol => Str
54              
55             The IP protocol name (C<tcp>, C<udp>, C<icmp>) or number (see Protocol
56             Numbers).
57              
58             [EC2-VPC only] Use C<-1> to specify all protocols. When authorizing
59             security group rules, specifying C<-1> or a protocol number other than
60             C<tcp>, C<udp>, C<icmp>, or C<58> (ICMPv6) allows traffic on all ports,
61             regardless of any port range you specify. For C<tcp>, C<udp>, and
62             C<icmp>, you must specify a port range. For C<58> (ICMPv6), you can
63             optionally specify a port range; if you don't, traffic for all types
64             and codes is allowed when authorizing rules.
65              
66              
67             =head2 IpRanges => ArrayRef[L<Paws::EC2::IpRange>]
68              
69             One or more IPv4 ranges.
70              
71              
72             =head2 Ipv6Ranges => ArrayRef[L<Paws::EC2::Ipv6Range>]
73              
74             [EC2-VPC only] One or more IPv6 ranges.
75              
76              
77             =head2 PrefixListIds => ArrayRef[L<Paws::EC2::PrefixListId>]
78              
79             (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and
80             DescribeSecurityGroups only) One or more prefix list IDs for an AWS
81             service. In an AuthorizeSecurityGroupEgress request, this is the AWS
82             service that you want to access through a VPC endpoint from instances
83             associated with the security group.
84              
85              
86             =head2 ToPort => Int
87              
88             The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
89             code. A value of C<-1> indicates all ICMP/ICMPv6 codes for the
90             specified ICMP type. If you specify all ICMP/ICMPv6 types, you must
91             specify all codes.
92              
93              
94             =head2 UserIdGroupPairs => ArrayRef[L<Paws::EC2::UserIdGroupPair>]
95              
96             One or more security group and AWS account ID pairs.
97              
98              
99              
100             =head1 SEE ALSO
101              
102             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
103              
104             =head1 BUGS and CONTRIBUTIONS
105              
106             The source code is located here: https://github.com/pplu/aws-sdk-perl
107              
108             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
109              
110             =cut