get_named_query
(**kwargs)¶Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.
See also: AWS API Documentation
Request Syntax
response = client.get_named_query(
NamedQueryId='string'
)
[REQUIRED]
The unique ID of the query. Use ListNamedQueries to get query IDs.
{
'NamedQuery': {
'Name': 'string',
'Description': 'string',
'Database': 'string',
'QueryString': 'string',
'NamedQueryId': 'string',
'WorkGroup': 'string'
}
}
Response Structure
Information about the query.
The query name.
The query description.
The database to which the query belongs.
The SQL statements that make up the query.
The unique identifier of the query.
The name of the workgroup that contains the named query.
Exceptions
Athena.Client.exceptions.InternalServerException
Athena.Client.exceptions.InvalidRequestException