View a markdown version of this page

Amazon Athena 的操作、資料和條件索引鍵 - 服務授權參考

Amazon Athena 的操作、資料和條件索引鍵

Amazon Athena (服務字首:athena) 提供下列服務特定的操作、資源、動作和條件索引鍵,可用於 IAM 許可政策。

參考資料:

Amazon Athena 定義的 API 操作

下表將 API 操作映射至其授權的 IAM 動作。只會列出具有指定 API 和動作靜態值的條件金鑰;如需每個動作支援的完整條件金鑰集,請參閱動作表格。

作業 IAM 動作 條件鍵 可能的值 (s) 存取層級

BatchGetNamedQuery

athena:BatchGetNamedQuery

讀取

BatchGetPreparedStatement

athena:BatchGetPreparedStatement

讀取

BatchGetQueryExecution

athena:BatchGetQueryExecution

讀取

CancelCapacityReservation

athena:CancelCapacityReservation

寫入

CreateCapacityReservation

athena:CreateCapacityReservation

寫入

athena:TagResource

標記、寫入

CreateDataCatalog

athena:CreateDataCatalog

寫入

athena:TagResource

標記、寫入

CreateNamedQuery

athena:CreateNamedQuery

寫入

CreateNotebook

athena:CreateNotebook

寫入

CreatePreparedStatement

athena:CreatePreparedStatement

寫入

CreatePresignedNotebookUrl

athena:CreatePresignedNotebookUrl

寫入

CreateWorkGroup

athena:CreateWorkGroup

寫入

athena:TagResource

標記、寫入

iam:PassRole

iam:PassedToService

athena.amazonaws.com

寫入

DeleteCapacityReservation

athena:DeleteCapacityReservation

寫入

DeleteDataCatalog

athena:DeleteDataCatalog

寫入

DeleteNamedQuery

athena:DeleteNamedQuery

寫入

DeleteNotebook

athena:DeleteNotebook

寫入

DeletePreparedStatement

athena:DeletePreparedStatement

寫入

DeleteWorkGroup

athena:DeleteWorkGroup

寫入

ExportNotebook

athena:ExportNotebook

寫入

GetCalculationExecution

athena:GetCalculationExecution

讀取

GetCalculationExecutionCode

athena:GetCalculationExecutionCode

讀取

GetCalculationExecutionStatus

athena:GetCalculationExecutionStatus

讀取

GetCapacityAssignmentConfiguration

athena:GetCapacityAssignmentConfiguration

讀取

GetCapacityReservation

athena:GetCapacityReservation

讀取

GetDataCatalog

athena:GetDataCatalog

讀取

GetDatabase

athena:GetDatabase

讀取

GetNamedQuery

athena:GetNamedQuery

讀取

GetNotebookMetadata

athena:GetNotebookMetadata

讀取

GetPreparedStatement

athena:GetPreparedStatement

讀取

GetQueryExecution

athena:GetQueryExecution

讀取

GetQueryResults

athena:GetQueryResults

讀取

GetQueryRuntimeStatistics

athena:GetQueryRuntimeStatistics

讀取

GetResourceDashboard

athena:GetResourceDashboard

讀取

GetSession

athena:GetSession

讀取

GetSessionEndpoint

athena:GetSessionEndpoint

寫入

GetSessionStatus

athena:GetSessionStatus

讀取

GetTableMetadata

athena:GetTableMetadata

讀取

GetWorkGroup

athena:GetWorkGroup

讀取

ImportNotebook

athena:ImportNotebook

寫入

ListApplicationDPUSizes

athena:ListApplicationDPUSizes

清單

ListCalculationExecutions

athena:ListCalculationExecutions

清單

ListCapacityReservations

athena:ListCapacityReservations

清單

ListDataCatalogs

athena:ListDataCatalogs

清單

ListDatabases

athena:ListDatabases

清單

ListEngineVersions

athena:ListEngineVersions

讀取

ListExecutors

athena:ListExecutors

清單

ListNamedQueries

athena:ListNamedQueries

清單

ListNotebookMetadata

athena:ListNotebookMetadata

清單

ListNotebookSessions

athena:ListNotebookSessions

清單

ListPreparedStatements

athena:ListPreparedStatements

清單

ListQueryExecutions

