@@ -166,6 +166,45 @@ List recent Athena query execution IDs
166166| ` queryExecutionIds ` | array | List of query execution IDs |
167167| ` nextToken ` | string | Pagination token for next page |
168168
169+ ### ` athena_batch_get_query_execution `
170+
171+ Get the status and details of up to 50 Athena query executions in one call
172+
173+ #### Input
174+
175+ | Parameter | Type | Required | Description |
176+ | --------- | ---- | -------- | ----------- |
177+ | ` awsRegion ` | string | Yes | AWS region \( e.g., us-east-1\) |
178+ | ` awsAccessKeyId ` | string | Yes | AWS access key ID |
179+ | ` awsSecretAccessKey ` | string | Yes | AWS secret access key |
180+ | ` queryExecutionIds ` | string | Yes | Comma-separated query execution IDs to check \( up to 50\) |
181+
182+ #### Output
183+
184+ | Parameter | Type | Description |
185+ | --------- | ---- | ----------- |
186+ | ` queryExecutions ` | array | Details for each successfully retrieved query execution |
187+ | ↳ ` queryExecutionId ` | string | Query execution ID |
188+ | ↳ ` query ` | string | SQL query string |
189+ | ↳ ` state ` | string | Query state \( QUEUED, RUNNING, SUCCEEDED, FAILED, CANCELLED\) |
190+ | ↳ ` stateChangeReason ` | string | Reason for state change |
191+ | ↳ ` statementType ` | string | Statement type \( DDL, DML, UTILITY\) |
192+ | ↳ ` database ` | string | Database name |
193+ | ↳ ` catalog ` | string | Data catalog name |
194+ | ↳ ` workGroup ` | string | Workgroup name |
195+ | ↳ ` submissionDateTime ` | number | Query submission time \( Unix epoch ms\) |
196+ | ↳ ` completionDateTime ` | number | Query completion time \( Unix epoch ms\) |
197+ | ↳ ` dataScannedInBytes ` | number | Amount of data scanned in bytes |
198+ | ↳ ` engineExecutionTimeInMillis ` | number | Engine execution time in milliseconds |
199+ | ↳ ` queryPlanningTimeInMillis ` | number | Query planning time in milliseconds |
200+ | ↳ ` queryQueueTimeInMillis ` | number | Time the query spent in queue in milliseconds |
201+ | ↳ ` totalExecutionTimeInMillis ` | number | Total execution time in milliseconds |
202+ | ↳ ` outputLocation ` | string | S3 location of query results |
203+ | ` unprocessedQueryExecutionIds ` | array | Query execution IDs that could not be retrieved, with error details |
204+ | ↳ ` queryExecutionId ` | string | Query execution ID |
205+ | ↳ ` errorCode ` | string | Error code |
206+ | ↳ ` errorMessage ` | string | Error message |
207+
169208### ` athena_create_named_query `
170209
171210Create a saved/named query in AWS Athena
@@ -235,4 +274,85 @@ List saved/named query IDs in AWS Athena
235274| ` namedQueryIds ` | array | List of named query IDs |
236275| ` nextToken ` | string | Pagination token for next page |
237276
277+ ### ` athena_delete_named_query `
278+
279+ Delete a saved/named query in AWS Athena
280+
281+ #### Input
282+
283+ | Parameter | Type | Required | Description |
284+ | --------- | ---- | -------- | ----------- |
285+ | ` awsRegion ` | string | Yes | AWS region \( e.g., us-east-1\) |
286+ | ` awsAccessKeyId ` | string | Yes | AWS access key ID |
287+ | ` awsSecretAccessKey ` | string | Yes | AWS secret access key |
288+ | ` namedQueryId ` | string | Yes | Named query ID to delete |
289+
290+ #### Output
291+
292+ | Parameter | Type | Description |
293+ | --------- | ---- | ----------- |
294+ | ` success ` | boolean | Whether the named query was successfully deleted |
295+
296+ ### ` athena_list_databases `
297+
298+ List the databases available in an Athena data catalog
299+
300+ #### Input
301+
302+ | Parameter | Type | Required | Description |
303+ | --------- | ---- | -------- | ----------- |
304+ | ` awsRegion ` | string | Yes | AWS region \( e.g., us-east-1\) |
305+ | ` awsAccessKeyId ` | string | Yes | AWS access key ID |
306+ | ` awsSecretAccessKey ` | string | Yes | AWS secret access key |
307+ | ` catalogName ` | string | Yes | Data catalog name to list databases from \( e.g., AwsDataCatalog\) |
308+ | ` workGroup ` | string | No | Workgroup for which the metadata is being fetched \( required for IAM Identity Center enabled catalogs\) |
309+ | ` maxResults ` | number | No | Maximum number of results \( 1-50\) |
310+ | ` nextToken ` | string | No | Pagination token from a previous request |
311+
312+ #### Output
313+
314+ | Parameter | Type | Description |
315+ | --------- | ---- | ----------- |
316+ | ` databases ` | array | List of databases \( name, description\) |
317+ | ↳ ` name ` | string | Database name |
318+ | ↳ ` description ` | string | Database description |
319+ | ` nextToken ` | string | Pagination token for next page |
320+
321+ ### ` athena_list_table_metadata `
322+
323+ List tables and their column/partition metadata for an Athena database
324+
325+ #### Input
326+
327+ | Parameter | Type | Required | Description |
328+ | --------- | ---- | -------- | ----------- |
329+ | ` awsRegion ` | string | Yes | AWS region \( e.g., us-east-1\) |
330+ | ` awsAccessKeyId ` | string | Yes | AWS access key ID |
331+ | ` awsSecretAccessKey ` | string | Yes | AWS secret access key |
332+ | ` catalogName ` | string | Yes | Data catalog name \( e.g., AwsDataCatalog\) |
333+ | ` databaseName ` | string | Yes | Database name to list tables from |
334+ | ` expression ` | string | No | Regex filter that pattern-matches table names |
335+ | ` workGroup ` | string | No | Workgroup for which the metadata is being fetched \( required for IAM Identity Center enabled catalogs\) |
336+ | ` maxResults ` | number | No | Maximum number of results \( 1-50\) |
337+ | ` nextToken ` | string | No | Pagination token from a previous request |
338+
339+ #### Output
340+
341+ | Parameter | Type | Description |
342+ | --------- | ---- | ----------- |
343+ | ` tables ` | array | Table metadata \( name, type, columns, partition keys\) |
344+ | ↳ ` name ` | string | Table name |
345+ | ↳ ` tableType ` | string | Table type |
346+ | ↳ ` createTime ` | number | Table creation time \( Unix epoch ms\) |
347+ | ↳ ` lastAccessTime ` | number | Table last access time \( Unix epoch ms\) |
348+ | ↳ ` columns ` | array | Column definitions |
349+ | ↳ ` name ` | string | Column name |
350+ | ↳ ` type ` | string | Column data type |
351+ | ↳ ` comment ` | string | Column comment |
352+ | ↳ ` partitionKeys ` | array | Partition key definitions |
353+ | ↳ ` name ` | string | Partition key name |
354+ | ↳ ` type ` | string | Partition key data type |
355+ | ↳ ` comment ` | string | Partition key comment |
356+ | ` nextToken ` | string | Pagination token for next page |
357+
238358
0 commit comments