aws-sdk-athena 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-athena.rb +47 -0
- data/lib/aws-sdk-athena/client.rb +697 -0
- data/lib/aws-sdk-athena/client_api.rb +401 -0
- data/lib/aws-sdk-athena/customizations.rb +0 -0
- data/lib/aws-sdk-athena/errors.rb +14 -0
- data/lib/aws-sdk-athena/resource.rb +23 -0
- data/lib/aws-sdk-athena/types.rb +830 -0
- metadata +80 -0
@@ -0,0 +1,401 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Athena
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
BatchGetNamedQueryInput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryInput')
|
15
|
+
BatchGetNamedQueryOutput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryOutput')
|
16
|
+
BatchGetQueryExecutionInput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionInput')
|
17
|
+
BatchGetQueryExecutionOutput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionOutput')
|
18
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
|
+
ColumnInfo = Shapes::StructureShape.new(name: 'ColumnInfo')
|
20
|
+
ColumnInfoList = Shapes::ListShape.new(name: 'ColumnInfoList')
|
21
|
+
ColumnNullable = Shapes::StringShape.new(name: 'ColumnNullable')
|
22
|
+
CreateNamedQueryInput = Shapes::StructureShape.new(name: 'CreateNamedQueryInput')
|
23
|
+
CreateNamedQueryOutput = Shapes::StructureShape.new(name: 'CreateNamedQueryOutput')
|
24
|
+
DatabaseString = Shapes::StringShape.new(name: 'DatabaseString')
|
25
|
+
Date = Shapes::TimestampShape.new(name: 'Date')
|
26
|
+
Datum = Shapes::StructureShape.new(name: 'Datum')
|
27
|
+
DeleteNamedQueryInput = Shapes::StructureShape.new(name: 'DeleteNamedQueryInput')
|
28
|
+
DeleteNamedQueryOutput = Shapes::StructureShape.new(name: 'DeleteNamedQueryOutput')
|
29
|
+
DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
|
30
|
+
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
31
|
+
EncryptionOption = Shapes::StringShape.new(name: 'EncryptionOption')
|
32
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
33
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
34
|
+
GetNamedQueryInput = Shapes::StructureShape.new(name: 'GetNamedQueryInput')
|
35
|
+
GetNamedQueryOutput = Shapes::StructureShape.new(name: 'GetNamedQueryOutput')
|
36
|
+
GetQueryExecutionInput = Shapes::StructureShape.new(name: 'GetQueryExecutionInput')
|
37
|
+
GetQueryExecutionOutput = Shapes::StructureShape.new(name: 'GetQueryExecutionOutput')
|
38
|
+
GetQueryResultsInput = Shapes::StructureShape.new(name: 'GetQueryResultsInput')
|
39
|
+
GetQueryResultsOutput = Shapes::StructureShape.new(name: 'GetQueryResultsOutput')
|
40
|
+
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
41
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
42
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
43
|
+
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
44
|
+
ListNamedQueriesInput = Shapes::StructureShape.new(name: 'ListNamedQueriesInput')
|
45
|
+
ListNamedQueriesOutput = Shapes::StructureShape.new(name: 'ListNamedQueriesOutput')
|
46
|
+
ListQueryExecutionsInput = Shapes::StructureShape.new(name: 'ListQueryExecutionsInput')
|
47
|
+
ListQueryExecutionsOutput = Shapes::StructureShape.new(name: 'ListQueryExecutionsOutput')
|
48
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
49
|
+
MaxNamedQueriesCount = Shapes::IntegerShape.new(name: 'MaxNamedQueriesCount')
|
50
|
+
MaxQueryExecutionsCount = Shapes::IntegerShape.new(name: 'MaxQueryExecutionsCount')
|
51
|
+
MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
|
52
|
+
NameString = Shapes::StringShape.new(name: 'NameString')
|
53
|
+
NamedQuery = Shapes::StructureShape.new(name: 'NamedQuery')
|
54
|
+
NamedQueryId = Shapes::StringShape.new(name: 'NamedQueryId')
|
55
|
+
NamedQueryIdList = Shapes::ListShape.new(name: 'NamedQueryIdList')
|
56
|
+
NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
|
57
|
+
QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
|
58
|
+
QueryExecutionContext = Shapes::StructureShape.new(name: 'QueryExecutionContext')
|
59
|
+
QueryExecutionId = Shapes::StringShape.new(name: 'QueryExecutionId')
|
60
|
+
QueryExecutionIdList = Shapes::ListShape.new(name: 'QueryExecutionIdList')
|
61
|
+
QueryExecutionList = Shapes::ListShape.new(name: 'QueryExecutionList')
|
62
|
+
QueryExecutionState = Shapes::StringShape.new(name: 'QueryExecutionState')
|
63
|
+
QueryExecutionStatistics = Shapes::StructureShape.new(name: 'QueryExecutionStatistics')
|
64
|
+
QueryExecutionStatus = Shapes::StructureShape.new(name: 'QueryExecutionStatus')
|
65
|
+
QueryString = Shapes::StringShape.new(name: 'QueryString')
|
66
|
+
ResultConfiguration = Shapes::StructureShape.new(name: 'ResultConfiguration')
|
67
|
+
ResultSet = Shapes::StructureShape.new(name: 'ResultSet')
|
68
|
+
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
69
|
+
Row = Shapes::StructureShape.new(name: 'Row')
|
70
|
+
RowList = Shapes::ListShape.new(name: 'RowList')
|
71
|
+
StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
|
72
|
+
StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
|
73
|
+
StopQueryExecutionInput = Shapes::StructureShape.new(name: 'StopQueryExecutionInput')
|
74
|
+
StopQueryExecutionOutput = Shapes::StructureShape.new(name: 'StopQueryExecutionOutput')
|
75
|
+
String = Shapes::StringShape.new(name: 'String')
|
76
|
+
ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
|
77
|
+
Token = Shapes::StringShape.new(name: 'Token')
|
78
|
+
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
79
|
+
UnprocessedNamedQueryId = Shapes::StructureShape.new(name: 'UnprocessedNamedQueryId')
|
80
|
+
UnprocessedNamedQueryIdList = Shapes::ListShape.new(name: 'UnprocessedNamedQueryIdList')
|
81
|
+
UnprocessedQueryExecutionId = Shapes::StructureShape.new(name: 'UnprocessedQueryExecutionId')
|
82
|
+
UnprocessedQueryExecutionIdList = Shapes::ListShape.new(name: 'UnprocessedQueryExecutionIdList')
|
83
|
+
datumList = Shapes::ListShape.new(name: 'datumList')
|
84
|
+
datumString = Shapes::StringShape.new(name: 'datumString')
|
85
|
+
|
86
|
+
BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
|
87
|
+
BatchGetNamedQueryInput.struct_class = Types::BatchGetNamedQueryInput
|
88
|
+
|
89
|
+
BatchGetNamedQueryOutput.add_member(:named_queries, Shapes::ShapeRef.new(shape: NamedQueryList, location_name: "NamedQueries"))
|
90
|
+
BatchGetNamedQueryOutput.add_member(:unprocessed_named_query_ids, Shapes::ShapeRef.new(shape: UnprocessedNamedQueryIdList, location_name: "UnprocessedNamedQueryIds"))
|
91
|
+
BatchGetNamedQueryOutput.struct_class = Types::BatchGetNamedQueryOutput
|
92
|
+
|
93
|
+
BatchGetQueryExecutionInput.add_member(:query_execution_ids, Shapes::ShapeRef.new(shape: QueryExecutionIdList, required: true, location_name: "QueryExecutionIds"))
|
94
|
+
BatchGetQueryExecutionInput.struct_class = Types::BatchGetQueryExecutionInput
|
95
|
+
|
96
|
+
BatchGetQueryExecutionOutput.add_member(:query_executions, Shapes::ShapeRef.new(shape: QueryExecutionList, location_name: "QueryExecutions"))
|
97
|
+
BatchGetQueryExecutionOutput.add_member(:unprocessed_query_execution_ids, Shapes::ShapeRef.new(shape: UnprocessedQueryExecutionIdList, location_name: "UnprocessedQueryExecutionIds"))
|
98
|
+
BatchGetQueryExecutionOutput.struct_class = Types::BatchGetQueryExecutionOutput
|
99
|
+
|
100
|
+
ColumnInfo.add_member(:catalog_name, Shapes::ShapeRef.new(shape: String, location_name: "CatalogName"))
|
101
|
+
ColumnInfo.add_member(:schema_name, Shapes::ShapeRef.new(shape: String, location_name: "SchemaName"))
|
102
|
+
ColumnInfo.add_member(:table_name, Shapes::ShapeRef.new(shape: String, location_name: "TableName"))
|
103
|
+
ColumnInfo.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
|
104
|
+
ColumnInfo.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
|
105
|
+
ColumnInfo.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Type"))
|
106
|
+
ColumnInfo.add_member(:precision, Shapes::ShapeRef.new(shape: Integer, location_name: "Precision"))
|
107
|
+
ColumnInfo.add_member(:scale, Shapes::ShapeRef.new(shape: Integer, location_name: "Scale"))
|
108
|
+
ColumnInfo.add_member(:nullable, Shapes::ShapeRef.new(shape: ColumnNullable, location_name: "Nullable"))
|
109
|
+
ColumnInfo.add_member(:case_sensitive, Shapes::ShapeRef.new(shape: Boolean, location_name: "CaseSensitive"))
|
110
|
+
ColumnInfo.struct_class = Types::ColumnInfo
|
111
|
+
|
112
|
+
ColumnInfoList.member = Shapes::ShapeRef.new(shape: ColumnInfo)
|
113
|
+
|
114
|
+
CreateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
115
|
+
CreateNamedQueryInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
116
|
+
CreateNamedQueryInput.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, required: true, location_name: "Database"))
|
117
|
+
CreateNamedQueryInput.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
118
|
+
CreateNamedQueryInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
119
|
+
CreateNamedQueryInput.struct_class = Types::CreateNamedQueryInput
|
120
|
+
|
121
|
+
CreateNamedQueryOutput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, location_name: "NamedQueryId"))
|
122
|
+
CreateNamedQueryOutput.struct_class = Types::CreateNamedQueryOutput
|
123
|
+
|
124
|
+
Datum.add_member(:var_char_value, Shapes::ShapeRef.new(shape: datumString, location_name: "VarCharValue"))
|
125
|
+
Datum.struct_class = Types::Datum
|
126
|
+
|
127
|
+
DeleteNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId", metadata: {"idempotencyToken"=>true}))
|
128
|
+
DeleteNamedQueryInput.struct_class = Types::DeleteNamedQueryInput
|
129
|
+
|
130
|
+
DeleteNamedQueryOutput.struct_class = Types::DeleteNamedQueryOutput
|
131
|
+
|
132
|
+
EncryptionConfiguration.add_member(:encryption_option, Shapes::ShapeRef.new(shape: EncryptionOption, required: true, location_name: "EncryptionOption"))
|
133
|
+
EncryptionConfiguration.add_member(:kms_key, Shapes::ShapeRef.new(shape: String, location_name: "KmsKey"))
|
134
|
+
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
135
|
+
|
136
|
+
GetNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId"))
|
137
|
+
GetNamedQueryInput.struct_class = Types::GetNamedQueryInput
|
138
|
+
|
139
|
+
GetNamedQueryOutput.add_member(:named_query, Shapes::ShapeRef.new(shape: NamedQuery, location_name: "NamedQuery"))
|
140
|
+
GetNamedQueryOutput.struct_class = Types::GetNamedQueryOutput
|
141
|
+
|
142
|
+
GetQueryExecutionInput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, required: true, location_name: "QueryExecutionId"))
|
143
|
+
GetQueryExecutionInput.struct_class = Types::GetQueryExecutionInput
|
144
|
+
|
145
|
+
GetQueryExecutionOutput.add_member(:query_execution, Shapes::ShapeRef.new(shape: QueryExecution, location_name: "QueryExecution"))
|
146
|
+
GetQueryExecutionOutput.struct_class = Types::GetQueryExecutionOutput
|
147
|
+
|
148
|
+
GetQueryResultsInput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, required: true, location_name: "QueryExecutionId"))
|
149
|
+
GetQueryResultsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
150
|
+
GetQueryResultsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxQueryResults, location_name: "MaxResults"))
|
151
|
+
GetQueryResultsInput.struct_class = Types::GetQueryResultsInput
|
152
|
+
|
153
|
+
GetQueryResultsOutput.add_member(:result_set, Shapes::ShapeRef.new(shape: ResultSet, location_name: "ResultSet"))
|
154
|
+
GetQueryResultsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
155
|
+
GetQueryResultsOutput.struct_class = Types::GetQueryResultsOutput
|
156
|
+
|
157
|
+
ListNamedQueriesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
158
|
+
ListNamedQueriesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxNamedQueriesCount, location_name: "MaxResults"))
|
159
|
+
ListNamedQueriesInput.struct_class = Types::ListNamedQueriesInput
|
160
|
+
|
161
|
+
ListNamedQueriesOutput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, location_name: "NamedQueryIds"))
|
162
|
+
ListNamedQueriesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
163
|
+
ListNamedQueriesOutput.struct_class = Types::ListNamedQueriesOutput
|
164
|
+
|
165
|
+
ListQueryExecutionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
166
|
+
ListQueryExecutionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxQueryExecutionsCount, location_name: "MaxResults"))
|
167
|
+
ListQueryExecutionsInput.struct_class = Types::ListQueryExecutionsInput
|
168
|
+
|
169
|
+
ListQueryExecutionsOutput.add_member(:query_execution_ids, Shapes::ShapeRef.new(shape: QueryExecutionIdList, location_name: "QueryExecutionIds"))
|
170
|
+
ListQueryExecutionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
171
|
+
ListQueryExecutionsOutput.struct_class = Types::ListQueryExecutionsOutput
|
172
|
+
|
173
|
+
NamedQuery.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
174
|
+
NamedQuery.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
175
|
+
NamedQuery.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, required: true, location_name: "Database"))
|
176
|
+
NamedQuery.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
177
|
+
NamedQuery.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, location_name: "NamedQueryId"))
|
178
|
+
NamedQuery.struct_class = Types::NamedQuery
|
179
|
+
|
180
|
+
NamedQueryIdList.member = Shapes::ShapeRef.new(shape: NamedQueryId)
|
181
|
+
|
182
|
+
NamedQueryList.member = Shapes::ShapeRef.new(shape: NamedQuery)
|
183
|
+
|
184
|
+
QueryExecution.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
185
|
+
QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
|
186
|
+
QueryExecution.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
|
187
|
+
QueryExecution.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
|
188
|
+
QueryExecution.add_member(:status, Shapes::ShapeRef.new(shape: QueryExecutionStatus, location_name: "Status"))
|
189
|
+
QueryExecution.add_member(:statistics, Shapes::ShapeRef.new(shape: QueryExecutionStatistics, location_name: "Statistics"))
|
190
|
+
QueryExecution.struct_class = Types::QueryExecution
|
191
|
+
|
192
|
+
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
193
|
+
QueryExecutionContext.struct_class = Types::QueryExecutionContext
|
194
|
+
|
195
|
+
QueryExecutionIdList.member = Shapes::ShapeRef.new(shape: QueryExecutionId)
|
196
|
+
|
197
|
+
QueryExecutionList.member = Shapes::ShapeRef.new(shape: QueryExecution)
|
198
|
+
|
199
|
+
QueryExecutionStatistics.add_member(:engine_execution_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EngineExecutionTimeInMillis"))
|
200
|
+
QueryExecutionStatistics.add_member(:data_scanned_in_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "DataScannedInBytes"))
|
201
|
+
QueryExecutionStatistics.struct_class = Types::QueryExecutionStatistics
|
202
|
+
|
203
|
+
QueryExecutionStatus.add_member(:state, Shapes::ShapeRef.new(shape: QueryExecutionState, location_name: "State"))
|
204
|
+
QueryExecutionStatus.add_member(:state_change_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateChangeReason"))
|
205
|
+
QueryExecutionStatus.add_member(:submission_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "SubmissionDateTime"))
|
206
|
+
QueryExecutionStatus.add_member(:completion_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CompletionDateTime"))
|
207
|
+
QueryExecutionStatus.struct_class = Types::QueryExecutionStatus
|
208
|
+
|
209
|
+
ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "OutputLocation"))
|
210
|
+
ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
211
|
+
ResultConfiguration.struct_class = Types::ResultConfiguration
|
212
|
+
|
213
|
+
ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
|
214
|
+
ResultSet.add_member(:result_set_metadata, Shapes::ShapeRef.new(shape: ResultSetMetadata, location_name: "ResultSetMetadata"))
|
215
|
+
ResultSet.struct_class = Types::ResultSet
|
216
|
+
|
217
|
+
ResultSetMetadata.add_member(:column_info, Shapes::ShapeRef.new(shape: ColumnInfoList, location_name: "ColumnInfo"))
|
218
|
+
ResultSetMetadata.struct_class = Types::ResultSetMetadata
|
219
|
+
|
220
|
+
Row.add_member(:data, Shapes::ShapeRef.new(shape: datumList, location_name: "Data"))
|
221
|
+
Row.struct_class = Types::Row
|
222
|
+
|
223
|
+
RowList.member = Shapes::ShapeRef.new(shape: Row)
|
224
|
+
|
225
|
+
StartQueryExecutionInput.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
226
|
+
StartQueryExecutionInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
227
|
+
StartQueryExecutionInput.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
|
228
|
+
StartQueryExecutionInput.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, required: true, location_name: "ResultConfiguration"))
|
229
|
+
StartQueryExecutionInput.struct_class = Types::StartQueryExecutionInput
|
230
|
+
|
231
|
+
StartQueryExecutionOutput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
232
|
+
StartQueryExecutionOutput.struct_class = Types::StartQueryExecutionOutput
|
233
|
+
|
234
|
+
StopQueryExecutionInput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, required: true, location_name: "QueryExecutionId", metadata: {"idempotencyToken"=>true}))
|
235
|
+
StopQueryExecutionInput.struct_class = Types::StopQueryExecutionInput
|
236
|
+
|
237
|
+
StopQueryExecutionOutput.struct_class = Types::StopQueryExecutionOutput
|
238
|
+
|
239
|
+
UnprocessedNamedQueryId.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, location_name: "NamedQueryId"))
|
240
|
+
UnprocessedNamedQueryId.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
241
|
+
UnprocessedNamedQueryId.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
242
|
+
UnprocessedNamedQueryId.struct_class = Types::UnprocessedNamedQueryId
|
243
|
+
|
244
|
+
UnprocessedNamedQueryIdList.member = Shapes::ShapeRef.new(shape: UnprocessedNamedQueryId)
|
245
|
+
|
246
|
+
UnprocessedQueryExecutionId.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
247
|
+
UnprocessedQueryExecutionId.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
248
|
+
UnprocessedQueryExecutionId.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
249
|
+
UnprocessedQueryExecutionId.struct_class = Types::UnprocessedQueryExecutionId
|
250
|
+
|
251
|
+
UnprocessedQueryExecutionIdList.member = Shapes::ShapeRef.new(shape: UnprocessedQueryExecutionId)
|
252
|
+
|
253
|
+
datumList.member = Shapes::ShapeRef.new(shape: Datum)
|
254
|
+
|
255
|
+
|
256
|
+
# @api private
|
257
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
258
|
+
|
259
|
+
api.version = "2017-05-18"
|
260
|
+
|
261
|
+
api.metadata = {
|
262
|
+
"endpointPrefix" => "athena",
|
263
|
+
"jsonVersion" => "1.1",
|
264
|
+
"protocol" => "json",
|
265
|
+
"serviceFullName" => "Amazon Athena",
|
266
|
+
"signatureVersion" => "v4",
|
267
|
+
"targetPrefix" => "AmazonAthena",
|
268
|
+
}
|
269
|
+
|
270
|
+
api.add_operation(:batch_get_named_query, Seahorse::Model::Operation.new.tap do |o|
|
271
|
+
o.name = "BatchGetNamedQuery"
|
272
|
+
o.http_method = "POST"
|
273
|
+
o.http_request_uri = "/"
|
274
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetNamedQueryInput)
|
275
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetNamedQueryOutput)
|
276
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
278
|
+
end)
|
279
|
+
|
280
|
+
api.add_operation(:batch_get_query_execution, Seahorse::Model::Operation.new.tap do |o|
|
281
|
+
o.name = "BatchGetQueryExecution"
|
282
|
+
o.http_method = "POST"
|
283
|
+
o.http_request_uri = "/"
|
284
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetQueryExecutionInput)
|
285
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetQueryExecutionOutput)
|
286
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
287
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
288
|
+
end)
|
289
|
+
|
290
|
+
api.add_operation(:create_named_query, Seahorse::Model::Operation.new.tap do |o|
|
291
|
+
o.name = "CreateNamedQuery"
|
292
|
+
o.http_method = "POST"
|
293
|
+
o.http_request_uri = "/"
|
294
|
+
o.input = Shapes::ShapeRef.new(shape: CreateNamedQueryInput)
|
295
|
+
o.output = Shapes::ShapeRef.new(shape: CreateNamedQueryOutput)
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
298
|
+
end)
|
299
|
+
|
300
|
+
api.add_operation(:delete_named_query, Seahorse::Model::Operation.new.tap do |o|
|
301
|
+
o.name = "DeleteNamedQuery"
|
302
|
+
o.http_method = "POST"
|
303
|
+
o.http_request_uri = "/"
|
304
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteNamedQueryInput)
|
305
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteNamedQueryOutput)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
308
|
+
end)
|
309
|
+
|
310
|
+
api.add_operation(:get_named_query, Seahorse::Model::Operation.new.tap do |o|
|
311
|
+
o.name = "GetNamedQuery"
|
312
|
+
o.http_method = "POST"
|
313
|
+
o.http_request_uri = "/"
|
314
|
+
o.input = Shapes::ShapeRef.new(shape: GetNamedQueryInput)
|
315
|
+
o.output = Shapes::ShapeRef.new(shape: GetNamedQueryOutput)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
317
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
318
|
+
end)
|
319
|
+
|
320
|
+
api.add_operation(:get_query_execution, Seahorse::Model::Operation.new.tap do |o|
|
321
|
+
o.name = "GetQueryExecution"
|
322
|
+
o.http_method = "POST"
|
323
|
+
o.http_request_uri = "/"
|
324
|
+
o.input = Shapes::ShapeRef.new(shape: GetQueryExecutionInput)
|
325
|
+
o.output = Shapes::ShapeRef.new(shape: GetQueryExecutionOutput)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
328
|
+
end)
|
329
|
+
|
330
|
+
api.add_operation(:get_query_results, Seahorse::Model::Operation.new.tap do |o|
|
331
|
+
o.name = "GetQueryResults"
|
332
|
+
o.http_method = "POST"
|
333
|
+
o.http_request_uri = "/"
|
334
|
+
o.input = Shapes::ShapeRef.new(shape: GetQueryResultsInput)
|
335
|
+
o.output = Shapes::ShapeRef.new(shape: GetQueryResultsOutput)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
338
|
+
o[:pager] = Aws::Pager.new(
|
339
|
+
limit_key: "max_results",
|
340
|
+
tokens: {
|
341
|
+
"next_token" => "next_token"
|
342
|
+
}
|
343
|
+
)
|
344
|
+
end)
|
345
|
+
|
346
|
+
api.add_operation(:list_named_queries, Seahorse::Model::Operation.new.tap do |o|
|
347
|
+
o.name = "ListNamedQueries"
|
348
|
+
o.http_method = "POST"
|
349
|
+
o.http_request_uri = "/"
|
350
|
+
o.input = Shapes::ShapeRef.new(shape: ListNamedQueriesInput)
|
351
|
+
o.output = Shapes::ShapeRef.new(shape: ListNamedQueriesOutput)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
354
|
+
o[:pager] = Aws::Pager.new(
|
355
|
+
limit_key: "max_results",
|
356
|
+
tokens: {
|
357
|
+
"next_token" => "next_token"
|
358
|
+
}
|
359
|
+
)
|
360
|
+
end)
|
361
|
+
|
362
|
+
api.add_operation(:list_query_executions, Seahorse::Model::Operation.new.tap do |o|
|
363
|
+
o.name = "ListQueryExecutions"
|
364
|
+
o.http_method = "POST"
|
365
|
+
o.http_request_uri = "/"
|
366
|
+
o.input = Shapes::ShapeRef.new(shape: ListQueryExecutionsInput)
|
367
|
+
o.output = Shapes::ShapeRef.new(shape: ListQueryExecutionsOutput)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
370
|
+
o[:pager] = Aws::Pager.new(
|
371
|
+
limit_key: "max_results",
|
372
|
+
tokens: {
|
373
|
+
"next_token" => "next_token"
|
374
|
+
}
|
375
|
+
)
|
376
|
+
end)
|
377
|
+
|
378
|
+
api.add_operation(:start_query_execution, Seahorse::Model::Operation.new.tap do |o|
|
379
|
+
o.name = "StartQueryExecution"
|
380
|
+
o.http_method = "POST"
|
381
|
+
o.http_request_uri = "/"
|
382
|
+
o.input = Shapes::ShapeRef.new(shape: StartQueryExecutionInput)
|
383
|
+
o.output = Shapes::ShapeRef.new(shape: StartQueryExecutionOutput)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
387
|
+
end)
|
388
|
+
|
389
|
+
api.add_operation(:stop_query_execution, Seahorse::Model::Operation.new.tap do |o|
|
390
|
+
o.name = "StopQueryExecution"
|
391
|
+
o.http_method = "POST"
|
392
|
+
o.http_request_uri = "/"
|
393
|
+
o.input = Shapes::ShapeRef.new(shape: StopQueryExecutionInput)
|
394
|
+
o.output = Shapes::ShapeRef.new(shape: StopQueryExecutionOutput)
|
395
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
396
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
397
|
+
end)
|
398
|
+
end
|
399
|
+
|
400
|
+
end
|
401
|
+
end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Athena
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Athena
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,830 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Athena
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# @note When making an API call, you may pass BatchGetNamedQueryInput
|
12
|
+
# data as a hash:
|
13
|
+
#
|
14
|
+
# {
|
15
|
+
# named_query_ids: ["NamedQueryId"], # required
|
16
|
+
# }
|
17
|
+
#
|
18
|
+
# @!attribute [rw] named_query_ids
|
19
|
+
# An array of query IDs.
|
20
|
+
# @return [Array<String>]
|
21
|
+
#
|
22
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryInput AWS API Documentation
|
23
|
+
#
|
24
|
+
class BatchGetNamedQueryInput < Struct.new(
|
25
|
+
:named_query_ids)
|
26
|
+
include Aws::Structure
|
27
|
+
end
|
28
|
+
|
29
|
+
# @!attribute [rw] named_queries
|
30
|
+
# Information about the named query IDs submitted.
|
31
|
+
# @return [Array<Types::NamedQuery>]
|
32
|
+
#
|
33
|
+
# @!attribute [rw] unprocessed_named_query_ids
|
34
|
+
# Information about provided query IDs.
|
35
|
+
# @return [Array<Types::UnprocessedNamedQueryId>]
|
36
|
+
#
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryOutput AWS API Documentation
|
38
|
+
#
|
39
|
+
class BatchGetNamedQueryOutput < Struct.new(
|
40
|
+
:named_queries,
|
41
|
+
:unprocessed_named_query_ids)
|
42
|
+
include Aws::Structure
|
43
|
+
end
|
44
|
+
|
45
|
+
# @note When making an API call, you may pass BatchGetQueryExecutionInput
|
46
|
+
# data as a hash:
|
47
|
+
#
|
48
|
+
# {
|
49
|
+
# query_execution_ids: ["QueryExecutionId"], # required
|
50
|
+
# }
|
51
|
+
#
|
52
|
+
# @!attribute [rw] query_execution_ids
|
53
|
+
# An array of query execution IDs.
|
54
|
+
# @return [Array<String>]
|
55
|
+
#
|
56
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionInput AWS API Documentation
|
57
|
+
#
|
58
|
+
class BatchGetQueryExecutionInput < Struct.new(
|
59
|
+
:query_execution_ids)
|
60
|
+
include Aws::Structure
|
61
|
+
end
|
62
|
+
|
63
|
+
# @!attribute [rw] query_executions
|
64
|
+
# Information about a query execution.
|
65
|
+
# @return [Array<Types::QueryExecution>]
|
66
|
+
#
|
67
|
+
# @!attribute [rw] unprocessed_query_execution_ids
|
68
|
+
# Information about the query executions that failed to run.
|
69
|
+
# @return [Array<Types::UnprocessedQueryExecutionId>]
|
70
|
+
#
|
71
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionOutput AWS API Documentation
|
72
|
+
#
|
73
|
+
class BatchGetQueryExecutionOutput < Struct.new(
|
74
|
+
:query_executions,
|
75
|
+
:unprocessed_query_execution_ids)
|
76
|
+
include Aws::Structure
|
77
|
+
end
|
78
|
+
|
79
|
+
# Information about the columns in a query execution result.
|
80
|
+
#
|
81
|
+
# @!attribute [rw] catalog_name
|
82
|
+
# The catalog to which the query results belong.
|
83
|
+
# @return [String]
|
84
|
+
#
|
85
|
+
# @!attribute [rw] schema_name
|
86
|
+
# The schema name (database name) to which the query results belong.
|
87
|
+
# @return [String]
|
88
|
+
#
|
89
|
+
# @!attribute [rw] table_name
|
90
|
+
# The table name for the query results.
|
91
|
+
# @return [String]
|
92
|
+
#
|
93
|
+
# @!attribute [rw] name
|
94
|
+
# The name of the column.
|
95
|
+
# @return [String]
|
96
|
+
#
|
97
|
+
# @!attribute [rw] label
|
98
|
+
# A column label.
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @!attribute [rw] type
|
102
|
+
# The data type of the column.
|
103
|
+
# @return [String]
|
104
|
+
#
|
105
|
+
# @!attribute [rw] precision
|
106
|
+
# For `DECIMAL` data types, specifies the total number of digits, up
|
107
|
+
# to 38. For performance reasons, we recommend up to 18 digits.
|
108
|
+
# @return [Integer]
|
109
|
+
#
|
110
|
+
# @!attribute [rw] scale
|
111
|
+
# For `DECIMAL` data types, specifies the total number of digits in
|
112
|
+
# the fractional part of the value. Defaults to 0.
|
113
|
+
# @return [Integer]
|
114
|
+
#
|
115
|
+
# @!attribute [rw] nullable
|
116
|
+
# Indicates the column's nullable status.
|
117
|
+
# @return [String]
|
118
|
+
#
|
119
|
+
# @!attribute [rw] case_sensitive
|
120
|
+
# Indicates whether values in the column are case-sensitive.
|
121
|
+
# @return [Boolean]
|
122
|
+
#
|
123
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ColumnInfo AWS API Documentation
|
124
|
+
#
|
125
|
+
class ColumnInfo < Struct.new(
|
126
|
+
:catalog_name,
|
127
|
+
:schema_name,
|
128
|
+
:table_name,
|
129
|
+
:name,
|
130
|
+
:label,
|
131
|
+
:type,
|
132
|
+
:precision,
|
133
|
+
:scale,
|
134
|
+
:nullable,
|
135
|
+
:case_sensitive)
|
136
|
+
include Aws::Structure
|
137
|
+
end
|
138
|
+
|
139
|
+
# @note When making an API call, you may pass CreateNamedQueryInput
|
140
|
+
# data as a hash:
|
141
|
+
#
|
142
|
+
# {
|
143
|
+
# name: "NameString", # required
|
144
|
+
# description: "DescriptionString",
|
145
|
+
# database: "DatabaseString", # required
|
146
|
+
# query_string: "QueryString", # required
|
147
|
+
# client_request_token: "IdempotencyToken",
|
148
|
+
# }
|
149
|
+
#
|
150
|
+
# @!attribute [rw] name
|
151
|
+
# The plain language name for the query.
|
152
|
+
# @return [String]
|
153
|
+
#
|
154
|
+
# @!attribute [rw] description
|
155
|
+
# A brief explanation of the query.
|
156
|
+
# @return [String]
|
157
|
+
#
|
158
|
+
# @!attribute [rw] database
|
159
|
+
# The database to which the query belongs.
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @!attribute [rw] query_string
|
163
|
+
# The text of the query itself. In other words, all query statements.
|
164
|
+
# @return [String]
|
165
|
+
#
|
166
|
+
# @!attribute [rw] client_request_token
|
167
|
+
# A unique case-sensitive string used to ensure the request to create
|
168
|
+
# the query is idempotent (executes only once). If another
|
169
|
+
# `CreateNamedQuery` request is received, the same response is
|
170
|
+
# returned and another query is not created. If a parameter has
|
171
|
+
# changed, for example, the `QueryString`, an error is returned.
|
172
|
+
#
|
173
|
+
# This token is listed as not required because AWS SDKs (for example
|
174
|
+
# the AWS SDK for Java) auto-generate the token for users. If you are
|
175
|
+
# not using the AWS SDK or the AWS CLI, you must provide this token or
|
176
|
+
# the action will fail.
|
177
|
+
#
|
178
|
+
# **A suitable default value is auto-generated.** You should normally
|
179
|
+
# not need to pass this option.
|
180
|
+
# @return [String]
|
181
|
+
#
|
182
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryInput AWS API Documentation
|
183
|
+
#
|
184
|
+
class CreateNamedQueryInput < Struct.new(
|
185
|
+
:name,
|
186
|
+
:description,
|
187
|
+
:database,
|
188
|
+
:query_string,
|
189
|
+
:client_request_token)
|
190
|
+
include Aws::Structure
|
191
|
+
end
|
192
|
+
|
193
|
+
# @!attribute [rw] named_query_id
|
194
|
+
# The unique ID of the query.
|
195
|
+
# @return [String]
|
196
|
+
#
|
197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryOutput AWS API Documentation
|
198
|
+
#
|
199
|
+
class CreateNamedQueryOutput < Struct.new(
|
200
|
+
:named_query_id)
|
201
|
+
include Aws::Structure
|
202
|
+
end
|
203
|
+
|
204
|
+
# A piece of data (a field in the table).
|
205
|
+
#
|
206
|
+
# @!attribute [rw] var_char_value
|
207
|
+
# The value of the datum.
|
208
|
+
# @return [String]
|
209
|
+
#
|
210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Datum AWS API Documentation
|
211
|
+
#
|
212
|
+
class Datum < Struct.new(
|
213
|
+
:var_char_value)
|
214
|
+
include Aws::Structure
|
215
|
+
end
|
216
|
+
|
217
|
+
# @note When making an API call, you may pass DeleteNamedQueryInput
|
218
|
+
# data as a hash:
|
219
|
+
#
|
220
|
+
# {
|
221
|
+
# named_query_id: "NamedQueryId", # required
|
222
|
+
# }
|
223
|
+
#
|
224
|
+
# @!attribute [rw] named_query_id
|
225
|
+
# The unique ID of the query to delete.
|
226
|
+
#
|
227
|
+
# **A suitable default value is auto-generated.** You should normally
|
228
|
+
# not need to pass this option.
|
229
|
+
# @return [String]
|
230
|
+
#
|
231
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryInput AWS API Documentation
|
232
|
+
#
|
233
|
+
class DeleteNamedQueryInput < Struct.new(
|
234
|
+
:named_query_id)
|
235
|
+
include Aws::Structure
|
236
|
+
end
|
237
|
+
|
238
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryOutput AWS API Documentation
|
239
|
+
#
|
240
|
+
class DeleteNamedQueryOutput < Aws::EmptyStructure; end
|
241
|
+
|
242
|
+
# If query results are encrypted in Amazon S3, indicates the Amazon S3
|
243
|
+
# encryption option used.
|
244
|
+
#
|
245
|
+
# @note When making an API call, you may pass EncryptionConfiguration
|
246
|
+
# data as a hash:
|
247
|
+
#
|
248
|
+
# {
|
249
|
+
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
250
|
+
# kms_key: "String",
|
251
|
+
# }
|
252
|
+
#
|
253
|
+
# @!attribute [rw] encryption_option
|
254
|
+
# Indicates whether Amazon S3 server-side encryption with Amazon
|
255
|
+
# S3-managed keys (`SSE-S3`), server-side encryption with KMS-managed
|
256
|
+
# keys (`SSE-KMS`), or client-side encryption with KMS-managed keys
|
257
|
+
# (CSE-KMS) is used.
|
258
|
+
# @return [String]
|
259
|
+
#
|
260
|
+
# @!attribute [rw] kms_key
|
261
|
+
# For `SSE-KMS` and `CSE-KMS`, this is the KMS key ARN or ID.
|
262
|
+
# @return [String]
|
263
|
+
#
|
264
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration AWS API Documentation
|
265
|
+
#
|
266
|
+
class EncryptionConfiguration < Struct.new(
|
267
|
+
:encryption_option,
|
268
|
+
:kms_key)
|
269
|
+
include Aws::Structure
|
270
|
+
end
|
271
|
+
|
272
|
+
# @note When making an API call, you may pass GetNamedQueryInput
|
273
|
+
# data as a hash:
|
274
|
+
#
|
275
|
+
# {
|
276
|
+
# named_query_id: "NamedQueryId", # required
|
277
|
+
# }
|
278
|
+
#
|
279
|
+
# @!attribute [rw] named_query_id
|
280
|
+
# The unique ID of the query. Use ListNamedQueries to get query IDs.
|
281
|
+
# @return [String]
|
282
|
+
#
|
283
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryInput AWS API Documentation
|
284
|
+
#
|
285
|
+
class GetNamedQueryInput < Struct.new(
|
286
|
+
:named_query_id)
|
287
|
+
include Aws::Structure
|
288
|
+
end
|
289
|
+
|
290
|
+
# @!attribute [rw] named_query
|
291
|
+
# Information about the query.
|
292
|
+
# @return [Types::NamedQuery]
|
293
|
+
#
|
294
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryOutput AWS API Documentation
|
295
|
+
#
|
296
|
+
class GetNamedQueryOutput < Struct.new(
|
297
|
+
:named_query)
|
298
|
+
include Aws::Structure
|
299
|
+
end
|
300
|
+
|
301
|
+
# @note When making an API call, you may pass GetQueryExecutionInput
|
302
|
+
# data as a hash:
|
303
|
+
#
|
304
|
+
# {
|
305
|
+
# query_execution_id: "QueryExecutionId", # required
|
306
|
+
# }
|
307
|
+
#
|
308
|
+
# @!attribute [rw] query_execution_id
|
309
|
+
# The unique ID of the query execution.
|
310
|
+
# @return [String]
|
311
|
+
#
|
312
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionInput AWS API Documentation
|
313
|
+
#
|
314
|
+
class GetQueryExecutionInput < Struct.new(
|
315
|
+
:query_execution_id)
|
316
|
+
include Aws::Structure
|
317
|
+
end
|
318
|
+
|
319
|
+
# @!attribute [rw] query_execution
|
320
|
+
# Information about the query execution.
|
321
|
+
# @return [Types::QueryExecution]
|
322
|
+
#
|
323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionOutput AWS API Documentation
|
324
|
+
#
|
325
|
+
class GetQueryExecutionOutput < Struct.new(
|
326
|
+
:query_execution)
|
327
|
+
include Aws::Structure
|
328
|
+
end
|
329
|
+
|
330
|
+
# @note When making an API call, you may pass GetQueryResultsInput
|
331
|
+
# data as a hash:
|
332
|
+
#
|
333
|
+
# {
|
334
|
+
# query_execution_id: "QueryExecutionId", # required
|
335
|
+
# next_token: "Token",
|
336
|
+
# max_results: 1,
|
337
|
+
# }
|
338
|
+
#
|
339
|
+
# @!attribute [rw] query_execution_id
|
340
|
+
# The unique ID of the query execution.
|
341
|
+
# @return [String]
|
342
|
+
#
|
343
|
+
# @!attribute [rw] next_token
|
344
|
+
# The token that specifies where to start pagination if a previous
|
345
|
+
# request was truncated.
|
346
|
+
# @return [String]
|
347
|
+
#
|
348
|
+
# @!attribute [rw] max_results
|
349
|
+
# The maximum number of results (rows) to return in this request.
|
350
|
+
# @return [Integer]
|
351
|
+
#
|
352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsInput AWS API Documentation
|
353
|
+
#
|
354
|
+
class GetQueryResultsInput < Struct.new(
|
355
|
+
:query_execution_id,
|
356
|
+
:next_token,
|
357
|
+
:max_results)
|
358
|
+
include Aws::Structure
|
359
|
+
end
|
360
|
+
|
361
|
+
# @!attribute [rw] result_set
|
362
|
+
# The results of the query execution.
|
363
|
+
# @return [Types::ResultSet]
|
364
|
+
#
|
365
|
+
# @!attribute [rw] next_token
|
366
|
+
# A token to be used by the next request if this request is truncated.
|
367
|
+
# @return [String]
|
368
|
+
#
|
369
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsOutput AWS API Documentation
|
370
|
+
#
|
371
|
+
class GetQueryResultsOutput < Struct.new(
|
372
|
+
:result_set,
|
373
|
+
:next_token)
|
374
|
+
include Aws::Structure
|
375
|
+
end
|
376
|
+
|
377
|
+
# @note When making an API call, you may pass ListNamedQueriesInput
|
378
|
+
# data as a hash:
|
379
|
+
#
|
380
|
+
# {
|
381
|
+
# next_token: "Token",
|
382
|
+
# max_results: 1,
|
383
|
+
# }
|
384
|
+
#
|
385
|
+
# @!attribute [rw] next_token
|
386
|
+
# The token that specifies where to start pagination if a previous
|
387
|
+
# request was truncated.
|
388
|
+
# @return [String]
|
389
|
+
#
|
390
|
+
# @!attribute [rw] max_results
|
391
|
+
# The maximum number of queries to return in this request.
|
392
|
+
# @return [Integer]
|
393
|
+
#
|
394
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesInput AWS API Documentation
|
395
|
+
#
|
396
|
+
class ListNamedQueriesInput < Struct.new(
|
397
|
+
:next_token,
|
398
|
+
:max_results)
|
399
|
+
include Aws::Structure
|
400
|
+
end
|
401
|
+
|
402
|
+
# @!attribute [rw] named_query_ids
|
403
|
+
# The list of unique query IDs.
|
404
|
+
# @return [Array<String>]
|
405
|
+
#
|
406
|
+
# @!attribute [rw] next_token
|
407
|
+
# A token to be used by the next request if this request is truncated.
|
408
|
+
# @return [String]
|
409
|
+
#
|
410
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesOutput AWS API Documentation
|
411
|
+
#
|
412
|
+
class ListNamedQueriesOutput < Struct.new(
|
413
|
+
:named_query_ids,
|
414
|
+
:next_token)
|
415
|
+
include Aws::Structure
|
416
|
+
end
|
417
|
+
|
418
|
+
# @note When making an API call, you may pass ListQueryExecutionsInput
|
419
|
+
# data as a hash:
|
420
|
+
#
|
421
|
+
# {
|
422
|
+
# next_token: "Token",
|
423
|
+
# max_results: 1,
|
424
|
+
# }
|
425
|
+
#
|
426
|
+
# @!attribute [rw] next_token
|
427
|
+
# The token that specifies where to start pagination if a previous
|
428
|
+
# request was truncated.
|
429
|
+
# @return [String]
|
430
|
+
#
|
431
|
+
# @!attribute [rw] max_results
|
432
|
+
# The maximum number of query executions to return in this request.
|
433
|
+
# @return [Integer]
|
434
|
+
#
|
435
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsInput AWS API Documentation
|
436
|
+
#
|
437
|
+
class ListQueryExecutionsInput < Struct.new(
|
438
|
+
:next_token,
|
439
|
+
:max_results)
|
440
|
+
include Aws::Structure
|
441
|
+
end
|
442
|
+
|
443
|
+
# @!attribute [rw] query_execution_ids
|
444
|
+
# The unique IDs of each query execution as an array of strings.
|
445
|
+
# @return [Array<String>]
|
446
|
+
#
|
447
|
+
# @!attribute [rw] next_token
|
448
|
+
# A token to be used by the next request if this request is truncated.
|
449
|
+
# @return [String]
|
450
|
+
#
|
451
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsOutput AWS API Documentation
|
452
|
+
#
|
453
|
+
class ListQueryExecutionsOutput < Struct.new(
|
454
|
+
:query_execution_ids,
|
455
|
+
:next_token)
|
456
|
+
include Aws::Structure
|
457
|
+
end
|
458
|
+
|
459
|
+
# A query, where `QueryString` is the SQL query statements that comprise
|
460
|
+
# the query.
|
461
|
+
#
|
462
|
+
# @!attribute [rw] name
|
463
|
+
# The plain-language name of the query.
|
464
|
+
# @return [String]
|
465
|
+
#
|
466
|
+
# @!attribute [rw] description
|
467
|
+
# A brief description of the query.
|
468
|
+
# @return [String]
|
469
|
+
#
|
470
|
+
# @!attribute [rw] database
|
471
|
+
# The database to which the query belongs.
|
472
|
+
# @return [String]
|
473
|
+
#
|
474
|
+
# @!attribute [rw] query_string
|
475
|
+
# The SQL query statements that comprise the query.
|
476
|
+
# @return [String]
|
477
|
+
#
|
478
|
+
# @!attribute [rw] named_query_id
|
479
|
+
# The unique identifier of the query.
|
480
|
+
# @return [String]
|
481
|
+
#
|
482
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/NamedQuery AWS API Documentation
|
483
|
+
#
|
484
|
+
class NamedQuery < Struct.new(
|
485
|
+
:name,
|
486
|
+
:description,
|
487
|
+
:database,
|
488
|
+
:query_string,
|
489
|
+
:named_query_id)
|
490
|
+
include Aws::Structure
|
491
|
+
end
|
492
|
+
|
493
|
+
# Information about a single instance of a query execution.
|
494
|
+
#
|
495
|
+
# @!attribute [rw] query_execution_id
|
496
|
+
# The unique identifier for each query execution.
|
497
|
+
# @return [String]
|
498
|
+
#
|
499
|
+
# @!attribute [rw] query
|
500
|
+
# The SQL query statements which the query execution ran.
|
501
|
+
# @return [String]
|
502
|
+
#
|
503
|
+
# @!attribute [rw] result_configuration
|
504
|
+
# The location in Amazon S3 where query results were stored and the
|
505
|
+
# encryption option, if any, used for query results.
|
506
|
+
# @return [Types::ResultConfiguration]
|
507
|
+
#
|
508
|
+
# @!attribute [rw] query_execution_context
|
509
|
+
# The database in which the query execution occurred.
|
510
|
+
# @return [Types::QueryExecutionContext]
|
511
|
+
#
|
512
|
+
# @!attribute [rw] status
|
513
|
+
# The completion date, current state, submission time, and state
|
514
|
+
# change reason (if applicable) for the query execution.
|
515
|
+
# @return [Types::QueryExecutionStatus]
|
516
|
+
#
|
517
|
+
# @!attribute [rw] statistics
|
518
|
+
# The amount of data scanned during the query execution and the amount
|
519
|
+
# of time that it took to execute.
|
520
|
+
# @return [Types::QueryExecutionStatistics]
|
521
|
+
#
|
522
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
|
523
|
+
#
|
524
|
+
class QueryExecution < Struct.new(
|
525
|
+
:query_execution_id,
|
526
|
+
:query,
|
527
|
+
:result_configuration,
|
528
|
+
:query_execution_context,
|
529
|
+
:status,
|
530
|
+
:statistics)
|
531
|
+
include Aws::Structure
|
532
|
+
end
|
533
|
+
|
534
|
+
# The database in which the query execution occurs.
|
535
|
+
#
|
536
|
+
# @note When making an API call, you may pass QueryExecutionContext
|
537
|
+
# data as a hash:
|
538
|
+
#
|
539
|
+
# {
|
540
|
+
# database: "DatabaseString",
|
541
|
+
# }
|
542
|
+
#
|
543
|
+
# @!attribute [rw] database
|
544
|
+
# The name of the database.
|
545
|
+
# @return [String]
|
546
|
+
#
|
547
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionContext AWS API Documentation
|
548
|
+
#
|
549
|
+
class QueryExecutionContext < Struct.new(
|
550
|
+
:database)
|
551
|
+
include Aws::Structure
|
552
|
+
end
|
553
|
+
|
554
|
+
# The amount of data scanned during the query execution and the amount
|
555
|
+
# of time that it took to execute.
|
556
|
+
#
|
557
|
+
# @!attribute [rw] engine_execution_time_in_millis
|
558
|
+
# The number of milliseconds that the query took to execute.
|
559
|
+
# @return [Integer]
|
560
|
+
#
|
561
|
+
# @!attribute [rw] data_scanned_in_bytes
|
562
|
+
# The number of bytes in the data that was queried.
|
563
|
+
# @return [Integer]
|
564
|
+
#
|
565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatistics AWS API Documentation
|
566
|
+
#
|
567
|
+
class QueryExecutionStatistics < Struct.new(
|
568
|
+
:engine_execution_time_in_millis,
|
569
|
+
:data_scanned_in_bytes)
|
570
|
+
include Aws::Structure
|
571
|
+
end
|
572
|
+
|
573
|
+
# The completion date, current state, submission time, and state change
|
574
|
+
# reason (if applicable) for the query execution.
|
575
|
+
#
|
576
|
+
# @!attribute [rw] state
|
577
|
+
# The state of query execution. `SUBMITTED` indicates that the query
|
578
|
+
# is queued for execution. `RUNNING` indicates that the query is
|
579
|
+
# scanning data and returning results. `SUCCEEDED` indicates that the
|
580
|
+
# query completed without error. `FAILED` indicates that the query
|
581
|
+
# experienced an error and did not complete processing. `CANCELLED`
|
582
|
+
# indicates that user input interrupted query execution.
|
583
|
+
# @return [String]
|
584
|
+
#
|
585
|
+
# @!attribute [rw] state_change_reason
|
586
|
+
# Further detail about the status of the query.
|
587
|
+
# @return [String]
|
588
|
+
#
|
589
|
+
# @!attribute [rw] submission_date_time
|
590
|
+
# The date and time that the query was submitted.
|
591
|
+
# @return [Time]
|
592
|
+
#
|
593
|
+
# @!attribute [rw] completion_date_time
|
594
|
+
# The date and time that the query completed.
|
595
|
+
# @return [Time]
|
596
|
+
#
|
597
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatus AWS API Documentation
|
598
|
+
#
|
599
|
+
class QueryExecutionStatus < Struct.new(
|
600
|
+
:state,
|
601
|
+
:state_change_reason,
|
602
|
+
:submission_date_time,
|
603
|
+
:completion_date_time)
|
604
|
+
include Aws::Structure
|
605
|
+
end
|
606
|
+
|
607
|
+
# The location in Amazon S3 where query results are stored and the
|
608
|
+
# encryption option, if any, used for query results.
|
609
|
+
#
|
610
|
+
# @note When making an API call, you may pass ResultConfiguration
|
611
|
+
# data as a hash:
|
612
|
+
#
|
613
|
+
# {
|
614
|
+
# output_location: "String", # required
|
615
|
+
# encryption_configuration: {
|
616
|
+
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
617
|
+
# kms_key: "String",
|
618
|
+
# },
|
619
|
+
# }
|
620
|
+
#
|
621
|
+
# @!attribute [rw] output_location
|
622
|
+
# The location in S3 where query results are stored.
|
623
|
+
# @return [String]
|
624
|
+
#
|
625
|
+
# @!attribute [rw] encryption_configuration
|
626
|
+
# If query results are encrypted in S3, indicates the S3 encryption
|
627
|
+
# option used (for example, `SSE-KMS` or `CSE-KMS` and key
|
628
|
+
# information.
|
629
|
+
# @return [Types::EncryptionConfiguration]
|
630
|
+
#
|
631
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
|
632
|
+
#
|
633
|
+
class ResultConfiguration < Struct.new(
|
634
|
+
:output_location,
|
635
|
+
:encryption_configuration)
|
636
|
+
include Aws::Structure
|
637
|
+
end
|
638
|
+
|
639
|
+
# The metadata and rows that comprise a query result set. The metadata
|
640
|
+
# describes the column structure and data types.
|
641
|
+
#
|
642
|
+
# @!attribute [rw] rows
|
643
|
+
# The rows in the table.
|
644
|
+
# @return [Array<Types::Row>]
|
645
|
+
#
|
646
|
+
# @!attribute [rw] result_set_metadata
|
647
|
+
# The metadata that describes the column structure and data types of a
|
648
|
+
# table of query results.
|
649
|
+
# @return [Types::ResultSetMetadata]
|
650
|
+
#
|
651
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSet AWS API Documentation
|
652
|
+
#
|
653
|
+
class ResultSet < Struct.new(
|
654
|
+
:rows,
|
655
|
+
:result_set_metadata)
|
656
|
+
include Aws::Structure
|
657
|
+
end
|
658
|
+
|
659
|
+
# The metadata that describes the column structure and data types of a
|
660
|
+
# table of query results.
|
661
|
+
#
|
662
|
+
# @!attribute [rw] column_info
|
663
|
+
# Information about the columns in a query execution result.
|
664
|
+
# @return [Array<Types::ColumnInfo>]
|
665
|
+
#
|
666
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSetMetadata AWS API Documentation
|
667
|
+
#
|
668
|
+
class ResultSetMetadata < Struct.new(
|
669
|
+
:column_info)
|
670
|
+
include Aws::Structure
|
671
|
+
end
|
672
|
+
|
673
|
+
# The rows that comprise a query result table.
|
674
|
+
#
|
675
|
+
# @!attribute [rw] data
|
676
|
+
# The data that populates a row in a query result table.
|
677
|
+
# @return [Array<Types::Datum>]
|
678
|
+
#
|
679
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Row AWS API Documentation
|
680
|
+
#
|
681
|
+
class Row < Struct.new(
|
682
|
+
:data)
|
683
|
+
include Aws::Structure
|
684
|
+
end
|
685
|
+
|
686
|
+
# @note When making an API call, you may pass StartQueryExecutionInput
|
687
|
+
# data as a hash:
|
688
|
+
#
|
689
|
+
# {
|
690
|
+
# query_string: "QueryString", # required
|
691
|
+
# client_request_token: "IdempotencyToken",
|
692
|
+
# query_execution_context: {
|
693
|
+
# database: "DatabaseString",
|
694
|
+
# },
|
695
|
+
# result_configuration: { # required
|
696
|
+
# output_location: "String", # required
|
697
|
+
# encryption_configuration: {
|
698
|
+
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
699
|
+
# kms_key: "String",
|
700
|
+
# },
|
701
|
+
# },
|
702
|
+
# }
|
703
|
+
#
|
704
|
+
# @!attribute [rw] query_string
|
705
|
+
# The SQL query statements to be executed.
|
706
|
+
# @return [String]
|
707
|
+
#
|
708
|
+
# @!attribute [rw] client_request_token
|
709
|
+
# A unique case-sensitive string used to ensure the request to create
|
710
|
+
# the query is idempotent (executes only once). If another
|
711
|
+
# `StartQueryExecution` request is received, the same response is
|
712
|
+
# returned and another query is not created. If a parameter has
|
713
|
+
# changed, for example, the `QueryString`, an error is returned.
|
714
|
+
#
|
715
|
+
# This token is listed as not required because AWS SDKs (for example
|
716
|
+
# the AWS SDK for Java) auto-generate the token for users. If you are
|
717
|
+
# not using the AWS SDK or the AWS CLI, you must provide this token or
|
718
|
+
# the action will fail.
|
719
|
+
#
|
720
|
+
# **A suitable default value is auto-generated.** You should normally
|
721
|
+
# not need to pass this option.
|
722
|
+
# @return [String]
|
723
|
+
#
|
724
|
+
# @!attribute [rw] query_execution_context
|
725
|
+
# The database within which the query executes.
|
726
|
+
# @return [Types::QueryExecutionContext]
|
727
|
+
#
|
728
|
+
# @!attribute [rw] result_configuration
|
729
|
+
# Specifies information about where and how to save the results of the
|
730
|
+
# query execution.
|
731
|
+
# @return [Types::ResultConfiguration]
|
732
|
+
#
|
733
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput AWS API Documentation
|
734
|
+
#
|
735
|
+
class StartQueryExecutionInput < Struct.new(
|
736
|
+
:query_string,
|
737
|
+
:client_request_token,
|
738
|
+
:query_execution_context,
|
739
|
+
:result_configuration)
|
740
|
+
include Aws::Structure
|
741
|
+
end
|
742
|
+
|
743
|
+
# @!attribute [rw] query_execution_id
|
744
|
+
# The unique ID of the query that ran as a result of this request.
|
745
|
+
# @return [String]
|
746
|
+
#
|
747
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionOutput AWS API Documentation
|
748
|
+
#
|
749
|
+
class StartQueryExecutionOutput < Struct.new(
|
750
|
+
:query_execution_id)
|
751
|
+
include Aws::Structure
|
752
|
+
end
|
753
|
+
|
754
|
+
# @note When making an API call, you may pass StopQueryExecutionInput
|
755
|
+
# data as a hash:
|
756
|
+
#
|
757
|
+
# {
|
758
|
+
# query_execution_id: "QueryExecutionId", # required
|
759
|
+
# }
|
760
|
+
#
|
761
|
+
# @!attribute [rw] query_execution_id
|
762
|
+
# The unique ID of the query execution to stop.
|
763
|
+
#
|
764
|
+
# **A suitable default value is auto-generated.** You should normally
|
765
|
+
# not need to pass this option.
|
766
|
+
# @return [String]
|
767
|
+
#
|
768
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionInput AWS API Documentation
|
769
|
+
#
|
770
|
+
class StopQueryExecutionInput < Struct.new(
|
771
|
+
:query_execution_id)
|
772
|
+
include Aws::Structure
|
773
|
+
end
|
774
|
+
|
775
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionOutput AWS API Documentation
|
776
|
+
#
|
777
|
+
class StopQueryExecutionOutput < Aws::EmptyStructure; end
|
778
|
+
|
779
|
+
# Information about a named query ID that could not be processed.
|
780
|
+
#
|
781
|
+
# @!attribute [rw] named_query_id
|
782
|
+
# The unique identifier of the named query.
|
783
|
+
# @return [String]
|
784
|
+
#
|
785
|
+
# @!attribute [rw] error_code
|
786
|
+
# The error code returned when the processing request for the named
|
787
|
+
# query failed, if applicable.
|
788
|
+
# @return [String]
|
789
|
+
#
|
790
|
+
# @!attribute [rw] error_message
|
791
|
+
# The error message returned when the processing request for the named
|
792
|
+
# query failed, if applicable.
|
793
|
+
# @return [String]
|
794
|
+
#
|
795
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedNamedQueryId AWS API Documentation
|
796
|
+
#
|
797
|
+
class UnprocessedNamedQueryId < Struct.new(
|
798
|
+
:named_query_id,
|
799
|
+
:error_code,
|
800
|
+
:error_message)
|
801
|
+
include Aws::Structure
|
802
|
+
end
|
803
|
+
|
804
|
+
# Describes a query execution that failed to process.
|
805
|
+
#
|
806
|
+
# @!attribute [rw] query_execution_id
|
807
|
+
# The unique identifier of the query execution.
|
808
|
+
# @return [String]
|
809
|
+
#
|
810
|
+
# @!attribute [rw] error_code
|
811
|
+
# The error code returned when the query execution failed to process,
|
812
|
+
# if applicable.
|
813
|
+
# @return [String]
|
814
|
+
#
|
815
|
+
# @!attribute [rw] error_message
|
816
|
+
# The error message returned when the query execution failed to
|
817
|
+
# process, if applicable.
|
818
|
+
# @return [String]
|
819
|
+
#
|
820
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedQueryExecutionId AWS API Documentation
|
821
|
+
#
|
822
|
+
class UnprocessedQueryExecutionId < Struct.new(
|
823
|
+
:query_execution_id,
|
824
|
+
:error_code,
|
825
|
+
:error_message)
|
826
|
+
include Aws::Structure
|
827
|
+
end
|
828
|
+
|
829
|
+
end
|
830
|
+
end
|