athena:ListQueryExecutions

讀取

ListSessions

athena:ListSessions

清單

ListTableMetadata

athena:ListTableMetadata

讀取

ListTagsForResource

athena:ListTagsForResource

讀取

ListWorkGroups

athena:ListWorkGroups

清單

PutCapacityAssignmentConfiguration

athena:PutCapacityAssignmentConfiguration

寫入

StartCalculationExecution

athena:StartCalculationExecution

寫入

StartQueryExecution

athena:StartQueryExecution

寫入

StartSession

athena:ListTagsForResource

讀取

athena:StartSession

寫入

athena:TagResource

標記、寫入

iam:PassRole

iam:PassedToService

athena.amazonaws.com

寫入

StopCalculationExecution

athena:StopCalculationExecution

寫入

StopQueryExecution

athena:StopQueryExecution

寫入

TagResource

athena:TagResource

標記、寫入

TerminateSession

athena:TerminateSession

寫入

UntagResource

athena:UntagResource

標記、寫入

UpdateCapacityReservation

athena:UpdateCapacityReservation

寫入

UpdateDataCatalog

athena:UpdateDataCatalog

寫入

UpdateNamedQuery

athena:UpdateNamedQuery

寫入

UpdateNotebook

athena:UpdateNotebook

寫入

UpdateNotebookMetadata

athena:UpdateNotebookMetadata

寫入

UpdatePreparedStatement

athena:UpdatePreparedStatement

寫入

UpdateWorkGroup

athena:UpdateWorkGroup

寫入

iam:PassRole

iam:PassedToService

athena.amazonaws.com

寫入

Amazon Athena 定義的動作

您可在 IAM 政策陳述式的 Action 元素中指定以下動作。使用政策來授予在 AWS中執行操作的許可。在政策中使用動作時,通常會允許或拒絕存取相同名稱的 API 操作或 CLI 命令。不過,在某些情況下,單一動作可控制對多個操作的存取。或者,某些操作需要多種不同的動作。

動作 說明 資源類型 (*必填項目) 條件索引鍵 存取層級

BatchGetNamedQuery

准許取得關於一或多個具名查詢的資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

BatchGetPreparedStatement

准許取得一或多個預備陳述式的相關資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

BatchGetQueryExecution

准許取得關於一或多個查詢執行的資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

CancelCapacityReservation

准許取消容量保留

capacity-reservation*

aws:ResourceTag/${TagKey}

寫入

CancelQueryExecution

授予許可取消查詢。已廢除。僅適用於使用 Athena JDBC 驅動程式早於 1.1.0 AWS 的服務和主體。否則,請使用 StopQueryExecution

工作群組*

aws:ResourceTag/${TagKey}

寫入

CreateCapacityReservation

准許建立容量保留

capacity-reservation*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateDataCatalog

准許建立 datacatalog

datacatalog*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateNamedQuery

准許建立具名查詢

工作群組*

aws:ResourceTag/${TagKey}

寫入

CreateNotebook

准許建立筆記本

工作群組*

aws:ResourceTag/${TagKey}

寫入

CreatePreparedStatement

准許建立預備陳述式

工作群組*

aws:ResourceTag/${TagKey}

寫入

CreatePresignedNotebookUrl

准許建立預先簽章的筆記本 URL

工作群組*

aws:ResourceTag/${TagKey}

寫入

CreateWorkGroup

准許建立工作群組

工作群組*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

DeleteCapacityReservation

准許刪除容量保留

capacity-reservation*

aws:ResourceTag/${TagKey}

寫入

DeleteDataCatalog

准許刪除 datacatalog

datacatalog*

aws:ResourceTag/${TagKey}

寫入

DeleteNamedQuery

准許刪除指定的具名查詢

工作群組*

aws:ResourceTag/${TagKey}

寫入

DeleteNotebook

准許刪除筆記本

工作群組*

aws:ResourceTag/${TagKey}

寫入

DeletePreparedStatement

准許刪除指定的預備陳述式

工作群組*

aws:ResourceTag/${TagKey}

寫入

DeleteWorkGroup

准許刪除工作群組

工作群組*

aws:ResourceTag/${TagKey}

寫入

ExportNotebook

准許匯出筆記本

工作群組*

aws:ResourceTag/${TagKey}

