aws-sdk-athena 1.23.0 → 1.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-athena.rb +1 -1
- data/lib/aws-sdk-athena/client.rb +536 -67
- data/lib/aws-sdk-athena/client_api.rb +274 -0
- data/lib/aws-sdk-athena/errors.rb +16 -0
- data/lib/aws-sdk-athena/resource.rb +1 -7
- data/lib/aws-sdk-athena/types.rb +722 -52
- metadata +5 -5
@@ -19,16 +19,30 @@ module Aws::Athena
|
|
19
19
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
20
20
|
BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
|
21
21
|
BytesScannedCutoffValue = Shapes::IntegerShape.new(name: 'BytesScannedCutoffValue')
|
22
|
+
CatalogNameString = Shapes::StringShape.new(name: 'CatalogNameString')
|
23
|
+
Column = Shapes::StructureShape.new(name: 'Column')
|
22
24
|
ColumnInfo = Shapes::StructureShape.new(name: 'ColumnInfo')
|
23
25
|
ColumnInfoList = Shapes::ListShape.new(name: 'ColumnInfoList')
|
26
|
+
ColumnList = Shapes::ListShape.new(name: 'ColumnList')
|
24
27
|
ColumnNullable = Shapes::StringShape.new(name: 'ColumnNullable')
|
28
|
+
CommentString = Shapes::StringShape.new(name: 'CommentString')
|
29
|
+
CreateDataCatalogInput = Shapes::StructureShape.new(name: 'CreateDataCatalogInput')
|
30
|
+
CreateDataCatalogOutput = Shapes::StructureShape.new(name: 'CreateDataCatalogOutput')
|
25
31
|
CreateNamedQueryInput = Shapes::StructureShape.new(name: 'CreateNamedQueryInput')
|
26
32
|
CreateNamedQueryOutput = Shapes::StructureShape.new(name: 'CreateNamedQueryOutput')
|
27
33
|
CreateWorkGroupInput = Shapes::StructureShape.new(name: 'CreateWorkGroupInput')
|
28
34
|
CreateWorkGroupOutput = Shapes::StructureShape.new(name: 'CreateWorkGroupOutput')
|
35
|
+
DataCatalog = Shapes::StructureShape.new(name: 'DataCatalog')
|
36
|
+
DataCatalogSummary = Shapes::StructureShape.new(name: 'DataCatalogSummary')
|
37
|
+
DataCatalogSummaryList = Shapes::ListShape.new(name: 'DataCatalogSummaryList')
|
38
|
+
DataCatalogType = Shapes::StringShape.new(name: 'DataCatalogType')
|
39
|
+
Database = Shapes::StructureShape.new(name: 'Database')
|
40
|
+
DatabaseList = Shapes::ListShape.new(name: 'DatabaseList')
|
29
41
|
DatabaseString = Shapes::StringShape.new(name: 'DatabaseString')
|
30
42
|
Date = Shapes::TimestampShape.new(name: 'Date')
|
31
43
|
Datum = Shapes::StructureShape.new(name: 'Datum')
|
44
|
+
DeleteDataCatalogInput = Shapes::StructureShape.new(name: 'DeleteDataCatalogInput')
|
45
|
+
DeleteDataCatalogOutput = Shapes::StructureShape.new(name: 'DeleteDataCatalogOutput')
|
32
46
|
DeleteNamedQueryInput = Shapes::StructureShape.new(name: 'DeleteNamedQueryInput')
|
33
47
|
DeleteNamedQueryOutput = Shapes::StructureShape.new(name: 'DeleteNamedQueryOutput')
|
34
48
|
DeleteWorkGroupInput = Shapes::StructureShape.new(name: 'DeleteWorkGroupInput')
|
@@ -38,37 +52,57 @@ module Aws::Athena
|
|
38
52
|
EncryptionOption = Shapes::StringShape.new(name: 'EncryptionOption')
|
39
53
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
40
54
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
55
|
+
ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
|
56
|
+
GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
|
57
|
+
GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
|
58
|
+
GetDatabaseInput = Shapes::StructureShape.new(name: 'GetDatabaseInput')
|
59
|
+
GetDatabaseOutput = Shapes::StructureShape.new(name: 'GetDatabaseOutput')
|
41
60
|
GetNamedQueryInput = Shapes::StructureShape.new(name: 'GetNamedQueryInput')
|
42
61
|
GetNamedQueryOutput = Shapes::StructureShape.new(name: 'GetNamedQueryOutput')
|
43
62
|
GetQueryExecutionInput = Shapes::StructureShape.new(name: 'GetQueryExecutionInput')
|
44
63
|
GetQueryExecutionOutput = Shapes::StructureShape.new(name: 'GetQueryExecutionOutput')
|
45
64
|
GetQueryResultsInput = Shapes::StructureShape.new(name: 'GetQueryResultsInput')
|
46
65
|
GetQueryResultsOutput = Shapes::StructureShape.new(name: 'GetQueryResultsOutput')
|
66
|
+
GetTableMetadataInput = Shapes::StructureShape.new(name: 'GetTableMetadataInput')
|
67
|
+
GetTableMetadataOutput = Shapes::StructureShape.new(name: 'GetTableMetadataOutput')
|
47
68
|
GetWorkGroupInput = Shapes::StructureShape.new(name: 'GetWorkGroupInput')
|
48
69
|
GetWorkGroupOutput = Shapes::StructureShape.new(name: 'GetWorkGroupOutput')
|
49
70
|
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
50
71
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
51
72
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
52
73
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
74
|
+
KeyString = Shapes::StringShape.new(name: 'KeyString')
|
75
|
+
ListDataCatalogsInput = Shapes::StructureShape.new(name: 'ListDataCatalogsInput')
|
76
|
+
ListDataCatalogsOutput = Shapes::StructureShape.new(name: 'ListDataCatalogsOutput')
|
77
|
+
ListDatabasesInput = Shapes::StructureShape.new(name: 'ListDatabasesInput')
|
78
|
+
ListDatabasesOutput = Shapes::StructureShape.new(name: 'ListDatabasesOutput')
|
53
79
|
ListNamedQueriesInput = Shapes::StructureShape.new(name: 'ListNamedQueriesInput')
|
54
80
|
ListNamedQueriesOutput = Shapes::StructureShape.new(name: 'ListNamedQueriesOutput')
|
55
81
|
ListQueryExecutionsInput = Shapes::StructureShape.new(name: 'ListQueryExecutionsInput')
|
56
82
|
ListQueryExecutionsOutput = Shapes::StructureShape.new(name: 'ListQueryExecutionsOutput')
|
83
|
+
ListTableMetadataInput = Shapes::StructureShape.new(name: 'ListTableMetadataInput')
|
84
|
+
ListTableMetadataOutput = Shapes::StructureShape.new(name: 'ListTableMetadataOutput')
|
57
85
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
58
86
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
59
87
|
ListWorkGroupsInput = Shapes::StructureShape.new(name: 'ListWorkGroupsInput')
|
60
88
|
ListWorkGroupsOutput = Shapes::StructureShape.new(name: 'ListWorkGroupsOutput')
|
61
89
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
90
|
+
MaxDataCatalogsCount = Shapes::IntegerShape.new(name: 'MaxDataCatalogsCount')
|
91
|
+
MaxDatabasesCount = Shapes::IntegerShape.new(name: 'MaxDatabasesCount')
|
62
92
|
MaxNamedQueriesCount = Shapes::IntegerShape.new(name: 'MaxNamedQueriesCount')
|
63
93
|
MaxQueryExecutionsCount = Shapes::IntegerShape.new(name: 'MaxQueryExecutionsCount')
|
64
94
|
MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
|
95
|
+
MaxTableMetadataCount = Shapes::IntegerShape.new(name: 'MaxTableMetadataCount')
|
65
96
|
MaxTagsCount = Shapes::IntegerShape.new(name: 'MaxTagsCount')
|
66
97
|
MaxWorkGroupsCount = Shapes::IntegerShape.new(name: 'MaxWorkGroupsCount')
|
98
|
+
MetadataException = Shapes::StructureShape.new(name: 'MetadataException')
|
67
99
|
NameString = Shapes::StringShape.new(name: 'NameString')
|
68
100
|
NamedQuery = Shapes::StructureShape.new(name: 'NamedQuery')
|
69
101
|
NamedQueryId = Shapes::StringShape.new(name: 'NamedQueryId')
|
70
102
|
NamedQueryIdList = Shapes::ListShape.new(name: 'NamedQueryIdList')
|
71
103
|
NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
|
104
|
+
ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
|
105
|
+
ParametersMapValue = Shapes::StringShape.new(name: 'ParametersMapValue')
|
72
106
|
QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
|
73
107
|
QueryExecutionContext = Shapes::StructureShape.new(name: 'QueryExecutionContext')
|
74
108
|
QueryExecutionId = Shapes::StringShape.new(name: 'QueryExecutionId')
|
@@ -91,6 +125,9 @@ module Aws::Athena
|
|
91
125
|
StopQueryExecutionInput = Shapes::StructureShape.new(name: 'StopQueryExecutionInput')
|
92
126
|
StopQueryExecutionOutput = Shapes::StructureShape.new(name: 'StopQueryExecutionOutput')
|
93
127
|
String = Shapes::StringShape.new(name: 'String')
|
128
|
+
TableMetadata = Shapes::StructureShape.new(name: 'TableMetadata')
|
129
|
+
TableMetadataList = Shapes::ListShape.new(name: 'TableMetadataList')
|
130
|
+
TableTypeString = Shapes::StringShape.new(name: 'TableTypeString')
|
94
131
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
95
132
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
96
133
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
@@ -99,14 +136,18 @@ module Aws::Athena
|
|
99
136
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
100
137
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
101
138
|
ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
|
139
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
102
140
|
Token = Shapes::StringShape.new(name: 'Token')
|
103
141
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
142
|
+
TypeString = Shapes::StringShape.new(name: 'TypeString')
|
104
143
|
UnprocessedNamedQueryId = Shapes::StructureShape.new(name: 'UnprocessedNamedQueryId')
|
105
144
|
UnprocessedNamedQueryIdList = Shapes::ListShape.new(name: 'UnprocessedNamedQueryIdList')
|
106
145
|
UnprocessedQueryExecutionId = Shapes::StructureShape.new(name: 'UnprocessedQueryExecutionId')
|
107
146
|
UnprocessedQueryExecutionIdList = Shapes::ListShape.new(name: 'UnprocessedQueryExecutionIdList')
|
108
147
|
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
109
148
|
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
149
|
+
UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
|
150
|
+
UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
|
110
151
|
UpdateWorkGroupInput = Shapes::StructureShape.new(name: 'UpdateWorkGroupInput')
|
111
152
|
UpdateWorkGroupOutput = Shapes::StructureShape.new(name: 'UpdateWorkGroupOutput')
|
112
153
|
WorkGroup = Shapes::StructureShape.new(name: 'WorkGroup')
|
@@ -134,6 +175,11 @@ module Aws::Athena
|
|
134
175
|
BatchGetQueryExecutionOutput.add_member(:unprocessed_query_execution_ids, Shapes::ShapeRef.new(shape: UnprocessedQueryExecutionIdList, location_name: "UnprocessedQueryExecutionIds"))
|
135
176
|
BatchGetQueryExecutionOutput.struct_class = Types::BatchGetQueryExecutionOutput
|
136
177
|
|
178
|
+
Column.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
179
|
+
Column.add_member(:type, Shapes::ShapeRef.new(shape: TypeString, location_name: "Type"))
|
180
|
+
Column.add_member(:comment, Shapes::ShapeRef.new(shape: CommentString, location_name: "Comment"))
|
181
|
+
Column.struct_class = Types::Column
|
182
|
+
|
137
183
|
ColumnInfo.add_member(:catalog_name, Shapes::ShapeRef.new(shape: String, location_name: "CatalogName"))
|
138
184
|
ColumnInfo.add_member(:schema_name, Shapes::ShapeRef.new(shape: String, location_name: "SchemaName"))
|
139
185
|
ColumnInfo.add_member(:table_name, Shapes::ShapeRef.new(shape: String, location_name: "TableName"))
|
@@ -148,6 +194,17 @@ module Aws::Athena
|
|
148
194
|
|
149
195
|
ColumnInfoList.member = Shapes::ShapeRef.new(shape: ColumnInfo)
|
150
196
|
|
197
|
+
ColumnList.member = Shapes::ShapeRef.new(shape: Column)
|
198
|
+
|
199
|
+
CreateDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
200
|
+
CreateDataCatalogInput.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
|
201
|
+
CreateDataCatalogInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
202
|
+
CreateDataCatalogInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
|
203
|
+
CreateDataCatalogInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
204
|
+
CreateDataCatalogInput.struct_class = Types::CreateDataCatalogInput
|
205
|
+
|
206
|
+
CreateDataCatalogOutput.struct_class = Types::CreateDataCatalogOutput
|
207
|
+
|
151
208
|
CreateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
152
209
|
CreateNamedQueryInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
153
210
|
CreateNamedQueryInput.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, required: true, location_name: "Database"))
|
@@ -167,9 +224,33 @@ module Aws::Athena
|
|
167
224
|
|
168
225
|
CreateWorkGroupOutput.struct_class = Types::CreateWorkGroupOutput
|
169
226
|
|
227
|
+
DataCatalog.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
228
|
+
DataCatalog.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
229
|
+
DataCatalog.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
|
230
|
+
DataCatalog.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
|
231
|
+
DataCatalog.struct_class = Types::DataCatalog
|
232
|
+
|
233
|
+
DataCatalogSummary.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, location_name: "CatalogName"))
|
234
|
+
DataCatalogSummary.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, location_name: "Type"))
|
235
|
+
DataCatalogSummary.struct_class = Types::DataCatalogSummary
|
236
|
+
|
237
|
+
DataCatalogSummaryList.member = Shapes::ShapeRef.new(shape: DataCatalogSummary)
|
238
|
+
|
239
|
+
Database.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
240
|
+
Database.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
241
|
+
Database.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
|
242
|
+
Database.struct_class = Types::Database
|
243
|
+
|
244
|
+
DatabaseList.member = Shapes::ShapeRef.new(shape: Database)
|
245
|
+
|
170
246
|
Datum.add_member(:var_char_value, Shapes::ShapeRef.new(shape: datumString, location_name: "VarCharValue"))
|
171
247
|
Datum.struct_class = Types::Datum
|
172
248
|
|
249
|
+
DeleteDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
250
|
+
DeleteDataCatalogInput.struct_class = Types::DeleteDataCatalogInput
|
251
|
+
|
252
|
+
DeleteDataCatalogOutput.struct_class = Types::DeleteDataCatalogOutput
|
253
|
+
|
173
254
|
DeleteNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId", metadata: {"idempotencyToken"=>true}))
|
174
255
|
DeleteNamedQueryInput.struct_class = Types::DeleteNamedQueryInput
|
175
256
|
|
@@ -185,6 +266,19 @@ module Aws::Athena
|
|
185
266
|
EncryptionConfiguration.add_member(:kms_key, Shapes::ShapeRef.new(shape: String, location_name: "KmsKey"))
|
186
267
|
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
187
268
|
|
269
|
+
GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
270
|
+
GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
|
271
|
+
|
272
|
+
GetDataCatalogOutput.add_member(:data_catalog, Shapes::ShapeRef.new(shape: DataCatalog, location_name: "DataCatalog"))
|
273
|
+
GetDataCatalogOutput.struct_class = Types::GetDataCatalogOutput
|
274
|
+
|
275
|
+
GetDatabaseInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
276
|
+
GetDatabaseInput.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
|
277
|
+
GetDatabaseInput.struct_class = Types::GetDatabaseInput
|
278
|
+
|
279
|
+
GetDatabaseOutput.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
|
280
|
+
GetDatabaseOutput.struct_class = Types::GetDatabaseOutput
|
281
|
+
|
188
282
|
GetNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId"))
|
189
283
|
GetNamedQueryInput.struct_class = Types::GetNamedQueryInput
|
190
284
|
|
@@ -207,6 +301,14 @@ module Aws::Athena
|
|
207
301
|
GetQueryResultsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
208
302
|
GetQueryResultsOutput.struct_class = Types::GetQueryResultsOutput
|
209
303
|
|
304
|
+
GetTableMetadataInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
305
|
+
GetTableMetadataInput.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
|
306
|
+
GetTableMetadataInput.add_member(:table_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "TableName"))
|
307
|
+
GetTableMetadataInput.struct_class = Types::GetTableMetadataInput
|
308
|
+
|
309
|
+
GetTableMetadataOutput.add_member(:table_metadata, Shapes::ShapeRef.new(shape: TableMetadata, location_name: "TableMetadata"))
|
310
|
+
GetTableMetadataOutput.struct_class = Types::GetTableMetadataOutput
|
311
|
+
|
210
312
|
GetWorkGroupInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
211
313
|
GetWorkGroupInput.struct_class = Types::GetWorkGroupInput
|
212
314
|
|
@@ -220,6 +322,23 @@ module Aws::Athena
|
|
220
322
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
221
323
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
222
324
|
|
325
|
+
ListDataCatalogsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
326
|
+
ListDataCatalogsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDataCatalogsCount, location_name: "MaxResults"))
|
327
|
+
ListDataCatalogsInput.struct_class = Types::ListDataCatalogsInput
|
328
|
+
|
329
|
+
ListDataCatalogsOutput.add_member(:data_catalogs_summary, Shapes::ShapeRef.new(shape: DataCatalogSummaryList, location_name: "DataCatalogsSummary"))
|
330
|
+
ListDataCatalogsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
331
|
+
ListDataCatalogsOutput.struct_class = Types::ListDataCatalogsOutput
|
332
|
+
|
333
|
+
ListDatabasesInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
334
|
+
ListDatabasesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
335
|
+
ListDatabasesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDatabasesCount, location_name: "MaxResults"))
|
336
|
+
ListDatabasesInput.struct_class = Types::ListDatabasesInput
|
337
|
+
|
338
|
+
ListDatabasesOutput.add_member(:database_list, Shapes::ShapeRef.new(shape: DatabaseList, location_name: "DatabaseList"))
|
339
|
+
ListDatabasesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
340
|
+
ListDatabasesOutput.struct_class = Types::ListDatabasesOutput
|
341
|
+
|
223
342
|
ListNamedQueriesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
224
343
|
ListNamedQueriesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxNamedQueriesCount, location_name: "MaxResults"))
|
225
344
|
ListNamedQueriesInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
@@ -238,6 +357,17 @@ module Aws::Athena
|
|
238
357
|
ListQueryExecutionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
239
358
|
ListQueryExecutionsOutput.struct_class = Types::ListQueryExecutionsOutput
|
240
359
|
|
360
|
+
ListTableMetadataInput.add_member(:catalog_name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "CatalogName"))
|
361
|
+
ListTableMetadataInput.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
|
362
|
+
ListTableMetadataInput.add_member(:expression, Shapes::ShapeRef.new(shape: ExpressionString, location_name: "Expression"))
|
363
|
+
ListTableMetadataInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
364
|
+
ListTableMetadataInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxTableMetadataCount, location_name: "MaxResults"))
|
365
|
+
ListTableMetadataInput.struct_class = Types::ListTableMetadataInput
|
366
|
+
|
367
|
+
ListTableMetadataOutput.add_member(:table_metadata_list, Shapes::ShapeRef.new(shape: TableMetadataList, location_name: "TableMetadataList"))
|
368
|
+
ListTableMetadataOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
369
|
+
ListTableMetadataOutput.struct_class = Types::ListTableMetadataOutput
|
370
|
+
|
241
371
|
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
242
372
|
ListTagsForResourceInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
243
373
|
ListTagsForResourceInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxTagsCount, location_name: "MaxResults"))
|
@@ -255,6 +385,9 @@ module Aws::Athena
|
|
255
385
|
ListWorkGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
256
386
|
ListWorkGroupsOutput.struct_class = Types::ListWorkGroupsOutput
|
257
387
|
|
388
|
+
MetadataException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
389
|
+
MetadataException.struct_class = Types::MetadataException
|
390
|
+
|
258
391
|
NamedQuery.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
259
392
|
NamedQuery.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
260
393
|
NamedQuery.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, required: true, location_name: "Database"))
|
@@ -267,6 +400,9 @@ module Aws::Athena
|
|
267
400
|
|
268
401
|
NamedQueryList.member = Shapes::ShapeRef.new(shape: NamedQuery)
|
269
402
|
|
403
|
+
ParametersMap.key = Shapes::ShapeRef.new(shape: KeyString)
|
404
|
+
ParametersMap.value = Shapes::ShapeRef.new(shape: ParametersMapValue)
|
405
|
+
|
270
406
|
QueryExecution.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
271
407
|
QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
|
272
408
|
QueryExecution.add_member(:statement_type, Shapes::ShapeRef.new(shape: StatementType, location_name: "StatementType"))
|
@@ -278,6 +414,7 @@ module Aws::Athena
|
|
278
414
|
QueryExecution.struct_class = Types::QueryExecution
|
279
415
|
|
280
416
|
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
417
|
+
QueryExecutionContext.add_member(:catalog, Shapes::ShapeRef.new(shape: CatalogNameString, location_name: "Catalog"))
|
281
418
|
QueryExecutionContext.struct_class = Types::QueryExecutionContext
|
282
419
|
|
283
420
|
QueryExecutionIdList.member = Shapes::ShapeRef.new(shape: QueryExecutionId)
|
@@ -340,6 +477,17 @@ module Aws::Athena
|
|
340
477
|
|
341
478
|
StopQueryExecutionOutput.struct_class = Types::StopQueryExecutionOutput
|
342
479
|
|
480
|
+
TableMetadata.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
481
|
+
TableMetadata.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
|
482
|
+
TableMetadata.add_member(:last_access_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastAccessTime"))
|
483
|
+
TableMetadata.add_member(:table_type, Shapes::ShapeRef.new(shape: TableTypeString, location_name: "TableType"))
|
484
|
+
TableMetadata.add_member(:columns, Shapes::ShapeRef.new(shape: ColumnList, location_name: "Columns"))
|
485
|
+
TableMetadata.add_member(:partition_keys, Shapes::ShapeRef.new(shape: ColumnList, location_name: "PartitionKeys"))
|
486
|
+
TableMetadata.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
|
487
|
+
TableMetadata.struct_class = Types::TableMetadata
|
488
|
+
|
489
|
+
TableMetadataList.member = Shapes::ShapeRef.new(shape: TableMetadata)
|
490
|
+
|
343
491
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
|
344
492
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
|
345
493
|
Tag.struct_class = Types::Tag
|
@@ -378,6 +526,14 @@ module Aws::Athena
|
|
378
526
|
|
379
527
|
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
380
528
|
|
529
|
+
UpdateDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
530
|
+
UpdateDataCatalogInput.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
|
531
|
+
UpdateDataCatalogInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
|
532
|
+
UpdateDataCatalogInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
|
533
|
+
UpdateDataCatalogInput.struct_class = Types::UpdateDataCatalogInput
|
534
|
+
|
535
|
+
UpdateDataCatalogOutput.struct_class = Types::UpdateDataCatalogOutput
|
536
|
+
|
381
537
|
UpdateWorkGroupInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
382
538
|
UpdateWorkGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
|
383
539
|
UpdateWorkGroupInput.add_member(:configuration_updates, Shapes::ShapeRef.new(shape: WorkGroupConfigurationUpdates, location_name: "ConfigurationUpdates"))
|
@@ -456,6 +612,16 @@ module Aws::Athena
|
|
456
612
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
457
613
|
end)
|
458
614
|
|
615
|
+
api.add_operation(:create_data_catalog, Seahorse::Model::Operation.new.tap do |o|
|
616
|
+
o.name = "CreateDataCatalog"
|
617
|
+
o.http_method = "POST"
|
618
|
+
o.http_request_uri = "/"
|
619
|
+
o.input = Shapes::ShapeRef.new(shape: CreateDataCatalogInput)
|
620
|
+
o.output = Shapes::ShapeRef.new(shape: CreateDataCatalogOutput)
|
621
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
623
|
+
end)
|
624
|
+
|
459
625
|
api.add_operation(:create_named_query, Seahorse::Model::Operation.new.tap do |o|
|
460
626
|
o.name = "CreateNamedQuery"
|
461
627
|
o.http_method = "POST"
|
@@ -476,6 +642,16 @@ module Aws::Athena
|
|
476
642
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
477
643
|
end)
|
478
644
|
|
645
|
+
api.add_operation(:delete_data_catalog, Seahorse::Model::Operation.new.tap do |o|
|
646
|
+
o.name = "DeleteDataCatalog"
|
647
|
+
o.http_method = "POST"
|
648
|
+
o.http_request_uri = "/"
|
649
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteDataCatalogInput)
|
650
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteDataCatalogOutput)
|
651
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
652
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
653
|
+
end)
|
654
|
+
|
479
655
|
api.add_operation(:delete_named_query, Seahorse::Model::Operation.new.tap do |o|
|
480
656
|
o.name = "DeleteNamedQuery"
|
481
657
|
o.http_method = "POST"
|
@@ -496,6 +672,27 @@ module Aws::Athena
|
|
496
672
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
497
673
|
end)
|
498
674
|
|
675
|
+
api.add_operation(:get_data_catalog, Seahorse::Model::Operation.new.tap do |o|
|
676
|
+
o.name = "GetDataCatalog"
|
677
|
+
o.http_method = "POST"
|
678
|
+
o.http_request_uri = "/"
|
679
|
+
o.input = Shapes::ShapeRef.new(shape: GetDataCatalogInput)
|
680
|
+
o.output = Shapes::ShapeRef.new(shape: GetDataCatalogOutput)
|
681
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
682
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
683
|
+
end)
|
684
|
+
|
685
|
+
api.add_operation(:get_database, Seahorse::Model::Operation.new.tap do |o|
|
686
|
+
o.name = "GetDatabase"
|
687
|
+
o.http_method = "POST"
|
688
|
+
o.http_request_uri = "/"
|
689
|
+
o.input = Shapes::ShapeRef.new(shape: GetDatabaseInput)
|
690
|
+
o.output = Shapes::ShapeRef.new(shape: GetDatabaseOutput)
|
691
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
692
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
693
|
+
o.errors << Shapes::ShapeRef.new(shape: MetadataException)
|
694
|
+
end)
|
695
|
+
|
499
696
|
api.add_operation(:get_named_query, Seahorse::Model::Operation.new.tap do |o|
|
500
697
|
o.name = "GetNamedQuery"
|
501
698
|
o.http_method = "POST"
|
@@ -532,6 +729,17 @@ module Aws::Athena
|
|
532
729
|
)
|
533
730
|
end)
|
534
731
|
|
732
|
+
api.add_operation(:get_table_metadata, Seahorse::Model::Operation.new.tap do |o|
|
733
|
+
o.name = "GetTableMetadata"
|
734
|
+
o.http_method = "POST"
|
735
|
+
o.http_request_uri = "/"
|
736
|
+
o.input = Shapes::ShapeRef.new(shape: GetTableMetadataInput)
|
737
|
+
o.output = Shapes::ShapeRef.new(shape: GetTableMetadataOutput)
|
738
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
739
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
740
|
+
o.errors << Shapes::ShapeRef.new(shape: MetadataException)
|
741
|
+
end)
|
742
|
+
|
535
743
|
api.add_operation(:get_work_group, Seahorse::Model::Operation.new.tap do |o|
|
536
744
|
o.name = "GetWorkGroup"
|
537
745
|
o.http_method = "POST"
|
@@ -542,6 +750,39 @@ module Aws::Athena
|
|
542
750
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
543
751
|
end)
|
544
752
|
|
753
|
+
api.add_operation(:list_data_catalogs, Seahorse::Model::Operation.new.tap do |o|
|
754
|
+
o.name = "ListDataCatalogs"
|
755
|
+
o.http_method = "POST"
|
756
|
+
o.http_request_uri = "/"
|
757
|
+
o.input = Shapes::ShapeRef.new(shape: ListDataCatalogsInput)
|
758
|
+
o.output = Shapes::ShapeRef.new(shape: ListDataCatalogsOutput)
|
759
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
760
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
761
|
+
o[:pager] = Aws::Pager.new(
|
762
|
+
limit_key: "max_results",
|
763
|
+
tokens: {
|
764
|
+
"next_token" => "next_token"
|
765
|
+
}
|
766
|
+
)
|
767
|
+
end)
|
768
|
+
|
769
|
+
api.add_operation(:list_databases, Seahorse::Model::Operation.new.tap do |o|
|
770
|
+
o.name = "ListDatabases"
|
771
|
+
o.http_method = "POST"
|
772
|
+
o.http_request_uri = "/"
|
773
|
+
o.input = Shapes::ShapeRef.new(shape: ListDatabasesInput)
|
774
|
+
o.output = Shapes::ShapeRef.new(shape: ListDatabasesOutput)
|
775
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
776
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
777
|
+
o.errors << Shapes::ShapeRef.new(shape: MetadataException)
|
778
|
+
o[:pager] = Aws::Pager.new(
|
779
|
+
limit_key: "max_results",
|
780
|
+
tokens: {
|
781
|
+
"next_token" => "next_token"
|
782
|
+
}
|
783
|
+
)
|
784
|
+
end)
|
785
|
+
|
545
786
|
api.add_operation(:list_named_queries, Seahorse::Model::Operation.new.tap do |o|
|
546
787
|
o.name = "ListNamedQueries"
|
547
788
|
o.http_method = "POST"
|
@@ -574,6 +815,23 @@ module Aws::Athena
|
|
574
815
|
)
|
575
816
|
end)
|
576
817
|
|
818
|
+
api.add_operation(:list_table_metadata, Seahorse::Model::Operation.new.tap do |o|
|
819
|
+
o.name = "ListTableMetadata"
|
820
|
+
o.http_method = "POST"
|
821
|
+
o.http_request_uri = "/"
|
822
|
+
o.input = Shapes::ShapeRef.new(shape: ListTableMetadataInput)
|
823
|
+
o.output = Shapes::ShapeRef.new(shape: ListTableMetadataOutput)
|
824
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
825
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
826
|
+
o.errors << Shapes::ShapeRef.new(shape: MetadataException)
|
827
|
+
o[:pager] = Aws::Pager.new(
|
828
|
+
limit_key: "max_results",
|
829
|
+
tokens: {
|
830
|
+
"next_token" => "next_token"
|
831
|
+
}
|
832
|
+
)
|
833
|
+
end)
|
834
|
+
|
577
835
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
578
836
|
o.name = "ListTagsForResource"
|
579
837
|
o.http_method = "POST"
|
@@ -583,6 +841,12 @@ module Aws::Athena
|
|
583
841
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
584
842
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
585
843
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
844
|
+
o[:pager] = Aws::Pager.new(
|
845
|
+
limit_key: "max_results",
|
846
|
+
tokens: {
|
847
|
+
"next_token" => "next_token"
|
848
|
+
}
|
849
|
+
)
|
586
850
|
end)
|
587
851
|
|
588
852
|
api.add_operation(:list_work_groups, Seahorse::Model::Operation.new.tap do |o|
|
@@ -644,6 +908,16 @@ module Aws::Athena
|
|
644
908
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
645
909
|
end)
|
646
910
|
|
911
|
+
api.add_operation(:update_data_catalog, Seahorse::Model::Operation.new.tap do |o|
|
912
|
+
o.name = "UpdateDataCatalog"
|
913
|
+
o.http_method = "POST"
|
914
|
+
o.http_request_uri = "/"
|
915
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateDataCatalogInput)
|
916
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateDataCatalogOutput)
|
917
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
918
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
919
|
+
end)
|
920
|
+
|
647
921
|
api.add_operation(:update_work_group, Seahorse::Model::Operation.new.tap do |o|
|
648
922
|
o.name = "UpdateWorkGroup"
|
649
923
|
o.http_method = "POST"
|