awswrangler.athena.get_named_query_statement

awswrangler.athena.get_named_query_statement(named_query_id: str, boto3_session: Optional[Session] = None) str

Get the named query statement string from a query ID.

Parameters
  • named_query_id (str) – The unique ID of the query. Used to get the query statement from a saved query. Requires access to the workgroup where the query is saved.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. If none, the default boto3 session is used.

Returns

The named query statement string

Return type

str