View a markdown version of this page

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

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

Amazon FSx 的操作、资源和条件键

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

参考:

亚马逊 FSx 定义的 API 操作

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

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

AssociateFileSystemAliases

fsx:AssociateFileSystemAliases

写入

CancelDataRepositoryTask

fsx:CancelDataRepositoryTask

写入

CopyBackup

fsx:CopyBackup

写入

fsx:TagResource

标记、写入

CopySnapshotAndUpdateVolume

fsx:CopySnapshotAndUpdateVolume

写入

CreateAndAttachS3AccessPoint

fsx:CreateAndAttachS3AccessPoint

写入

CreateBackup

fsx:CreateBackup

写入

fsx:TagResource

标记、写入

CreateDataRepositoryAssociation

fsx:CreateDataRepositoryAssociation

写入

fsx:TagResource

标记、写入

CreateDataRepositoryTask

fsx:CreateDataRepositoryTask

写入

fsx:TagResource

标记、写入

CreateFileCache

fsx:CreateDataRepositoryAssociation

写入

fsx:CreateFileCache

写入

fsx:TagResource

标记、写入

CreateFileSystem

fsx:CreateFileSystem

写入

fsx:TagResource

标记、写入

CreateFileSystemFromBackup

fsx:CreateFileSystemFromBackup

写入

fsx:TagResource

标记、写入

CreateSnapshot

fsx:CreateSnapshot

写入

fsx:TagResource

标记、写入

CreateStorageVirtualMachine

fsx:CreateStorageVirtualMachine

写入

fsx:TagResource

标记、写入

CreateVolume

fsx:CreateVolume

写入

fsx:TagResource

标记、写入

CreateVolumeFromBackup

fsx:CreateVolumeFromBackup

写入

fsx:TagResource

标记、写入

DeleteBackup

fsx:DeleteBackup

写入

DeleteDataRepositoryAssociation

fsx:DeleteDataRepositoryAssociation

写入

DeleteFileCache

fsx:DeleteDataRepositoryAssociation

写入

fsx:DeleteFileCache

写入

DeleteFileSystem

fsx:CreateBackup

写入

fsx:DeleteFileSystem

写入

fsx:TagResource

标记、写入

DeleteSnapshot

fsx:DeleteSnapshot

写入

DeleteStorageVirtualMachine

fsx:DeleteStorageVirtualMachine

写入

DeleteVolume

fsx:BypassSnaplockEnterpriseRetention

权限管理,写入

fsx:DeleteVolume

写入

fsx:TagResource

标记、写入

DescribeBackups

fsx:DescribeBackups

读取

DescribeDataRepositoryAssociations

fsx:DescribeDataRepositoryAssociations

读取

DescribeDataRepositoryTasks

fsx:DescribeDataRepositoryTasks

读取

DescribeFileCaches

fsx:DescribeFileCaches

读取

DescribeFileSystemAliases

fsx:DescribeFileSystemAliases

读取

DescribeFileSystems

fsx:DescribeFileSystems

读取

DescribeS3AccessPointAttachments

fsx:DescribeS3AccessPointAttachments

读取

DescribeSharedVpcConfiguration

fsx:DescribeSharedVpcConfiguration

读取

DescribeSnapshots

fsx:DescribeSnapshots

读取

DescribeStorageVirtualMachines

fsx:DescribeStorageVirtualMachines

读取

DescribeVolumes

fsx:DescribeVolumes

读取

DetachAndDeleteS3AccessPoint

fsx:DetachAndDeleteS3AccessPoint

写入

DisassociateFileSystemAliases

fsx:DisassociateFileSystemAliases

写入

ListTagsForResource

fsx:ListTagsForResource

读取

ReleaseFileSystemNfsV3Locks

fsx:ReleaseFileSystemNfsV3Locks

写入

RestoreVolumeFromSnapshot

fsx:RestoreVolumeFromSnapshot

写入

StartMisconfiguredStateRecovery

fsx:StartMisconfiguredStateRecovery

写入

TagResource

fsx:TagResource

标记、写入

UntagResource

fsx:UntagResource

标记、写入

UpdateDataRepositoryAssociation

fsx:UpdateDataRepositoryAssociation

