File Coverage

blib/lib/Paws/Lightsail/InstancePortInfo.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::Lightsail::InstancePortInfo;
2 1     1   626 use Moose;
  1         3  
  1         10  
3             has AccessDirection => (is => 'ro', isa => 'Str', request_name => 'accessDirection', traits => ['NameInRequest']);
4             has AccessFrom => (is => 'ro', isa => 'Str', request_name => 'accessFrom', traits => ['NameInRequest']);
5             has AccessType => (is => 'ro', isa => 'Str', request_name => 'accessType', traits => ['NameInRequest']);
6             has CommonName => (is => 'ro', isa => 'Str', request_name => 'commonName', traits => ['NameInRequest']);
7             has FromPort => (is => 'ro', isa => 'Int', request_name => 'fromPort', traits => ['NameInRequest']);
8             has Protocol => (is => 'ro', isa => 'Str', request_name => 'protocol', traits => ['NameInRequest']);
9             has ToPort => (is => 'ro', isa => 'Int', request_name => 'toPort', traits => ['NameInRequest']);
10             1;
11              
12             ### main pod documentation begin ###
13              
14             =head1 NAME
15              
16             Paws::Lightsail::InstancePortInfo
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::Lightsail::InstancePortInfo object:
28              
29             $service_obj->Method(Att1 => { AccessDirection => $value, ..., ToPort => $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::Lightsail::InstancePortInfo object:
34              
35             $result = $service_obj->Method(...);
36             $result->Att1->AccessDirection
37              
38             =head1 DESCRIPTION
39              
40             Describes information about the instance ports.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 AccessDirection => Str
46              
47             The access direction (C<inbound> or C<outbound>).
48              
49              
50             =head2 AccessFrom => Str
51              
52             The location from which access is allowed (e.g., C<Anywhere
53             (0.0.0.0/0)>).
54              
55              
56             =head2 AccessType => Str
57              
58             The type of access (C<Public> or C<Private>).
59              
60              
61             =head2 CommonName => Str
62              
63             The common name.
64              
65              
66             =head2 FromPort => Int
67              
68             The first port in the range.
69              
70              
71             =head2 Protocol => Str
72              
73             The protocol being used. Can be one of the following.
74              
75             =over
76              
77             =item *
78              
79             C<tcp> - Transmission Control Protocol (TCP) provides reliable,
80             ordered, and error-checked delivery of streamed data between
81             applications running on hosts communicating by an IP network. If you
82             have an application that doesn't require reliable data stream service,
83             use UDP instead.
84              
85             =item *
86              
87             C<all> - All transport layer protocol types. For more general
88             information, see Transport layer on Wikipedia.
89              
90             =item *
91              
92             C<udp> - With User Datagram Protocol (UDP), computer applications can
93             send messages (or datagrams) to other hosts on an Internet Protocol
94             (IP) network. Prior communications are not required to set up
95             transmission channels or data paths. Applications that don't require
96             reliable data stream service can use UDP, which provides a
97             connectionless datagram service that emphasizes reduced latency over
98             reliability. If you do require reliable data stream service, use TCP
99             instead.
100              
101             =back
102              
103              
104              
105             =head2 ToPort => Int
106              
107             The last port in the range.
108              
109              
110              
111             =head1 SEE ALSO
112              
113             This class forms part of L<Paws>, describing an object used in L<Paws::Lightsail>
114              
115             =head1 BUGS and CONTRIBUTIONS
116              
117             The source code is located here: https://github.com/pplu/aws-sdk-perl
118              
119             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
120              
121             =cut
122