File Coverage

blib/lib/Paws/GameLift/IpPermission.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::GameLift::IpPermission;
2 1     1   280 use Moose;
  1         3  
  1         5  
3             has FromPort => (is => 'ro', isa => 'Int', required => 1);
4             has IpRange => (is => 'ro', isa => 'Str', required => 1);
5             has Protocol => (is => 'ro', isa => 'Str', required => 1);
6             has ToPort => (is => 'ro', isa => 'Int', required => 1);
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::GameLift::IpPermission
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::GameLift::IpPermission object:
25              
26             $service_obj->Method(Att1 => { FromPort => $value, ..., ToPort => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::GameLift::IpPermission object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->FromPort
34              
35             =head1 DESCRIPTION
36              
37             A range of IP addresses and port settings that allow inbound traffic to
38             connect to server processes on Amazon GameLift. Each game session
39             hosted on a fleet is assigned a unique combination of IP address and
40             port number, which must fall into the fleet's allowed ranges. This
41             combination is included in the GameSession object.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 B<REQUIRED> FromPort => Int
47              
48             Starting value for a range of allowed port numbers.
49              
50              
51             =head2 B<REQUIRED> IpRange => Str
52              
53             Range of allowed IP addresses. This value must be expressed in CIDR
54             notation. Example: "C<000.000.000.000/[subnet mask]>" or optionally the
55             shortened version "C<0.0.0.0/[subnet mask]>".
56              
57              
58             =head2 B<REQUIRED> Protocol => Str
59              
60             Network communication protocol used by the fleet.
61              
62              
63             =head2 B<REQUIRED> ToPort => Int
64              
65             Ending value for a range of allowed port numbers. Port numbers are
66             end-inclusive. This value must be higher than C<FromPort>.
67              
68              
69              
70             =head1 SEE ALSO
71              
72             This class forms part of L<Paws>, describing an object used in L<Paws::GameLift>
73              
74             =head1 BUGS and CONTRIBUTIONS
75              
76             The source code is located here: https://github.com/pplu/aws-sdk-perl
77              
78             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
79              
80             =cut
81