写入

UpdateFileCache

fsx:UpdateFileCache

写入

UpdateFileSystem

fsx:UpdateFileSystem

写入

UpdateSharedVpcConfiguration

fsx:UpdateSharedVpcConfiguration

写入

UpdateSnapshot

fsx:UpdateSnapshot

写入

UpdateStorageVirtualMachine

fsx:UpdateStorageVirtualMachine

写入

UpdateVolume

fsx:UpdateVolume

写入

Amazon FSx 定义的操作

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

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

AssociateFileSystemAliases

授予将 DNS 别名与 Amazon FSx for Windows File Server 文件系统关联的权限

file-system*

aws:ResourceTag/${TagKey}

Write

CancelDataRepositoryTask

授予取消数据存储库任务的权限

task*

aws:ResourceTag/${TagKey}

Write

CopyBackup

授予复制备份的权限

backup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CopySnapshotAndUpdateVolume

授予使用另一个 Amazon FSx for OpenZFS 文件系统快照来更新现有卷的权限

snapshot*

aws:ResourceTag/${TagKey}

写入

volume*

aws:ResourceTag/${TagKey}

CreateAndAttachS3AccessPoint

授予权限以创建 S3 接入点并将其附加到 FSx 文件系统

volume

aws:ResourceTag/${TagKey}

写入

CreateBackup

授予创建 Amazon FSx 文件系统或 Amazon FSx 卷的新备份的权限

backup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

file-system

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

volume

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateDataRepositoryAssociation

授予权限以为 Amazon FSx for Lustre 文件系统创建新的数据存储库关联

association*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:NfsDataRepositoryAuthenticationEnabled

fsx:NfsDataRepositoryEncryptionInTransitEnabled

写入

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateDataRepositoryTask

授予权限以为 Amazon FSx for Lustre 文件系统创建新的数据存储库任务

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

task*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateFileCache

授予创建新的空 Amazon 文件缓存的权限

association

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:NfsDataRepositoryAuthenticationEnabled

fsx:NfsDataRepositoryEncryptionInTransitEnabled

写入

file-cache*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateFileSystem

授予权限以创建新的空 Amazon FSx 文件系统

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateFileSystemFromBackup

授予权限以从现有备份中创建新的 Amazon FSx 文件系统

backup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateSnapshot

授予权限以在卷上创建新快照

snapshot*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

volume*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateStorageVirtualMachine

授予权限以在 Amazon FSx 适用于 Ontap 文件系统中创建新的存储虚拟机

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

storage-virtual-machine*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateVolume

授予权限以新建卷

snapshot

aws:ResourceTag/${TagKey}

写入

storage-virtual-machine

aws:ResourceTag/${TagKey}

volume*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

CreateVolumeFromBackup

授予权限以创建新的备份卷

backup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

写入

storage-virtual-machine*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

volume*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

DeleteBackup

授予权限以删除备份,从而删除其内容。在删除后,备份不再存在并且其数据不再可用

backup*

aws:ResourceTag/${TagKey}

写入

DeleteDataRepositoryAssociation

授予权限以删除数据存储库关联

association*

aws:ResourceTag/${TagKey}

写入

DeleteFileCache

授予删除文件缓存、删除其内容的权限

association

aws:ResourceTag/${TagKey}

写入

file-cache*

aws:ResourceTag/${TagKey}

DeleteFileSystem

授予删除文件系统,从而删除其内容以及文件系统的任何现有自动备份的权限

backup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

file-system*

aws:ResourceTag/${TagKey}

DeleteSnapshot

授予权限以删除卷上的快照

snapshot*

aws:ResourceTag/${TagKey}

写入

DeleteStorageVirtualMachine

授予删除存储虚拟机以删除其内容的权限

storage-virtual-machine*

aws:ResourceTag/${TagKey}

写入

DeleteVolume

授予删除卷以及删除其内容和卷的任何现有自动备份的权限

backup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

volume*

aws:ResourceTag/${TagKey}

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

DescribeBackups

授予返回您拥有的所有备份描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeDataRepositoryAssociations

授予返回您拥有的所有数据存储库关联描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeDataRepositoryTasks

