v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1460298233.0 KB

Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.

For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

post/#X-Amz-Target=AmazonAthena.ListNamedQueries

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AmazonAthena.ListNamedQueries' required

Request body

NextTokenstring

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.

MaxResultsinteger

The maximum number of queries to return in this request.

WorkGroupstring

The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.

Response

Success

NamedQueryIdsNamedQueryId[]

The list of unique query IDs.

NextTokenstring

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.