Athena Prepared Statement

An Athena Prepared Statement in AWS is a saved SQL query that can be parameterized and reused across multiple executions. It allows you to define queries once, store them in Athena, and run them later with different input values, improving efficiency and consistency. This helps reduce repetitive query writing, enforces query standardization, and can enhance security by controlling how queries are executed.

aws.athena_prepared_statement

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
descriptioncorestringThe description of the prepared statement.
last_modified_timecoretimestampThe last modified time of the prepared statement.
query_statementcorestringThe query string for the prepared statement.
statement_namecorestringThe name of the prepared statement.
tagscorehstore
work_group_namecorestringThe name of the workgroup to which the prepared statement belongs.