View a markdown version of this page

AWS SQL Workbench 的動作、資源和條件索引鍵 - 服務授權參考

AWS SQL Workbench 的動作、資源和條件索引鍵

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

參考資料:

AWS SQL Workbench 定義的動作

AWS SQL Workbench 沒有可用於 IAM 政策陳述式 Actions元素的 API 操作。

AWS SQL Workbench 的僅限許可動作

下列動作是由 AWS SQL Workbench 定義,但無法透過任何 API 操作直接叫用。它們只能在 IAM 政策陳述式中使用,以授予或拒絕許可。

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

AssociateConnectionWithChart

准許將連線與圖建立關聯

圖表*

aws:ResourceTag/${TagKey}

寫入

連線*

aws:ResourceTag/${TagKey}

AssociateConnectionWithTab

准許將連線與索引標籤建立關聯

連線*

aws:ResourceTag/${TagKey}

寫入

AssociateNotebookWithTab

准許將筆記本與索引標籤建立關聯

筆記本*

aws:ResourceTag/${TagKey}

寫入

AssociateQueryWithTab

准許將查詢與資料表建立關聯

查詢*

aws:ResourceTag/${TagKey}

寫入

BatchDeleteFolder

准許刪除帳戶中的資料夾

寫入

BatchGetNotebookCell

准許在帳戶中取得筆記本儲存格內容

筆記本*

aws:ResourceTag/${TagKey}

讀取

CreateAccount

准許建立 SQLWorkbench 帳戶

寫入

CreateChart

准許在帳戶中建立新的已儲存圖表

圖表*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateConnection

准許在帳戶中建立新的連線

連線*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateFolder

准許在帳戶中建立資料夾

寫入

CreateNotebook

准許在帳戶中建立新的筆記本

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateNotebookCell

准許在帳戶中建立筆記本儲存格

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateNotebookFromVersion

准許在帳戶中的筆記本版本建立新的記事本

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateNotebookVersion

准許在帳戶中建立筆記本版本

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateSavedQuery

准許在帳戶中建立新的已儲存查詢

查詢*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

DeleteChart

准許移除帳戶中的圖表

圖表*

aws:ResourceTag/${TagKey}

寫入

DeleteConnection

准許移除帳戶中的連線

連線*

aws:ResourceTag/${TagKey}

寫入

DeleteNotebook

准許移除帳戶中的筆記本

筆記本*

aws:ResourceTag/${TagKey}

寫入

DeleteNotebookCell

准許移除帳戶中的筆記本儲存格

筆記本*

aws:ResourceTag/${TagKey}

寫入

DeleteNotebookVersion

准許移除帳戶中的筆記本儲存格

筆記本*

aws:ResourceTag/${TagKey}

寫入

DeleteQCustomContext

准許刪除整個帳戶的自訂內容

寫入

DeleteSavedQuery

准許移除帳戶中已儲存的查詢

查詢*

aws:ResourceTag/${TagKey}

寫入

DeleteSqlGenerationContext

准許刪除 sql 產生內容

寫入

DeleteTab

准許移除帳戶中的索引標籤

寫入

DriverExecute

准許在 Redshift 叢集中執行查詢

連線*

aws:ResourceTag/${TagKey}

寫入

DuplicateNotebook

准許在帳戶中複製現有的記事本,以建立新的筆記本

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

ExportNotebook

准許匯出帳戶中的記事本

筆記本*

aws:ResourceTag/${TagKey}

讀取

GenerateSession

准許在帳戶中產生新的工作階段

寫入

GetAccountInfo

准許取得帳戶資訊

讀取

GetAccountSettings

准許取得帳戶設定

讀取

GetAutocompletionMetadata

准許取得自動完成資料庫結構中繼資料

讀取

GetAutocompletionResource

准許取得自動完成資料庫結構資訊

讀取

GetChart

准許在帳戶中取得圖表

圖表*

aws:ResourceTag/${TagKey}

讀取

GetConnection

准許在帳戶中取得連線

連線*

aws:ResourceTag/${TagKey}

讀取

GetNotebook

准許在帳戶中取得筆記本中繼資料

筆記本*

aws:ResourceTag/${TagKey}

讀取

GetNotebookVersion

准許在帳戶中取得筆記本版本的內容

筆記本*

aws:ResourceTag/${TagKey}

讀取

GetQCustomContext

准許取得整個帳戶的自訂內容

讀取

GetQSqlPromptQuotas

准許取得 Q 生成式 SQL 最大提示配額

讀取

GetQSqlRecommendations

准許取得 SQL 建議的文字

讀取

GetQueryExecutionHistory

准許取得帳戶的查詢執行記錄

讀取

GetSavedQuery

