View a markdown version of this page

Amazon S3 文件的操作、资源和条件密钥 - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

Amazon S3 文件的操作、资源和条件密钥

亚马逊 S3 文件(服务前缀: s3files) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

亚马逊 S3 文件定义的 API 操作

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

CreateAccessPoint

s3files:CreateAccessPoint

写入

s3files:TagResource

标记、写入

CreateFileSystem

s3files:CreateFileSystem

写入

s3files:TagResource

标记、写入

iam:PassRole

iam:PassedToService

elasticfilesystem.amazonaws.com

写入

CreateMountTarget

s3files:CreateMountTarget

写入

DeleteAccessPoint

s3files:DeleteAccessPoint

写入

DeleteFileSystem

s3files:DeleteFileSystem

写入

DeleteFileSystemPolicy

s3files:DeleteFileSystemPolicy

权限管理,写入

DeleteMountTarget

s3files:DeleteMountTarget

写入

GetAccessPoint

s3files:GetAccessPoint

读取

GetFileSystem

s3files:GetFileSystem

读取

GetFileSystemPolicy

s3files:GetFileSystemPolicy

读取

GetMountTarget

s3files:GetMountTarget

读取

GetSynchronizationConfiguration

s3files:GetSynchronizationConfiguration

读取

ListAccessPoints

s3files:ListAccessPoints

列表

ListFileSystems

s3files:ListFileSystems

列表

ListMountTargets

s3files:ListMountTargets

列表

ListTagsForResource

s3files:ListTagsForResource

读取

PutFileSystemPolicy

s3files:PutFileSystemPolicy

权限管理,写入

PutSynchronizationConfiguration

s3files:PutSynchronizationConfiguration

写入

TagResource

s3files:TagResource

标记、写入

UntagResource

s3files:UntagResource

标记、写入

UpdateMountTarget

s3files:UpdateMountTarget

写入

亚马逊 S3 文件定义的操作

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

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

CreateAccessPoint

授予为指定文件系统创建访问点的权限

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateFileSystem

授予创建新文件系统的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

CreateMountTarget

授予为文件系统创建挂载目标的权限

file-system*

aws:ResourceTag/${TagKey}

写入

DeleteAccessPoint

授予删除指定接入点的权限

access-point*

aws:ResourceTag/${TagKey}

写入

DeleteFileSystem

授予删除指定文件系统的权限

file-system*

aws:ResourceTag/${TagKey}

写入

DeleteFileSystemPolicy

授予删除指定文件系统的 IAM 资源策略的权限

file-system*

aws:ResourceTag/${TagKey}

权限管理,写入

DeleteMountTarget

授予删除指定挂载目标的权限

file-system*

aws:ResourceTag/${TagKey}

写入

GetAccessPoint

授予获取指定接入点资源信息的权限

access-point*

aws:ResourceTag/${TagKey}

读取

GetFileSystem

授予获取指定文件系统的资源信息的权限

file-system

aws:ResourceTag/${TagKey}

读取

GetFileSystemPolicy

授予获取指定文件系统的 IAM 资源策略的权限

file-system

aws:ResourceTag/${TagKey}

读取

GetMountTarget

授予获取指定挂载目标的资源信息的权限

file-system*

aws:ResourceTag/${TagKey}

读取

GetSynchronizationConfiguration

授予获取指定文件系统的同步配置的权限

file-system*

aws:ResourceTag/${TagKey}

读取

ListAccessPoints

授予获取账户中所有接入点的分页列表的权限

access-point*

aws:ResourceTag/${TagKey}

列表

ListFileSystems

授予获取账户中所有文件系统的分页列表的权限

file-system

aws:ResourceTag/${TagKey}

列表

ListMountTargets

授予获取账户中所有挂载目标的分页列表的权限

file-system*

aws:ResourceTag/${TagKey}

列表

ListTagsForResource

授予列出指定 S3 文件资源标签的权限

access-point

aws:ResourceTag/${TagKey}

读取

file-system

aws:ResourceTag/${TagKey}

PutFileSystemPolicy

授予向指定文件系统添加 IAM 资源策略的权限

file-system*

aws:ResourceTag/${TagKey}

权限管理,写入

PutSynchronizationConfiguration

授予向指定文件系统添加同步配置的权限

file-system*

aws:ResourceTag/${TagKey}

写入

TagResource

授予标记指定 S3 文件资源的权限

access-point

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3files:CreateAction

标记、写入

file-system

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

s3files:CreateAction

UntagResource

授予取消标记指定 S3 文件资源的权限

access-point

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

file-system

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateMountTarget

授予更新指定装载目标的资源信息的权限

file-system*

aws:ResourceTag/${TagKey}

写入

Permission-only 亚马逊 S3 文件的操作

以下操作由 Amazon S3 文件定义,但不能通过任何 API 操作直接调用。它们只能在 IAM 政策声明中用于授予或拒绝权限。

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

ClientMount

授予允许 NFS 客户端对文件系统进行读取访问的权限

file-system*

aws:ResourceTag/${TagKey}

s3files:AccessPointArn

读取

ClientRootAccess

授予允许 NFS 客户端对文件系统进行根访问的权限

file-system*

aws:ResourceTag/${TagKey}

s3files:AccessPointArn

写入

ClientWrite

授予允许 NFS 客户端对文件系统进行写入访问的权限

file-system*

aws:ResourceTag/${TagKey}

s3files:AccessPointArn

写入

Amazon S3 文件定义的资源类型

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

资源类型 ARN 条件键

access-point

arn:${Partition}:s3files:${Region}:${Account}:file-system/${FileSystemId}/access-point/${AccessPointId}

aws:ResourceTag/${TagKey}

file-system

arn:${Partition}:s3files:${Region}:${Account}:file-system/${FileSystemId}

aws:ResourceTag/${TagKey}

亚马逊 S3 文件的条件密钥

Amazon S3 文件定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

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

String

aws:ResourceTag/${TagKey}

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

String

aws:TagKeys

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

ArrayOfString

s3files:AccessPointArn

按用于挂载文件系统的访问点的 ARN 筛选访问

ARN

s3files:CreateAction

按资源创建 API 操作的名称筛选访问

String