授予返回您拥有的所有数据存储库任务描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeFileCaches

授予返回您拥有的所有文件缓存描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeFileSystemAliases

授予权限以返回 Amazon FSx for Windows File Server 文件系统拥有的所有 DNS 别名的描述

file-system*

aws:ResourceTag/${TagKey}

读取

DescribeFileSystems

授予返回您拥有的所有文件系统的描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeS3AccessPointAttachments

授予权限以返回 S3 接入点连接的描述

读取

DescribeSharedVpcConfiguration

授予返回您账户中是否允许从参与者账户更新 FSx 路由表的描述的权限

读取

DescribeSnapshots

授予返回您拥有的所有快照描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeStorageVirtualMachines

授予返回您拥有的所有 Storage 虚拟机的描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DescribeVolumes

授予返回您拥有的所有卷描述的权限 Amazon Web Services 账户 在 Amazon Web Services 区域 你正在调用的终端节点

读取

DetachAndDeleteS3AccessPoint

授予权限以将 S3 接入点从 Amazon FSx 文件系统分离,并删除 S3 接入点

volume

aws:ResourceTag/${TagKey}

写入

DisassociateFileSystemAliases

授予权限以将文件系统别名与 Amazon FSx for Windows File Server 文件系统取消关联

file-system*

aws:ResourceTag/${TagKey}

Write

ListTagsForResource

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

association

aws:ResourceTag/${TagKey}

读取

backup

aws:ResourceTag/${TagKey}

file-cache

aws:ResourceTag/${TagKey}

file-system

aws:ResourceTag/${TagKey}

snapshot

aws:ResourceTag/${TagKey}

storage-virtual-machine

aws:ResourceTag/${TagKey}

task

aws:ResourceTag/${TagKey}

volume

aws:ResourceTag/${TagKey}

ReleaseFileSystemNfsV3Locks

授予解除文件系统 NFS V3 锁的权限

file-system*

aws:ResourceTag/${TagKey}

写入

RestoreVolumeFromSnapshot

授予从快照恢复卷状态的权限

snapshot*

aws:ResourceTag/${TagKey}

写入

volume*

aws:ResourceTag/${TagKey}

StartMisconfiguredStateRecovery

授予权限以启动配置错误的状态恢复

file-system*

aws:ResourceTag/${TagKey}

写入

TagResource

授予权限以标记 Amazon FSx 资源

association

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:NfsDataRepositoryAuthenticationEnabled

fsx:NfsDataRepositoryEncryptionInTransitEnabled

标记、写入

backup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

file-cache

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

file-system

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

snapshot

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

storage-virtual-machine

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

task

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

volume

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

UntagResource

授予权限以从 Amazon FSx 资源中删除标签

association

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

backup

aws:ResourceTag/${TagKey}

aws:TagKeys

file-cache

aws:ResourceTag/${TagKey}

aws:TagKeys

file-system

aws:ResourceTag/${TagKey}

aws:TagKeys

snapshot

aws:ResourceTag/${TagKey}

aws:TagKeys

storage-virtual-machine

aws:ResourceTag/${TagKey}

aws:TagKeys

task

aws:ResourceTag/${TagKey}

aws:TagKeys

volume

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateDataRepositoryAssociation

授予权限以更新数据存储库关联配置

association*

aws:ResourceTag/${TagKey}

写入

UpdateFileCache

授予更新文件缓存配置的权限

file-cache*

aws:ResourceTag/${TagKey}

写入

UpdateFileSystem

授予权限以更新文件系统的配置

file-system*

aws:ResourceTag/${TagKey}

写入

UpdateSharedVpcConfiguration

授予为您账户中的参与者账户启用或禁用 FSx 路由表更新的权限

写入

UpdateSnapshot

授予权限以更新快照配置

snapshot*

aws:ResourceTag/${TagKey}

写入

UpdateStorageVirtualMachine

授予权限以更新存储虚拟机配置

storage-virtual-machine*

aws:ResourceTag/${TagKey}

写入

UpdateVolume

授予权限以更新卷配置

volume*

aws:ResourceTag/${TagKey}

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

写入

Permission-only 亚马逊 FSx 的操作

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

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

AssociateFileGateway

