View a markdown version of this page

Shield AWS 的動作、資源和條件索引鍵 - 服務授權參考

Shield AWS 的動作、資源和條件索引鍵

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

參考資料:

Shield AWS 定義的 API 操作

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

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

AssociateDRTLogBucket

shield:AssociateDRTLogBucket

寫入

AssociateDRTRole

shield:AssociateDRTRole

寫入

iam:PassRole

iam:PassedToService

drt.shield.amazonaws.com

寫入

AssociateHealthCheck

shield:AssociateHealthCheck

寫入

AssociateProactiveEngagementDetails

shield:AssociateProactiveEngagementDetails

寫入

CreateProtection

shield:CreateProtection

寫入

shield:TagResource

標記、寫入

CreateProtectionGroup

shield:CreateProtectionGroup

寫入

shield:TagResource

標記、寫入

CreateSubscription

shield:CreateSubscription

寫入

DeleteProtection

shield:DeleteProtection

寫入

DeleteProtectionGroup

shield:DeleteProtectionGroup

寫入

DeleteSubscription

shield:DeleteSubscription

寫入

DescribeAttack

shield:DescribeAttack

讀取

shield:DescribeProtectionGroup

讀取

DescribeAttackStatistics

shield:DescribeAttackStatistics

讀取

DescribeDRTAccess

shield:DescribeDRTAccess

讀取

DescribeEmergencyContactSettings

shield:DescribeEmergencyContactSettings

讀取

DescribeProtection

shield:DescribeProtection

讀取

DescribeProtectionGroup

shield:DescribeProtectionGroup

讀取

DescribeSubscription

shield:DescribeSubscription

讀取

DisableApplicationLayerAutomaticResponse

shield:DisableApplicationLayerAutomaticResponse

寫入

DisableProactiveEngagement

shield:DisableProactiveEngagement

寫入

DisassociateDRTLogBucket

shield:DisassociateDRTLogBucket

寫入

DisassociateDRTRole

shield:DisassociateDRTRole

寫入

DisassociateHealthCheck

shield:DisassociateHealthCheck

寫入

EnableApplicationLayerAutomaticResponse

shield:EnableApplicationLayerAutomaticResponse

寫入

EnableProactiveEngagement

shield:EnableProactiveEngagement

寫入

GetSubscriptionState

shield:GetSubscriptionState

讀取

ListAttacks

shield:ListAttacks

清單

ListProtectionGroups

shield:ListProtectionGroups

清單

ListProtections

shield:ListProtections

清單

ListResourcesInProtectionGroup

shield:ListResourcesInProtectionGroup

清單

ListTagsForResource

shield:ListTagsForResource

讀取

TagResource

shield:TagResource

標記、寫入

UntagResource

shield:UntagResource

標記、寫入

UpdateApplicationLayerAutomaticResponse

shield:UpdateApplicationLayerAutomaticResponse

寫入

UpdateEmergencyContactSettings

shield:UpdateEmergencyContactSettings

寫入

UpdateProtectionGroup

shield:UpdateProtectionGroup

寫入

UpdateSubscription

shield:UpdateSubscription

寫入

Shield AWS 定義的動作

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

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

AssociateDRTLogBucket

准許授權 DDoS 回應團隊存取內含流程日誌的指定 Amazon S3 儲存貯體

寫入

AssociateDRTRole

准許使用指定角色授權 DDoS 回應團隊存取您的 AWS 帳戶 ,以在潛在攻擊期間協助緩解 DDoS 攻擊

寫入

AssociateHealthCheck

准許將以運作狀態為基礎的偵測功能新增至資源的 Shield Advanced 保護

保護*

aws:ResourceTag/${TagKey}

寫入

AssociateProactiveEngagementDetails

准許初始化主動參與,並設定給 DDoS 回應團隊 (DRT) 使用的聯絡人清單

寫入

CreateProtection

准許啟用特定資源 ARN 的 DDoS 保護服務

aws:RequestTag/${TagKey}

aws:TagKeys

寫入

CreateProtectionGroup

准許建立受保護資源的分組,以便集合處理

aws:RequestTag/${TagKey}

aws:TagKeys

寫入

CreateSubscription

准許啟用訂閱

寫入

DeleteProtection

准許刪除現有的保護

保護*

aws:ResourceTag/${TagKey}

寫入

DeleteProtectionGroup

准許移除指定的保護群組

protection-group*

aws:ResourceTag/${TagKey}

寫入

DeleteSubscription

准許停用訂閱

寫入

DescribeAttack

