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