View a markdown version of this page

Amazon Elastic Block Store 的動作、資源和條件索引鍵 - 服務授權參考

Amazon Elastic Block Store 的動作、資源和條件索引鍵

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

參考資料:

Amazon Elastic Block Store 定義的 API 操作

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

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

CompleteSnapshot

ebs:CompleteSnapshot

寫入

GetSnapshotBlock

ebs:GetSnapshotBlock

讀取

ListChangedBlocks

ebs:ListChangedBlocks

讀取

ListSnapshotBlocks

ebs:ListSnapshotBlocks

讀取

PutSnapshotBlock

ebs:PutSnapshotBlock

寫入

StartSnapshot

ebs:StartSnapshot

寫入

ec2:CreateTags

標記、寫入

Amazon Elastic Block Store 定義的動作

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

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

CompleteSnapshot

准許將所有必要的資料區塊寫入後,密封並完成快照

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

寫入

GetSnapshotBlock

准許傳回 Amazon Elastic Block Store (EBS) 快照中某個區塊的資料

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

讀取

ListChangedBlocks

准許列出相同磁碟區/快照關係的兩個 Amazon Elastic Block Store (EBS) 快照之間的不同區塊

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

讀取

ListSnapshotBlocks

准許在 Amazon Elastic Block Store (EBS) 快照中列出區塊

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

讀取

PutSnapshotBlock

准許將資料區塊寫入至由 StartSnapshot 作業建立的快照

快照*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

寫入

StartSnapshot

准許建立新 EBS 快照

快照

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

寫入

Amazon Elastic Block Store 定義的資源類型

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

資源類型 ARN 條件索引鍵

快照

arn:${Partition}:ec2:${Region}::snapshot/${SnapshotId}

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ebs:描述

ebs:ParentSnapshot

ebs:VolumeSize

Amazon Elastic Block Store 的條件索引鍵

Amazon Elastic Block Store 定義下列條件金鑰,可用於 IAM 政策的 Condition 元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依在請求中允許的標籤索引鍵和值對篩選存取

String

aws:ResourceTag/${TagKey}

依資源的標籤索引鍵和值對篩選存取

String

aws:TagKeys

依在請求中允許的標籤索引鍵清單篩選存取

ArrayOfString

ebs:描述

依照正在建立的快照說明篩選存取

String

ebs:ParentSnapshot

依父快照的 ARN 篩選存取

ARN

ebs:VolumeSize

在 GiB 中,依正在建立快照的磁碟區大小篩選存取權限

數值