View a markdown version of this page

Amazon FSx 的動作、資源與條件索引鍵 - 服務授權參考

Amazon FSx 的動作、資源與條件索引鍵

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

參考資料:

Amazon FSx 定義的 API 操作

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

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

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

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

AssociateFileSystemAliases

准許將 DNS 別名與 Amazon FSx for Windows File Server 檔案系統關聯

file-system*

aws:ResourceTag/${TagKey}

寫入

CancelDataRepositoryTask

准許取消資料儲存庫任務

任務*

aws:ResourceTag/${TagKey}

寫入

CopyBackup

准許複製備份

備份*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CopySnapshotAndUpdateVolume

准許使用來自另一個 Amazon FSx for OpenZFS 檔案系統的快照來更新現有磁碟區

快照*

aws:ResourceTag/${TagKey}

寫入

磁碟區*

aws:ResourceTag/${TagKey}

CreateAndAttachS3AccessPoint

准許建立 S3 存取點並將其連接至 FSx 檔案系統

磁碟區

aws:ResourceTag/${TagKey}

寫入

CreateBackup

准許建立 Amazon FSx 檔案系統的新備份或 Amazon FSx 磁碟區

備份*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

檔案系統

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

磁碟區

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateDataRepositoryAssociation

准許為 Amazon FSx for Lustre 檔案系統建立新資料儲存庫關聯

關聯*

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

寫入

任務*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateFileCache

准許建立新的、空的 Amazon 檔案快取

關聯

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 檔案系統

備份*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateSnapshot

准許在磁碟區上建立新快照

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

磁碟區*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateStorageVirtualMachine

准許在 Amazon FSx for Ontap 檔案系統中建立新的儲存虛擬機器

file-system*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

storage-virtual-machine*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateVolume

准許建立新的磁碟區

快照

aws:ResourceTag/${TagKey}

寫入

storage-virtual-machine

aws:ResourceTag/${TagKey}

磁碟區*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

CreateVolumeFromBackup

准許從備份中建立新的磁碟區

備份*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

寫入

storage-virtual-machine*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

磁碟區*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:StorageVirtualMachineId

DeleteBackup

准許刪除備份,刪除其內容。刪除後,備份會永久消失,其資料也不再可用

備份*

aws:ResourceTag/${TagKey}

寫入

DeleteDataRepositoryAssociation

准許刪除資料儲存庫關聯

關聯*

aws:ResourceTag/${TagKey}

寫入

DeleteFileCache

准許刪除檔案快取,刪除其內容。

關聯

aws:ResourceTag/${TagKey}

寫入

file-cache*

aws:ResourceTag/${TagKey}

DeleteFileSystem

准許刪除檔案系統,刪除檔案系統內容及檔案系統的任何現有自動備份

備份

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

file-system*

aws:ResourceTag/${TagKey}

DeleteSnapshot

准許在磁碟區上刪除快照

快照*

aws:ResourceTag/${TagKey}

寫入

DeleteStorageVirtualMachine

准許刪除儲存虛擬機器,刪除其內容

storage-virtual-machine*

aws:ResourceTag/${TagKey}

寫入

DeleteVolume

准許刪除磁碟區,刪除其內容及磁碟區的任何現有自動備份

備份

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

磁碟區*

aws:ResourceTag/${TagKey}

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

DescribeBackups

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有備份描述

讀取

DescribeDataRepositoryAssociations

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有資料儲存庫關聯描述

讀取

DescribeDataRepositoryTasks

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有資料儲存庫任務的描述

讀取

DescribeFileCaches

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有檔案快取描述

讀取

DescribeFileSystemAliases

准許傳回 Amazon FSx for Windows File Server 檔案系統所擁有之所有 DNS 別名的描述

file-system*

aws:ResourceTag/${TagKey}

讀取

DescribeFileSystems

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有檔案系統的描述

讀取

DescribeS3AccessPointAttachments

准許傳回 S3 存取點附件的說明

讀取

DescribeSharedVpcConfiguration

准許傳回帳戶中是否允許來自參與者帳戶的 FSx 路由表更新的描述

讀取

DescribeSnapshots

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有快照描述

讀取

DescribeStorageVirtualMachines

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有儲存虛擬機器的描述

讀取

DescribeVolumes

准許在您呼叫的 AWS 區域 端點的 AWS 帳戶 中傳回 擁有的所有磁碟區的描述

讀取

DetachAndDeleteS3AccessPoint

准許從 Amazon FSx 檔案系統分離 S3 存取點,並刪除 S3 存取點

磁碟區

aws:ResourceTag/${TagKey}

寫入

DisassociateFileSystemAliases

准許將檔案系統別名與 Amazon FSx for Windows File Server 檔案系統取消關聯

file-system*

aws:ResourceTag/${TagKey}

寫入

ListTagsForResource

准許列出 Amazon FSx 資源的標籤

關聯

aws:ResourceTag/${TagKey}

讀取

備份

aws:ResourceTag/${TagKey}

file-cache

aws:ResourceTag/${TagKey}

檔案系統

