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.

create_prepared_statement

create_prepared_statement(**kwargs)

Creates a prepared statement for use with SQL queries in Athena.

See also: AWS API Documentation

Request Syntax

response = client.create_prepared_statement(
    StatementName='string',
    WorkGroup='string',
    QueryStatement='string',
    Description='string'
)
Parameters
  • StatementName (string) --

    [REQUIRED]

    The name of the prepared statement.

  • WorkGroup (string) --

    [REQUIRED]

    The name of the workgroup to which the prepared statement belongs.

  • QueryStatement (string) --

    [REQUIRED]

    The query string for the prepared statement.

  • Description (string) -- The description of the prepared statement.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

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