blib/lib/Paws/Lightsail/GetRelationalDatabaseLogEvents.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lightsail::GetRelationalDatabaseLogEvents;
3 use Moose;
4 has EndTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'endTime' );
5 has LogStreamName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logStreamName' , required => 1);
6 has PageToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'pageToken' );
7 has RelationalDatabaseName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'relationalDatabaseName' , required => 1);
8 has StartFromHead => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'startFromHead' );
9 has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetRelationalDatabaseLogEvents');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::GetRelationalDatabaseLogEventsResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Lightsail::GetRelationalDatabaseLogEvents - Arguments for method GetRelationalDatabaseLogEvents on L<Paws::Lightsail>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method GetRelationalDatabaseLogEvents on the
27 L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class
28 as arguments to method GetRelationalDatabaseLogEvents.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetRelationalDatabaseLogEvents.
31  
32 =head1 SYNOPSIS
33  
34 my $lightsail = Paws->service('Lightsail');
35 my $GetRelationalDatabaseLogEventsResult =
36 $lightsail->GetRelationalDatabaseLogEvents(
37 LogStreamName => 'Mystring',
38 RelationalDatabaseName => 'MyResourceName',
39 EndTime => '1970-01-01T01:00:00', # OPTIONAL
40 PageToken => 'Mystring', # OPTIONAL
41 StartFromHead => 1, # OPTIONAL
42 StartTime => '1970-01-01T01:00:00', # OPTIONAL
43 );
44  
45 # Results:
46 my $NextBackwardToken =
47 $GetRelationalDatabaseLogEventsResult->NextBackwardToken;
48 my $NextForwardToken =
49 $GetRelationalDatabaseLogEventsResult->NextForwardToken;
50 my $ResourceLogEvents =
51 $GetRelationalDatabaseLogEventsResult->ResourceLogEvents;
52  
53 # Returns a L<Paws::Lightsail::GetRelationalDatabaseLogEventsResult> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/GetRelationalDatabaseLogEvents>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 EndTime => Str
62  
63 The end of the time interval from which to get log events.
64  
65 Constraints:
66  
67 =over
68  
69 =item *
70  
71 Specified in Coordinated Universal Time (UTC).
72  
73 =item *
74  
75 Specified in the Unix time format.
76  
77 For example, if you wish to use an end time of October 1, 2018, at 8 PM
78 UTC, then you input C<1538424000> as the end time.
79  
80 =back
81  
82  
83  
84  
85 =head2 B<REQUIRED> LogStreamName => Str
86  
87 The name of the log stream.
88  
89 Use the C<get relational database log streams> operation to get a list
90 of available log streams.
91  
92  
93  
94 =head2 PageToken => Str
95  
96 The token to advance to the next or previous page of results from your
97 request.
98  
99 To get a page token, perform an initial
100 C<GetRelationalDatabaseLogEvents> request. If your results are
101 paginated, the response will return a next forward token and/or next
102 backward token that you can specify as the page token in a subsequent
103 request.
104  
105  
106  
107 =head2 B<REQUIRED> RelationalDatabaseName => Str
108  
109 The name of your database for which to get log events.
110  
111  
112  
113 =head2 StartFromHead => Bool
114  
115 Parameter to specify if the log should start from head or tail. If
116 C<true> is specified, the log event starts from the head of the log. If
117 C<false> is specified, the log event starts from the tail of the log.
118  
119 For PostgreSQL, the default value of C<false> is the only option
120 available.
121  
122  
123  
124 =head2 StartTime => Str
125  
126 The start of the time interval from which to get log events.
127  
128 Constraints:
129  
130 =over
131  
132 =item *
133  
134 Specified in Coordinated Universal Time (UTC).
135  
136 =item *
137  
138 Specified in the Unix time format.
139  
140 For example, if you wish to use a start time of October 1, 2018, at 8
141 PM UTC, then you input C<1538424000> as the start time.
142  
143 =back
144  
145  
146  
147  
148  
149 =head1 SEE ALSO
150  
151 This class forms part of L<Paws>, documenting arguments for method GetRelationalDatabaseLogEvents in L<Paws::Lightsail>
152  
153 =head1 BUGS and CONTRIBUTIONS
154  
155 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
156  
157 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
158  
159 =cut
160