View a markdown version of this page

的操作、资源和条件键 AWS SQL Workbench - 服务授权参考

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

的操作、资源和条件键 AWS SQL Workbench

AWS SQL 工作台(服务前缀: sqlworkbench) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

动作定义为 AWS SQL Workbench

AWS SQL Workbench 没有可用于的 API 操作 Actions IAM 政策声明的元素。

Permission-only 的操作 AWS SQL Workbench

以下操作定义为 AWS SQL 工作台,但不能通过任何 API 操作直接调用。它们只能在 IAM 政策声明中用于授予或拒绝权限。

操作 说明 资源类型(* 为必需) 条件键 访问级别

AssociateConnectionWithChart

授予将连接与图表关联的权限

chart*

aws:ResourceTag/${TagKey}

写入

connection*

aws:ResourceTag/${TagKey}

AssociateConnectionWithTab

授予将连接与选项卡关联的权限

connection*

aws:ResourceTag/${TagKey}

写入

AssociateNotebookWithTab

授予将笔记本与选项卡关联的权限

notebook*

aws:ResourceTag/${TagKey}

写入

AssociateQueryWithTab

授予将查询与选项卡关联的权限

query*

aws:ResourceTag/${TagKey}

写入

BatchDeleteFolder

授予权限以删除账户上的文件夹

写入

BatchGetNotebookCell

授予获取账户上笔记本单元格内容的权限

notebook*

aws:ResourceTag/${TagKey}

读取

CreateAccount

授予权限以创建 SQLWorkbench 账户

写入

CreateChart

授予权限以在账户上创建新保存的图表

chart*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateConnection

授予权限以在账户上创建新连接

connection*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateFolder

授予权限以在账户上创建文件夹

写入

CreateNotebook

授予在账户上创建新笔记本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateNotebookCell

授予在账户上创建笔记本单元格的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateNotebookFromVersion

授予在账户上从笔记本版本创建新笔记本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateNotebookVersion

授予在账户上创建笔记本版本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateSavedQuery

授予权限以在账户上创建新保存的查询

query*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

DeleteChart

授予权限以删除账户上的图表

chart*

aws:ResourceTag/${TagKey}

写入

DeleteConnection

授予权限以删除账户上的连接

connection*

aws:ResourceTag/${TagKey}

写入

DeleteNotebook

授予在账户上移除笔记本的权限

notebook*

aws:ResourceTag/${TagKey}

写入

DeleteNotebookCell

授予在账户上移除笔记本单元格的权限

notebook*

aws:ResourceTag/${TagKey}

写入

DeleteNotebookVersion

授予在账户上移除笔记本单元格的权限

notebook*

aws:ResourceTag/${TagKey}

写入

DeleteQCustomContext

授予权限以删除账户范围的自定义上下文

写入

DeleteSavedQuery

授予权限以删除账户上已保存的查询

query*

aws:ResourceTag/${TagKey}

写入

DeleteSqlGenerationContext

授予权限以删除 sql 生成上下文

写入

DeleteTab

授予权限以删除账户上的选项卡

写入

DriverExecute

授予权限以在 Redshift 集群中执行查询

connection*

aws:ResourceTag/${TagKey}

写入

DuplicateNotebook

授予在账户上通过复制现有笔记本来创建新笔记本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

ExportNotebook

授予在账户上导出笔记本的权限

notebook*

aws:ResourceTag/${TagKey}

读取

GenerateSession

授予权限以在账户上生成新会话

写入

GetAccountInfo

授予权限以获取账户信息

读取

GetAccountSettings

授予获取账户设置的权限

读取

GetAutocompletionMetadata

授予权限以获取数据库结构元数据以实现自动完成

读取

GetAutocompletionResource

授予权限以获取数据库结构信息以实现自动完成

读取

GetChart

授予权限以获取账户上的图表

chart*

aws:ResourceTag/${TagKey}

读取

GetConnection

授予权限以获取账户上的连接

connection*

aws:ResourceTag/${TagKey}

读取

GetNotebook

授予在账户上获取笔记本元数据的权限

notebook*

aws:ResourceTag/${TagKey}

读取

GetNotebookVersion

授予在账户上获取笔记本版本内容的权限

notebook*

aws:ResourceTag/${TagKey}

读取

GetQCustomContext

授予权限以获取账户范围的自定义上下文

读取

GetQSqlPromptQuotas