寫入

GetCalculationExecution

准許取得計算執行

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetCalculationExecutionCode

准許取得計算執行程式碼

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetCalculationExecutionStatus

准許取得計算執行狀態

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetCapacityAssignmentConfiguration

准許取得容量保留的容量指派資訊

capacity-reservation*

aws:ResourceTag/${TagKey}

讀取

GetCapacityReservation

准許取得容量保留

capacity-reservation*

aws:ResourceTag/${TagKey}

讀取

GetCatalogs

授予許可來存取資料庫和表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetDataCatalog

准許取得 datacatalog

datacatalog*

aws:ResourceTag/${TagKey}

讀取

GetDatabase

准許取得指定 datacatalog 的資料庫

datacatalog*

aws:ResourceTag/${TagKey}

讀取

GetExecutionEngine

授予許可來存取指定的資料庫和表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetExecutionEngines

授予許可來存取資料庫和表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetNamedQuery

准許取得關於指定具名查詢的資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetNamespace

授予許可來存取指定的資料庫和表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetNamespaces

授予許可來存取資料庫和表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetNotebookMetadata

准許取得筆記本中繼資料

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetPreparedStatement

准許取得關於指定預備陳述式的資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetQueryExecution

准許取得關於指定查詢執行的資訊

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetQueryExecutions

授予許可執行查詢 已廢除。僅適用於使用 Athena JDBC 驅動程式早於 1.1.0 AWS 的服務和主體。否則,使用 ListQueryExecutions。

讀取

GetQueryResults

准許取得查詢結果

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetQueryResultsStream

准許取得查詢結果串流

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetQueryRuntimeStatistics

准許取得指定查詢執行的執行時間統計資料

工作群組*

aws:ResourceTag/${TagKey}

讀取

GetResourceDashboard

准許取得工作階段的即時 UI/持久性 UI

工作階段

aws:ResourceTag/${TagKey}

讀取

工作群組*

aws:ResourceTag/${TagKey}

GetSession

准許取得工作階段

工作階段

aws:ResourceTag/${TagKey}

讀取

工作群組*

aws:ResourceTag/${TagKey}

GetSessionEndpoint

准許取得指定工作階段 ID 的連線端點和身分驗證字符

工作階段

aws:ResourceTag/${TagKey}

寫入

工作群組*

aws:ResourceTag/${TagKey}

GetSessionStatus

准許取得工作階段狀態

工作階段

aws:ResourceTag/${TagKey}

讀取

工作群組*

aws:ResourceTag/${TagKey}

GetTable

授予許可來存取指定的表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetTableMetadata

准許取得指定 datacatalog 的資料表中繼資料

datacatalog*

aws:ResourceTag/${TagKey}

讀取

GetTables

授予許可來存取表格。僅適用於使用 Athena JDBC 驅動程式 1.1.0 版 AWS 的服務受管政策和委託人

讀取

GetWorkGroup

准許取得工作群組

工作群組*

aws:ResourceTag/${TagKey}

讀取

ImportNotebook

准許匯入筆記本

工作群組*

aws:ResourceTag/${TagKey}

寫入

ListApplicationDPUSizes

准許傳回 ApplicationRuntimeIds 清單

清單

ListCalculationExecutions

准許傳回計算執行清單

工作群組*

aws:ResourceTag/${TagKey}

清單

ListCapacityReservations

准許傳回指定容量保留的清單 AWS 帳戶

清單

ListDataCatalogs

准許傳回指定 的資料目錄清單 AWS 帳戶

清單

ListDatabases

准許傳回指定 datacatalog 的資料庫清單

datacatalog*

aws:ResourceTag/${TagKey}

清單

ListEngineVersions

准許傳回指定 的 athena 引擎版本清單 AWS 帳戶

讀取

ListExecutors

准許傳回執行器清單

清單

ListNamedQueries

准許在 Amazon Athena 中傳回指定 的具名查詢清單 AWS 帳戶

工作群組*

aws:ResourceTag/${TagKey}

清單

ListNotebookMetadata

准許傳回指定工作群組的筆記本清單

工作群組*

aws:ResourceTag/${TagKey}

清單

ListNotebookSessions

准許傳回指定記事本的工作階段清單

工作群組*