aws:ResourceTag/${TagKey}

快照

aws:ResourceTag/${TagKey}

storage-virtual-machine

aws:ResourceTag/${TagKey}

任務

aws:ResourceTag/${TagKey}

磁碟區

aws:ResourceTag/${TagKey}

ReleaseFileSystemNfsV3Locks

准許釋放檔案系統 NFS V3 鎖定

file-system*

aws:ResourceTag/${TagKey}

寫入

RestoreVolumeFromSnapshot

准許從快照還原磁碟區狀態

快照*

aws:ResourceTag/${TagKey}

寫入

磁碟區*

aws:ResourceTag/${TagKey}

StartMisconfiguredStateRecovery

准許啟動設定錯誤狀態復原

file-system*

aws:ResourceTag/${TagKey}

寫入

TagResource

准許標記 Amazon FSx 資源

關聯

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:NfsDataRepositoryAuthenticationEnabled

fsx:NfsDataRepositoryEncryptionInTransitEnabled

標記、寫入

備份

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

file-cache

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

檔案系統

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

快照

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

storage-virtual-machine

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

任務

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

磁碟區

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

UntagResource

准許將標籤從 Amazon FSx 資源中移除

關聯

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

備份

aws:ResourceTag/${TagKey}

aws:TagKeys

file-cache

aws:ResourceTag/${TagKey}

aws:TagKeys

檔案系統

aws:ResourceTag/${TagKey}

aws:TagKeys

快照

aws:ResourceTag/${TagKey}

aws:TagKeys

storage-virtual-machine

aws:ResourceTag/${TagKey}

aws:TagKeys

任務

aws:ResourceTag/${TagKey}

aws:TagKeys

磁碟區

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateDataRepositoryAssociation

准許更新資料儲存庫關聯組態

關聯*

aws:ResourceTag/${TagKey}

寫入

UpdateFileCache

准許更新檔案快取組態

file-cache*

aws:ResourceTag/${TagKey}

寫入

UpdateFileSystem

准許更新檔案系統組態

file-system*

aws:ResourceTag/${TagKey}

寫入

UpdateSharedVpcConfiguration

准許啟用或停用帳戶中來自參與者帳戶的 FSx 路由表更新

寫入

UpdateSnapshot

准許更新快照組態

快照*

aws:ResourceTag/${TagKey}

寫入

UpdateStorageVirtualMachine

准許更新儲存虛擬機器組態

storage-virtual-machine*

aws:ResourceTag/${TagKey}

寫入

UpdateVolume

准許更新磁碟區組態

磁碟區*

aws:ResourceTag/${TagKey}

fsx:ParentVolumeId

fsx:StorageVirtualMachineId

寫入

Amazon FSx 的僅限許可動作

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

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

AssociateFileGateway

准許將 File Gateway 執行個體與 Amazon FSx for Windows File Server 檔案系統建立關聯

file-system*

aws:ResourceTag/${TagKey}

寫入

BypassSnaplockEnterpriseRetention

准許允許刪除包含具有作用中保留期間的 WORM (單寫多讀) 檔案的 FSx for ONTAP SnapLock Enterprise 磁碟區

磁碟區*

aws:ResourceTag/${TagKey}

許可管理、寫入

DeleteResourcePolicy

准許透過 AWS Resource Access Manager (RAM) 管理 FSx 磁碟區的跨帳戶共用。PutResourcePolicy 和 GetResourcePolicy 也是必需的

磁碟區*

aws:ResourceTag/${TagKey}

許可管理、寫入

DescribeAssociatedFileGateways

准許描述與 Amazon FSx for Windows File Server 檔案系統相關聯的 File Gateway 執行個體

file-system*

aws:ResourceTag/${TagKey}

讀取

DisassociateFileGateway

准許取消 File Gateway 執行個體與 Amazon FSx for Windows File Server 檔案系統的關聯

file-system*

aws:ResourceTag/${TagKey}

寫入

GetResourcePolicy

准許透過 AWS Resource Access Manager (RAM) 管理 FSx 磁碟區的跨帳戶共用。PutResourcePolicy 和 DeleteResourcePolicy 也是必需的

磁碟區*

aws:ResourceTag/${TagKey}

許可管理、寫入

ManageBackupPrincipalAssociations

准許透過 Backup 管理 AWS 備份主體關聯

備份*

aws:ResourceTag/${TagKey}

許可管理、寫入

PutResourcePolicy

准許透過 AWS Resource Access Manager (RAM) 管理 FSx 磁碟區的跨帳戶共用。DeleteResourcePolicy 和 GetResourcePolicy 也是必需的

磁碟區*

aws:ResourceTag/${TagKey}

許可管理、寫入

Amazon FSx 定義的資源類型

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

資源類型 ARN 條件索引鍵

關聯

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

aws:ResourceTag/${TagKey}

備份

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

aws:ResourceTag/${TagKey}

file-cache

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

aws:ResourceTag/${TagKey}

檔案系統

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

aws:ResourceTag/${TagKey}

快照

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}

任務

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 政策的 Condition 元素。

條件索引鍵 描述 Type

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