File Coverage

blib/lib/Paws/EC2/AuthorizeSecurityGroupIngress.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              
2             package Paws::EC2::AuthorizeSecurityGroupIngress;
3 1     1   497 use Moose;
  1         2  
  1         7  
4             has CidrIp => (is => 'ro', isa => 'Str');
5             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6             has FromPort => (is => 'ro', isa => 'Int');
7             has GroupId => (is => 'ro', isa => 'Str');
8             has GroupName => (is => 'ro', isa => 'Str');
9             has IpPermissions => (is => 'ro', isa => 'ArrayRef[Paws::EC2::IpPermission]');
10             has IpProtocol => (is => 'ro', isa => 'Str');
11             has SourceSecurityGroupName => (is => 'ro', isa => 'Str');
12             has SourceSecurityGroupOwnerId => (is => 'ro', isa => 'Str');
13             has ToPort => (is => 'ro', isa => 'Int');
14              
15 1     1   6157 use MooseX::ClassAttribute;
  1         4  
  1         9  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'AuthorizeSecurityGroupIngress');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20             1;
21              
22             ### main pod documentation begin ###
23              
24             =head1 NAME
25              
26             Paws::EC2::AuthorizeSecurityGroupIngress - Arguments for method AuthorizeSecurityGroupIngress on Paws::EC2
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method AuthorizeSecurityGroupIngress on the
31             Amazon Elastic Compute Cloud service. Use the attributes of this class
32             as arguments to method AuthorizeSecurityGroupIngress.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AuthorizeSecurityGroupIngress.
35              
36             As an example:
37              
38             $service_obj->AuthorizeSecurityGroupIngress(Att1 => $value1, Att2 => $value2, ...);
39              
40             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 CidrIp => Str
46              
47             The CIDR IPv4 address range. You can't specify this parameter when
48             specifying a source security group.
49              
50              
51              
52             =head2 DryRun => Bool
53              
54             Checks whether you have the required permissions for the action,
55             without actually making the request, and provides an error response. If
56             you have the required permissions, the error response is
57             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
58              
59              
60              
61             =head2 FromPort => Int
62              
63             The start of port range for the TCP and UDP protocols, or an
64             ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type number, use C<-1> to
65             specify all types.
66              
67              
68              
69             =head2 GroupId => Str
70              
71             The ID of the security group. Required for a nondefault VPC.
72              
73              
74              
75             =head2 GroupName => Str
76              
77             [EC2-Classic, default VPC] The name of the security group.
78              
79              
80              
81             =head2 IpPermissions => ArrayRef[L<Paws::EC2::IpPermission>]
82              
83             A set of IP permissions. Can be used to specify multiple rules in a
84             single command.
85              
86              
87              
88             =head2 IpProtocol => Str
89              
90             The IP protocol name (C<tcp>, C<udp>, C<icmp>) or number (see Protocol
91             Numbers). (VPC only) Use C<-1> to specify all protocols. If you specify
92             C<-1>, or a protocol number other than C<tcp>, C<udp>, C<icmp>, or
93             C<58> (ICMPv6), traffic on all ports is allowed, regardless of any
94             ports you specify. For C<tcp>, C<udp>, and C<icmp>, you must specify a
95             port range. For protocol C<58> (ICMPv6), you can optionally specify a
96             port range; if you don't, traffic for all types and codes is allowed.
97              
98              
99              
100             =head2 SourceSecurityGroupName => Str
101              
102             [EC2-Classic, default VPC] The name of the source security group. You
103             can't specify this parameter in combination with the following
104             parameters: the CIDR IP address range, the start of the port range, the
105             IP protocol, and the end of the port range. Creates rules that grant
106             full ICMP, UDP, and TCP access. To create a rule with a specific IP
107             protocol and port range, use a set of IP permissions instead. For
108             EC2-VPC, the source security group must be in the same VPC.
109              
110              
111              
112             =head2 SourceSecurityGroupOwnerId => Str
113              
114             [EC2-Classic] The AWS account number for the source security group, if
115             the source security group is in a different account. You can't specify
116             this parameter in combination with the following parameters: the CIDR
117             IP address range, the IP protocol, the start of the port range, and the
118             end of the port range. Creates rules that grant full ICMP, UDP, and TCP
119             access. To create a rule with a specific IP protocol and port range,
120             use a set of IP permissions instead.
121              
122              
123              
124             =head2 ToPort => Int
125              
126             The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
127             code number. For the ICMP/ICMPv6 code number, use C<-1> to specify all
128             codes.
129              
130              
131              
132              
133             =head1 SEE ALSO
134              
135             This class forms part of L<Paws>, documenting arguments for method AuthorizeSecurityGroupIngress in L<Paws::EC2>
136              
137             =head1 BUGS and CONTRIBUTIONS
138              
139             The source code is located here: https://github.com/pplu/aws-sdk-perl
140              
141             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
142              
143             =cut
144