aws-sdk-athena 1.26.0 → 1.31.0

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