Menu
AWS Identity and Access Management
User Guide

Actions, Resources, and Condition Keys for Amazon Athena

Amazon Athena (service prefix: athena) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Actions Defined by Amazon Athena

You can specify the following actions in the Action element of an IAM policy statement. By using policies, you define the permissions for anyone performing an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions. For details about the columns in the following table, see The Actions Table.

Actions Description Access Level Resource Types (*required) Condition Keys Dependent Actions
BatchGetNamedQuery Gets information about one or more named queries.

Read

BatchGetQueryExecution Gets information about one or more query executions.

Read

CancelQueryExecution Deprecated. Applies only to AWS services and principals that use Athena JDBC driver earlier than 1.1.0. Use StopQueryExecution otherwise.

Write

CreateNamedQuery Creates a named query.

Write

DeleteNamedQuery Deletes a named query specified.

Write

GetCatalogs Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to databases and tables.

Read

GetExecutionEngine Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to databases and tables.

Read

GetExecutionEngines Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to databases and tables.

Read

GetNamedQuery Gets information about the specified named query.

Read

GetNamespace Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to databases and tables.

Read

GetNamespaces Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to databases and tables.

Read

GetQueryExecution Gets information about the specified query execution.

Read

GetQueryExecutions Deprecated. Applies only to AWS services and principals that use Athena JDBC driver earlier than 1.1.0. Use ListQueryExecutions otherwise.

Read

GetQueryResults Gets information about the results of the specified query execution.

Read

GetTable Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to tables.

Read

GetTables Applies only to AWS services managed policy and principals that use an Athena JDBC driver. Enables access to tables.

Read

ListNamedQueries Returns a list of named queries in Amazon Athena for the specified AWS account.

List

ListQueryExecutions Returns a list of query executions for the specified AWS account.

List

RunQuery Deprecated. Applies only to AWS services and principals that use Athena JDBC driver earlier than 1.1.0. Use StartQueryExecution otherwise.

Write

StartQueryExecution Starts a query execution using a SQL query provided as a string.

Write

StopQueryExecution Stops the specified query execution.

Write

Resources Defined by Athena

Athena has no service-defined resources that can be used as the Resource element of an IAM policy statement.

Condition Keys for Amazon Athena

Athena has no service-specific context keys that can be used in the Condition element of policy statements. For the list of the global context keys that are available to all services, see Available Keys for Conditions in the IAM Policy Reference.