CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--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.