line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::Athena; |
2
|
1
|
|
|
1
|
|
2197
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
sub service { 'athena' } |
4
|
|
|
|
|
|
|
sub version { '2017-05-18' } |
5
|
|
|
|
|
|
|
sub target_prefix { 'AmazonAthena' } |
6
|
|
|
|
|
|
|
sub json_version { "1.1" } |
7
|
|
|
|
|
|
|
has max_attempts => (is => 'ro', isa => 'Int', default => 5); |
8
|
|
|
|
|
|
|
has retry => (is => 'ro', isa => 'HashRef', default => sub { |
9
|
|
|
|
|
|
|
{ base => 'rand', type => 'exponential', growth_factor => 2 } |
10
|
|
|
|
|
|
|
}); |
11
|
|
|
|
|
|
|
has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
12
|
|
|
|
|
|
|
] }); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller', 'Paws::Net::JsonResponse'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub BatchGetNamedQuery { |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::BatchGetNamedQuery', @_); |
20
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
sub BatchGetQueryExecution { |
23
|
|
|
|
|
|
|
my $self = shift; |
24
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::BatchGetQueryExecution', @_); |
25
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
sub CreateNamedQuery { |
28
|
|
|
|
|
|
|
my $self = shift; |
29
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::CreateNamedQuery', @_); |
30
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
sub DeleteNamedQuery { |
33
|
|
|
|
|
|
|
my $self = shift; |
34
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::DeleteNamedQuery', @_); |
35
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
sub GetNamedQuery { |
38
|
|
|
|
|
|
|
my $self = shift; |
39
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::GetNamedQuery', @_); |
40
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
sub GetQueryExecution { |
43
|
|
|
|
|
|
|
my $self = shift; |
44
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::GetQueryExecution', @_); |
45
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
sub GetQueryResults { |
48
|
|
|
|
|
|
|
my $self = shift; |
49
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::GetQueryResults', @_); |
50
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
sub ListNamedQueries { |
53
|
|
|
|
|
|
|
my $self = shift; |
54
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::ListNamedQueries', @_); |
55
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
sub ListQueryExecutions { |
58
|
|
|
|
|
|
|
my $self = shift; |
59
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::ListQueryExecutions', @_); |
60
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
sub StartQueryExecution { |
63
|
|
|
|
|
|
|
my $self = shift; |
64
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::StartQueryExecution', @_); |
65
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
sub StopQueryExecution { |
68
|
|
|
|
|
|
|
my $self = shift; |
69
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::Athena::StopQueryExecution', @_); |
70
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub operations { qw/BatchGetNamedQuery BatchGetQueryExecution CreateNamedQuery DeleteNamedQuery GetNamedQuery GetQueryExecution GetQueryResults ListNamedQueries ListQueryExecutions StartQueryExecution StopQueryExecution / } |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
### main pod documentation begin ### |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 NAME |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Paws::Athena - Perl Interface to AWS Amazon Athena |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 SYNOPSIS |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
use Paws; |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
my $obj = Paws->service('Athena'); |
90
|
|
|
|
|
|
|
my $res = $obj->Method( |
91
|
|
|
|
|
|
|
Arg1 => $val1, |
92
|
|
|
|
|
|
|
Arg2 => [ 'V1', 'V2' ], |
93
|
|
|
|
|
|
|
# if Arg3 is an object, the HashRef will be used as arguments to the constructor |
94
|
|
|
|
|
|
|
# of the arguments type |
95
|
|
|
|
|
|
|
Arg3 => { Att1 => 'Val1' }, |
96
|
|
|
|
|
|
|
# if Arg4 is an array of objects, the HashRefs will be passed as arguments to |
97
|
|
|
|
|
|
|
# the constructor of the arguments type |
98
|
|
|
|
|
|
|
Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], |
99
|
|
|
|
|
|
|
); |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 DESCRIPTION |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Amazon Athena is an interactive query service that lets you use |
104
|
|
|
|
|
|
|
standard SQL to analyze data directly in Amazon S3. You can point |
105
|
|
|
|
|
|
|
Athena at your data in Amazon S3 and run ad-hoc queries and get results |
106
|
|
|
|
|
|
|
in seconds. Athena is serverless, so there is no infrastructure to set |
107
|
|
|
|
|
|
|
up or manage. You pay only for the queries you run. Athena scales |
108
|
|
|
|
|
|
|
automaticallyE<mdash>executing queries in parallelE<mdash>so results |
109
|
|
|
|
|
|
|
are fast, even with large datasets and complex queries. For more |
110
|
|
|
|
|
|
|
information, see What is Amazon Athena in the I<Amazon Athena User |
111
|
|
|
|
|
|
|
Guide>. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
114
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 METHODS |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 BatchGetNamedQuery(NamedQueryIds => ArrayRef[Str|Undef]) |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::BatchGetNamedQuery> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::BatchGetNamedQueryOutput> instance |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Returns the details of a single named query or a list of up to 50 |
125
|
|
|
|
|
|
|
queries, which you provide as an array of query ID strings. Use |
126
|
|
|
|
|
|
|
ListNamedQueries to get the list of named query IDs. If information |
127
|
|
|
|
|
|
|
could not be retrieved for a submitted query ID, information about the |
128
|
|
|
|
|
|
|
query ID submitted is listed under UnprocessedNamedQueryId. Named |
129
|
|
|
|
|
|
|
queries are different from executed queries. Use BatchGetQueryExecution |
130
|
|
|
|
|
|
|
to get details about each unique query execution, and |
131
|
|
|
|
|
|
|
ListQueryExecutions to get a list of query execution IDs. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head2 BatchGetQueryExecution(QueryExecutionIds => ArrayRef[Str|Undef]) |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::BatchGetQueryExecution> |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::BatchGetQueryExecutionOutput> instance |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Returns the details of a single query execution or a list of up to 50 |
141
|
|
|
|
|
|
|
query executions, which you provide as an array of query execution ID |
142
|
|
|
|
|
|
|
strings. To get a list of query execution IDs, use ListQueryExecutions. |
143
|
|
|
|
|
|
|
Query executions are different from named (saved) queries. Use |
144
|
|
|
|
|
|
|
BatchGetNamedQuery to get details about named queries. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=head2 CreateNamedQuery(Database => Str, Name => Str, QueryString => Str, [ClientRequestToken => Str, Description => Str]) |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::CreateNamedQuery> |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::CreateNamedQueryOutput> instance |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Creates a named query. |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
156
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head2 DeleteNamedQuery(NamedQueryId => Str) |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::DeleteNamedQuery> |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::DeleteNamedQueryOutput> instance |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Deletes a named query. |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
168
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head2 GetNamedQuery(NamedQueryId => Str) |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::GetNamedQuery> |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::GetNamedQueryOutput> instance |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Returns information about a single query. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=head2 GetQueryExecution(QueryExecutionId => Str) |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::GetQueryExecution> |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::GetQueryExecutionOutput> instance |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
Returns information about a single execution of a query. Each time a |
187
|
|
|
|
|
|
|
query executes, information about the query execution is saved with a |
188
|
|
|
|
|
|
|
unique ID. |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=head2 GetQueryResults(QueryExecutionId => Str, [MaxResults => Int, NextToken => Str]) |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::GetQueryResults> |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::GetQueryResultsOutput> instance |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
Returns the results of a single query execution specified by |
198
|
|
|
|
|
|
|
C<QueryExecutionId>. This request does not execute the query but |
199
|
|
|
|
|
|
|
returns results. Use StartQueryExecution to run a query. |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 ListNamedQueries([MaxResults => Int, NextToken => Str]) |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::ListNamedQueries> |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::ListNamedQueriesOutput> instance |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
Provides a list of all available query IDs. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
211
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=head2 ListQueryExecutions([MaxResults => Int, NextToken => Str]) |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::ListQueryExecutions> |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::ListQueryExecutionsOutput> instance |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
Provides a list of all available query execution IDs. |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
223
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=head2 StartQueryExecution(QueryString => Str, ResultConfiguration => L<Paws::Athena::ResultConfiguration>, [ClientRequestToken => Str, QueryExecutionContext => L<Paws::Athena::QueryExecutionContext>]) |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::StartQueryExecution> |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::StartQueryExecutionOutput> instance |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
Runs (executes) the SQL query statements contained in the C<Query> |
233
|
|
|
|
|
|
|
string. |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
236
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head2 StopQueryExecution(QueryExecutionId => Str) |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::Athena::StopQueryExecution> |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
Returns: a L<Paws::Athena::StopQueryExecutionOutput> instance |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
Stops a query execution. |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
For code samples using the AWS SDK for Java, see Examples and Code |
248
|
|
|
|
|
|
|
Samples in the I<Amazon Athena User Guide>. |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
=head1 PAGINATORS |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
Paginator methods are helpers that repetively call methods that return partial results |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=head1 SEE ALSO |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
This service class forms part of L<Paws> |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
267
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
=cut |
271
|
|
|
|
|
|
|
|