授予将文件网关实例与 Amazon FSx for Windows File Server 文件系统关联的权限

file-system*

aws:ResourceTag/${TagKey}

写入

BypassSnaplockEnterpriseRetention

授予允许删除适用于 ONTAP 的 FSx 的权限 SnapLock 包含保留期有效的 WORM(一次写入,多次读取)文件的企业卷

volume*

aws:ResourceTag/${TagKey}

权限管理,写入

DeleteResourcePolicy

通过以下方式授予管理 FSx 卷跨账户共享的权限 Amazon 资源访问管理器 (RAM)。 PutResourcePolicy 和 GetResourcePolicy 也是必需的

volume*

aws:ResourceTag/${TagKey}

权限管理,写入

DescribeAssociatedFileGateways

授予描述与 Amazon FSx for Windows File Server 文件系统关联的文件网关实例的权限

file-system*

aws:ResourceTag/${TagKey}

读取

DisassociateFileGateway

授予取消文件网关实例与 Amazon FSx for Windows File Server 文件系统关联的权限

file-system*

aws:ResourceTag/${TagKey}

写入

GetResourcePolicy

通过以下方式授予管理 FSx 卷跨账户共享的权限 Amazon 资源访问管理器 (RAM)。 PutResourcePolicy 和 DeleteResourcePolicy 也是必需的

volume*

aws:ResourceTag/${TagKey}

权限管理,写入

ManageBackupPrincipalAssociations

授予通过以下方式管理备份主体关联的权限 Amazon 备份

backup*

aws:ResourceTag/${TagKey}

权限管理,写入

PutResourcePolicy

通过以下方式授予管理 FSx 卷跨账户共享的权限 Amazon 资源访问管理器 (RAM)。 DeleteResourcePolicy 和 GetResourcePolicy 也是必需的

volume*

aws:ResourceTag/${TagKey}

权限管理,写入

Amazon FSx 定义的资源类型

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

资源类型 ARN 条件键

association

arn:${Partition}:fsx:${Region}:${Account}:association/${FileSystemIdOrFileCacheId}/${DataRepositoryAssociationId}

aws:ResourceTag/${TagKey}

backup

arn:${Partition}:fsx:${Region}:${Account}:backup/${BackupId}

aws:ResourceTag/${TagKey}

file-cache

arn:${Partition}:fsx:${Region}:${Account}:file-cache/${FileCacheId}

aws:ResourceTag/${TagKey}

file-system

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

aws:ResourceTag/${TagKey}

snapshot

arn:${Partition}:fsx:${Region}:${Account}:snapshot/${VolumeId}/${SnapshotId}

aws:ResourceTag/${TagKey}

storage-virtual-machine

arn:${Partition}:fsx:${Region}:${Account}:storage-virtual-machine/${FileSystemId}/${StorageVirtualMachineId}

aws:ResourceTag/${TagKey}

task

arn:${Partition}:fsx:${Region}:${Account}:task/${TaskId}

aws:ResourceTag/${TagKey}

volume

arn:${Partition}:fsx:${Region}:${Account}:volume/${FileSystemId}/${VolumeId}

aws:ResourceTag/${TagKey}

Amazon FSx 的条件键

Amazon FSx 定义以下可以在 IAM policy 的 Condition 元素中使用的条件键。

条件键 描述 类型

aws:RequestTag/${TagKey}

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

String

aws:ResourceTag/${TagKey}

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

String

aws:TagKeys

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

ArrayOfString

fsx:IsBackupCopyDestination

按备份是否为目标备份来筛选访问权限 CopyBackup 手术

Bool

fsx:IsBackupCopySource

按备份是否为源备份来筛选访问权限 CopyBackup 手术

Bool

fsx:NfsDataRepositoryAuthenticationEnabled

按支持身份验证的 NFS 数据存储库筛选访问

Bool

fsx:NfsDataRepositoryEncryptionInTransitEnabled

按支持传输中加密的 NFS 数据存储库筛选访问

Bool

fsx:ParentVolumeId

按包含父级卷筛选访问权限,以便改变卷操作

String

fsx:StorageVirtualMachineId

筛选包含存储虚拟机对卷的访问权限,以便改变卷操作

String