CmdID / aws / aws athena
aws athena list-named-queries
Provides a list of available query IDs only for queries saved in the specified workgroup. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list the named queries for a workgroup
The following list-named-queries example lists the named queries for the AthenaAdmin workgroup.
aws athena list-named-queries --work-group AthenaAdminIdentify--work-groupThe name of the workgroup from which the named queries are being returned.Its output
{
"NamedQueryIds": [
"a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
]
}For more information, see Running SQL Queries Using Amazon Athena in the Amazon Athena User Guide.
Options
--max-resultsThe maximum number of queries to return in this request.--next-tokenA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.--work-groupThe name of the workgroup from which the named queries are being returned.