准許在帳戶中取得已儲存的查詢

查詢*

aws:ResourceTag/${TagKey}

讀取

GetSchemaInference

准許取得從檔案中推斷出的欄和資料類型

讀取

GetSqlGenerationContext

准許取得 sql 產生內容

讀取

GetSqlRecommendations

准許取得 SQL 建議的文字

讀取

GetUserInfo

准許取得使用者資訊

讀取

GetUserWorkspaceSettings

准許在帳戶中取得工作空間設定

讀取

ImportNotebook

准許將筆記本匯入帳戶中

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

ListConnections

准許在帳戶中列出連線

清單

ListDatabases

准許列出 Redshift 叢集的資料庫

清單

ListFiles

准許列出檔案和資料夾

清單

ListNotebookVersions

准許在帳戶中取得筆記本版本中繼資料

筆記本*

aws:ResourceTag/${TagKey}

清單

ListNotebooks

准許在帳戶中列出筆記本

清單

ListQueryExecutionHistory

准許列出帳戶的查詢執行記錄

清單

ListRedshiftClusters

准許在帳戶中列出 Redshift 叢集

清單

ListSampleDatabases

准許列出範例資料庫

讀取

ListSavedQueryVersions

准許在帳戶中列出已儲存查詢的版本

查詢*

aws:ResourceTag/${TagKey}

清單

ListTabs

准許在帳戶中列出索引標籤

清單

ListTaggedResources

准許列出帶標籤的資源

讀取

ListTagsForResource

准許列出 sqlworkbench 資源的標籤

chart

aws:ResourceTag/${TagKey}

讀取

連線

aws:ResourceTag/${TagKey}

筆記本

aws:ResourceTag/${TagKey}

query

aws:ResourceTag/${TagKey}

PassAccountSettings

准許使用 請求提供帳戶設定

寫入

PutQCustomContext

准許更新整個帳戶的自訂內容

寫入

PutSqlGenerationContext

准許更新 sql 產生內容

寫入

PutTab

准許在帳戶中建立或更新索引標籤

寫入

PutUserWorkspaceSettings

准許在帳戶中更新工作空間設定

寫入

RestoreNotebookVersion

准許在帳戶中還原筆記本到版本

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

TagResource

准許標記 sqlworkbench 資源

chart

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

連線

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

筆記本

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

query

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

准許取消標記 sqlworkbench 資源

chart

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

連線

aws:ResourceTag/${TagKey}

aws:TagKeys

筆記本

aws:ResourceTag/${TagKey}

aws:TagKeys

query

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAccountConnectionSettings

准許更新整個帳戶的連線設定

寫入

UpdateAccountExportSettings

授予許可以更新整個帳戶的匯出設定

寫入

UpdateAccountGeneralSettings

准許更新整個帳戶的一般設定

寫入

UpdateAccountQSqlSettings

准許更新 SQL 設定的帳戶層級文字

寫入

UpdateChart

准許在帳戶中更新圖表

圖表*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

UpdateConnection

准許在帳戶中更新連線

連線*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

UpdateFileFolder

准許在帳戶中移動檔案

chart

aws:ResourceTag/${TagKey}

寫入

query

aws:ResourceTag/${TagKey}

UpdateFolder

准許在帳戶中更新資料夾名稱和詳細資訊

寫入

UpdateNotebook

准許在帳戶中更新筆記本中繼資料

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

UpdateNotebookCellContent

准許在帳戶中更新筆記本儲存格內容

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

UpdateNotebookCellLayout

准許在帳戶中更新筆記本版面儲存格

筆記本*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

UpdateSavedQuery

准許在帳戶中更新已儲存的查詢

查詢*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

AWS SQL Workbench 定義的資源類型

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

資源類型 ARN 條件索引鍵

圖表

arn:${Partition}:sqlworkbench:${Region}:${Account}:chart/${ResourceId}

aws:ResourceTag/${TagKey}

連線

arn:${Partition}:sqlworkbench:${Region}:${Account}:connection/${ResourceId}

aws:ResourceTag/${TagKey}

筆記本

arn:${Partition}:sqlworkbench:${Region}:${Account}:notebook/${ResourceId}

aws:ResourceTag/${TagKey}

查詢

arn:${Partition}:sqlworkbench:${Region}:${Account}:query/${ResourceId}

aws:ResourceTag/${TagKey}

AWS SQL Workbench 的條件索引鍵

AWS SQL Workbench 定義下列條件索引鍵,可用於 IAM 政策的 Condition元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依要求中傳遞的標籤來篩選存取權

String

aws:ResourceTag/${TagKey}

依與資源關聯的標籤來篩選存取權

String

aws:TagKeys

依要求中傳遞的標籤索引鍵來篩選存取權

ArrayOfString