准許取得攻擊詳細資訊。為了取得受 AWS WAF anti-DDoS 受管規則群組保護的攻擊詳細資訊,此動作還會呼叫 wafv2:DescribeTopContributorsByEvent 來擷取應用程式層攻擊參與者,這需要在 IAM 政策中具有 wafv2:DescribeTopContributorsByEvent 許可

攻擊*

讀取

DescribeAttackStatistics

准許描述 Shield AWS 在去年偵測到的攻擊數量和類型的相關資訊

讀取

DescribeDRTAccess

准許描述 DDoS 回應團隊用來存取 的目前角色和 Amazon S3 日誌儲存貯體清單, AWS 帳戶 同時協助緩解攻擊

讀取

DescribeEmergencyContactSettings

准許列出 DRT 可以在可疑的攻擊期間用來聯絡您的電子郵件地址

讀取

DescribeProtection

准許取得保護詳細資訊

保護*

aws:ResourceTag/${TagKey}

讀取

DescribeProtectionGroup

准許描述指定保護群組的規格

protection-group*

aws:ResourceTag/${TagKey}

讀取

DescribeSubscription

准許取得訂閱詳細資訊,例如開始時間

讀取

DisableApplicationLayerAutomaticResponse

准許停用應用程式層自動回應,以實現資源的 Shield Advanced 保護

寫入

DisableProactiveEngagement

准許從 DDoS 回應團隊 (DRT) 移除授權,從而發送呈報通知給聯絡人

寫入

DisassociateDRTLogBucket

准許移除 DDoS 回應團隊對內含流程日誌之指定 Amazon S3 儲存貯體的存取權

寫入

DisassociateDRTRole

准許移除 DDoS 回應團隊對您 的存取權 AWS 帳戶

寫入

DisassociateHealthCheck

准許從資源的 Shield Advanced 保護中移除以運作狀態為基礎的偵測功能

保護*

aws:ResourceTag/${TagKey}

寫入

EnableApplicationLayerAutomaticResponse

准許啟用應用程式層自動回應,以實現資源的 Shield Advanced 保護

寫入

EnableProactiveEngagement

准許授權 DDoS 回應團隊 (DRT) 以電子郵件和電話發送呈報通知給聯絡人

寫入

GetSubscriptionState

准許取得訂閱狀態

讀取

ListAttacks

准許列出所有現有的攻擊

清單

ListProtectionGroups

准許擷取帳戶的保護群組

清單

ListProtections

准許列出所有現有的保護

清單

ListResourcesInProtectionGroup

准許擷取保護群組中包含的資源

protection-group*

aws:ResourceTag/${TagKey}

清單

ListTagsForResource

准許取得 Shield 中指定 Amazon Resource Name (ARN) AWS AWS 標籤的相關資訊

保護

aws:ResourceTag/${TagKey}

讀取

protection-group

aws:ResourceTag/${TagKey}

TagResource

准許在 Shield AWS 中新增或更新資源的標籤

保護

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

protection-group

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

准許從 Shield AWS 中的資源移除標籤

保護

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

protection-group

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateApplicationLayerAutomaticResponse

准許更新應用程式層自動回應以實現資源的 Shield Advanced 保護

寫入

UpdateEmergencyContactSettings

准許更新 DRT 可以在可疑的攻擊期間用來聯絡您的電子郵件地址清單詳細資訊

寫入

UpdateProtectionGroup

准許更新現有的保護群組

protection-group*

aws:ResourceTag/${TagKey}

寫入

UpdateSubscription

准許更新現有訂閱的詳細資訊

寫入

Shield AWS 的僅限許可動作

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

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

DescribeAttackContributors

准許取得特定 DDoS 攻擊參與者的詳細資訊

攻擊*

讀取

protection-group

aws:ResourceTag/${TagKey}

GetGlobalThreatData

准許從 Shield AWS 的威脅監控系統擷取全域威脅情報資料和趨勢

讀取

ListMitigations

准許擷取在 DDoS 攻擊期間套用的緩解動作清單

攻擊*

清單

Shield AWS 定義的資源類型

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

資源類型 ARN 條件索引鍵

攻擊

arn:${Partition}:shield::${Account}:attack/${Id}

保護

arn:${Partition}:shield::${Account}:protection/${Id}

aws:ResourceTag/${TagKey}

protection-group

arn:${Partition}:shield::${Account}:protection-group/${Id}

aws:ResourceTag/${TagKey}

Shield AWS 的條件索引鍵

AWS Shield 定義下列條件索引鍵,可用於 IAM 政策的 Condition元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

根據請求中的標籤鍵值組是否存在來篩選動作

String

aws:ResourceTag/${TagKey}

根據連接到資源的標籤鍵值組來篩選動作

String

aws:TagKeys

根據請求中的標籤鍵是否存在來篩選動作

ArrayOfString