授予权限以获取 Q 生成式 SQL 最大提示配额

读取

GetQSqlRecommendations

授予获取从文本转 SQL 建议的权限

读取

GetQueryExecutionHistory

授予获取账户的查询执行历史记录的权限

读取

GetSavedQuery

授予权限以获取账户上已保存的查询

query*

aws:ResourceTag/${TagKey}

读取

GetSchemaInference

授予权限以获取从文件推断的列和数据类型

读取

GetSqlGenerationContext

授予权限以获取 sql 生成上下文

读取

GetSqlRecommendations

授予获取从文本转 SQL 建议的权限

读取

GetUserInfo

授予权限以获取用户信息

读取

GetUserWorkspaceSettings

授予权限以获取账户中的工作区设置

读取

ImportNotebook

授予在账户上导入笔记本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

ListConnections

授予权限以列出账户上的连接

列表

ListDatabases

授予权限以列出 Redshift 集群的数据库

列表

ListFiles

授予权限以列出文件和文件夹

列表

ListNotebookVersions

授予在账户上获取笔记本版本元数据的权限

notebook*

aws:ResourceTag/${TagKey}

列表

ListNotebooks

授予在账户上列出笔记本的权限

列表

ListQueryExecutionHistory

授予列出账户的查询执行历史记录的权限

列表

ListRedshiftClusters

授予权限以列出账户上的 Redshift 集群

列表

ListSampleDatabases

授予权限以列出示例数据库

读取

ListSavedQueryVersions

授予权限以列出账户上已保存的查询的版本

query*

aws:ResourceTag/${TagKey}

列表

ListTabs

授予权限以列出账户中的选项卡

列表

ListTaggedResources

授予列出标记的资源的权限

读取

ListTagsForResource

授予权限以列出 sqlworkbench 资源的标签

chart

aws:ResourceTag/${TagKey}

读取

connection

aws:ResourceTag/${TagKey}

notebook

aws:ResourceTag/${TagKey}

query

aws:ResourceTag/${TagKey}

PassAccountSettings

授予权限以在请求中提供账户设置

写入

PutQCustomContext

授予权限以更新账户范围的自定义上下文

写入

PutSqlGenerationContext

授予权限以更新 sql 生成上下文

写入

PutTab

授予权限以创建或更新账户上的选项卡

写入

PutUserWorkspaceSettings

授予权限以更新账户中的工作区设置

写入

RestoreNotebookVersion

授予在账户上将笔记本恢复到某个版本的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

TagResource

授予权限以标记 sqlworkbench 资源

chart

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

connection

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

notebook

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

标记、写入

connection

aws:ResourceTag/${TagKey}

aws:TagKeys

notebook

aws:ResourceTag/${TagKey}

aws:TagKeys

query

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAccountConnectionSettings

授予权限以更新账户范围的连接设置

写入

UpdateAccountExportSettings

授予权限以更新账户范围的导出设置

写入

UpdateAccountGeneralSettings

授予权限以更新账户范围的常规设置

写入

UpdateAccountQSqlSettings

授予更新账户范围的文本转 SQL 设置的权限

写入

UpdateChart

授予权限以更新账户上的图表

chart*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

UpdateConnection

授予权限以更新账户上的连接

connection*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

UpdateFileFolder

授予权限以移动账户上的文件

chart

aws:ResourceTag/${TagKey}

写入

query

aws:ResourceTag/${TagKey}

UpdateFolder

授予权限以更新账户上的文件夹名称和详细信息

写入

UpdateNotebook

授予在账户上更新笔记本元数据的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

UpdateNotebookCellContent

授予在账户上更新笔记本单元格内容的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

UpdateNotebookCellLayout

授予在账户上更新笔记本单元格布局的权限

notebook*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

UpdateSavedQuery

授予权限以更新账户上已保存的查询

query*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

资源类型定义为 AWS SQL Workbench

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

chart

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

aws:ResourceTag/${TagKey}

connection

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

aws:ResourceTag/${TagKey}

notebook

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

aws:ResourceTag/${TagKey}

query

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

aws:ResourceTag/${TagKey}

的条件密钥 AWS SQL Workbench

AWS SQL Workbench 定义了以下条件键,这些条件键可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

按请求中传递的标签筛选访问权限

String

aws:ResourceTag/${TagKey}

按与资源关联的标签筛选访问权限

String

aws:TagKeys

按请求中传递的标签键筛选访问权限

ArrayOfString