AACFlow

Athena

Run SQL queries on data in Amazon S3 using AWS Athena

Usage Instructions

Integrate AWS Athena into workflows. Execute SQL queries against data in S3, check query status, retrieve results, manage named queries, and list executions. Requires AWS access key and secret access key.

Tools

athena_start_query

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
queryStringstringYesNo description
databasestringNoNo description
catalogstringNoNo description
outputLocationstringNoNo description
workGroupstringNoNo description

Output

ParameterTypeDescription
queryExecutionIdstringqueryExecutionId output from the tool

athena_get_query_execution

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
queryExecutionIdstringYesNo description

Output

ParameterTypeDescription
queryExecutionIdstringqueryExecutionId output from the tool
querystringquery output from the tool
statestringstate output from the tool
stateChangeReasonstringstateChangeReason output from the tool
statementTypestringstatementType output from the tool
databasestringdatabase output from the tool
catalogstringcatalog output from the tool
workGroupstringworkGroup output from the tool
submissionDateTimenumbersubmissionDateTime output from the tool
completionDateTimenumbercompletionDateTime output from the tool
dataScannedInBytesnumberdataScannedInBytes output from the tool
engineExecutionTimeInMillisnumberengineExecutionTimeInMillis output from the tool
queryPlanningTimeInMillisnumberqueryPlanningTimeInMillis output from the tool
queryQueueTimeInMillisnumberqueryQueueTimeInMillis output from the tool
totalExecutionTimeInMillisnumbertotalExecutionTimeInMillis output from the tool
outputLocationstringoutputLocation output from the tool

athena_get_query_results

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
queryExecutionIdstringYesNo description
maxResultsnumberNoNo description
nextTokenstringNoNo description

Output

ParameterTypeDescription
columnsarraycolumns output from the tool
rowsarrayrows output from the tool
nextTokenstringnextToken output from the tool
updateCountnumberupdateCount output from the tool

athena_stop_query

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
queryExecutionIdstringYesNo description

Output

ParameterTypeDescription
successbooleansuccess output from the tool

athena_list_query_executions

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
workGroupstringNoNo description
maxResultsnumberNoNo description
nextTokenstringNoNo description

Output

ParameterTypeDescription
queryExecutionIdsarrayqueryExecutionIds output from the tool
nextTokenstringnextToken output from the tool

athena_create_named_query

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
namestringYesNo description
databasestringYesNo description
queryStringstringYesNo description
descriptionstringNoNo description
workGroupstringNoNo description

Output

ParameterTypeDescription
namedQueryIdstringnamedQueryId output from the tool

athena_get_named_query

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
namedQueryIdstringYesNo description

Output

ParameterTypeDescription
namedQueryIdstringnamedQueryId output from the tool
namestringname output from the tool
descriptionstringdescription output from the tool
databasestringdatabase output from the tool
queryStringstringqueryString output from the tool
workGroupstringworkGroup output from the tool

athena_list_named_queries

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
workGroupstringNoNo description
maxResultsnumberNoNo description
nextTokenstringNoNo description

Output

ParameterTypeDescription
namedQueryIdsarraynamedQueryIds output from the tool
nextTokenstringnextToken output from the tool

本页内容

今天就开始构建
超过 100,000 名开发者信赖我们。
用于构建 AI 智能体并运行智能体工作团队的 SaaS 平台。
开始使用