aws:ResourceTag/${TagKey}

清單

ListPreparedStatements

准許傳回指定工作群組的預備陳述式清單

工作群組*

aws:ResourceTag/${TagKey}

清單

ListQueryExecutions

准許傳回指定 的查詢執行清單 AWS 帳戶

工作群組*

aws:ResourceTag/${TagKey}

讀取

ListSessions

准許傳回指定工作群組的工作階段清單

工作群組*

aws:ResourceTag/${TagKey}

清單

ListTableMetadata

准許傳回指定 datacatalog 的資料庫中的資料表中繼資料清單

datacatalog*

aws:ResourceTag/${TagKey}

讀取

ListTagsForResource

准許為資源傳回標籤清單

capacity-reservation*

aws:ResourceTag/${TagKey}

讀取

datacatalog*

aws:ResourceTag/${TagKey}

工作階段*

aws:ResourceTag/${TagKey}

工作群組*

aws:ResourceTag/${TagKey}

ListWorkGroups

准許傳回指定 的工作群組清單 AWS 帳戶

清單

PutCapacityAssignmentConfiguration

准許將容量從容量保留指派給查詢

capacity-reservation*

aws:ResourceTag/${TagKey}

寫入

工作群組*

aws:ResourceTag/${TagKey}

RunQuery

授予許可取消查詢 已廢除。僅適用於使用 Athena JDBC 驅動程式早於 1.1.0 AWS 的服務和主體。否則,使用 StartQueryExecution。

寫入

StartCalculationExecution

准許啟動計算執行

工作群組*

aws:ResourceTag/${TagKey}

寫入

StartQueryExecution

准許使用作為字串提供的 SQL 查詢以開始查詢執行

工作群組*

aws:ResourceTag/${TagKey}

寫入

StartSession

准許啟動工作階段

工作階段

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

工作群組*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

StopCalculationExecution

准許停止計算執行

工作群組*

aws:ResourceTag/${TagKey}

寫入

StopQueryExecution

准許停止指定的查詢執行

工作群組*

aws:ResourceTag/${TagKey}

寫入

TagResource

准許將標籤新增至資源

capacity-reservation*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

datacatalog*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

工作階段*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

工作群組*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

TerminateSession

准許終止工作階段

工作階段

aws:ResourceTag/${TagKey}

寫入

工作群組*

aws:ResourceTag/${TagKey}

UntagResource

准許從資源移除標籤

capacity-reservation*

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

datacatalog*

aws:ResourceTag/${TagKey}

aws:TagKeys

工作階段*

aws:ResourceTag/${TagKey}

aws:TagKeys

工作群組*

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateCapacityReservation

准許更新容量保留

capacity-reservation*

aws:ResourceTag/${TagKey}

寫入

UpdateDataCatalog

准許更新 datacatalog

datacatalog*

aws:ResourceTag/${TagKey}

寫入

UpdateNamedQuery

准許更新指定的具名查詢

工作群組*

aws:ResourceTag/${TagKey}

寫入

UpdateNotebook

准許更新筆記本

工作群組*

aws:ResourceTag/${TagKey}

寫入

UpdateNotebookMetadata

准許更新筆記本中繼資料

工作群組*

aws:ResourceTag/${TagKey}

寫入

UpdatePreparedStatement

准許更新預備陳述式

工作群組*

aws:ResourceTag/${TagKey}

寫入

UpdateWorkGroup

准許更新工作群組

工作群組*

aws:ResourceTag/${TagKey}

寫入

Amazon Athena 定義的資源類型

此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。

資源類型 ARN 條件索引鍵

capacity-reservation

arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}

aws:ResourceTag/${TagKey}

datacatalog

arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}

aws:ResourceTag/${TagKey}

工作階段

arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}

aws:ResourceTag/${TagKey}

工作群組

arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}

aws:ResourceTag/${TagKey}

Amazon Athena 條件索引鍵

Amazon Athena 定義了下列條件索引鍵,可用於 IAM 政策的 Condition 元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依請求中的標籤鍵值對是否存在篩選存取權

String

aws:ResourceTag/${TagKey}

依連接到資源的標籤鍵值對篩選存取權

String

aws:TagKeys

依請求中存在的標籤索引鍵篩選存取權

ArrayOfString