Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

list_prepared_statements

list_prepared_statements(**kwargs)

Lists the prepared statements in the specified workgroup.

See also: AWS API Documentation

Request Syntax

response = client.list_prepared_statements(
    WorkGroup='string',
    NextToken='string',
    MaxResults=123
)
Parameters
  • WorkGroup (string) --

    [REQUIRED]

    The workgroup to list the prepared statements for.

  • NextToken (string) -- 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 NextToken from the response object of the previous page call.
  • MaxResults (integer) -- The maximum number of results to return in this request.
Return type

dict

Returns

Response Syntax

{
    'PreparedStatements': [
        {
            'StatementName': 'string',
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • PreparedStatements (list) --

      The list of prepared statements for the workgroup.

      • (dict) --

        The name and last modified time of the prepared statement.

        • StatementName (string) --

          The name of the prepared statement.

        • LastModifiedTime (datetime) --

          The last modified time of the prepared statement.

    • NextToken (string) --

      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 NextToken from the response object of the previous page call.

Exceptions

  • Athena.Client.exceptions.InternalServerException
  • Athena.Client.exceptions.InvalidRequestException