AWS 使用者通知的動作、資源和條件索引鍵
AWS 使用者通知 (服務字首:notifications) 提供下列服務特定的操作、資源、動作和條件索引鍵,可用於 IAM 許可政策。
參考資料:
-
了解如何設定此服務。
-
檢視可供此服務使用的 API 操作清單。
-
了解如何使用 IAM 許可政策來保護此服務及其資源。
-
檢視此服務的程式設計服務授權參考
。
AWS 使用者通知定義的 API 操作
下表將 API 操作映射至其授權的 IAM 動作。只會列出具有指定 API 和動作靜態值的條件金鑰;如需每個動作支援的完整條件金鑰集,請參閱動作表格。
| 作業 | IAM 動作 | 條件鍵 | 可能的值 (s) | 存取層級 |
|---|---|---|---|---|
|
AssociateChannel |
寫入 |
|||
|
AssociateManagedNotificationAccountContact |
寫入 |
|||
寫入 |
||||
|
AssociateManagedNotificationAdditionalChannel |
寫入 |
|||
寫入 |
||||
|
AssociateOrganizationalUnit |
寫入 |
|||
|
CreateEventRule |
寫入 |
|||
|
CreateNotificationConfiguration |
寫入 |
|||
標記、寫入 |
||||
|
DeleteEventRule |
寫入 |
|||
|
DeleteNotificationConfiguration |
寫入 |
|||
|
DeregisterNotificationHub |
寫入 |
|||
|
DisableNotificationsAccessForOrganization |
許可管理、寫入 |
|||
|
DisassociateChannel |
寫入 |
|||
|
DisassociateManagedNotificationAccountContact |
寫入 |
|||
|
DisassociateManagedNotificationAdditionalChannel |
notifications:DisassociateManagedNotificationAdditionalChannel |
寫入 |
||
|
DisassociateOrganizationalUnit |
寫入 |
|||
|
EnableNotificationsAccessForOrganization |
許可管理、寫入 |
|||
|
GetEventRule |
讀取 |
|||
|
GetManagedNotificationChildEvent |
讀取 |
|||
|
GetManagedNotificationConfiguration |
讀取 |
|||
|
GetManagedNotificationEvent |
讀取 |
|||
讀取 |
||||
|
GetNotificationConfiguration |
讀取 |
|||
|
GetNotificationEvent |
讀取 |
|||
|
GetNotificationsAccessForOrganization |
讀取 |
|||
|
ListChannels |
清單 |
|||
|
ListEventRules |
清單 |
|||
|
ListManagedNotificationChannelAssociations |
清單 |
|||
|
ListManagedNotificationChildEvents |
清單 |
|||
|
ListManagedNotificationConfigurations |
清單 |
|||
|
ListManagedNotificationEvents |
讀取 |
|||
清單 |
||||
|
ListMemberAccounts |
清單 |
|||
|
ListNotificationConfigurations |
清單 |
|||
|
ListNotificationEvents |
清單 |
|||
|
ListNotificationHubs |
清單 |
|||
|
ListOrganizationalUnits |
清單 |
|||
|
ListTagsForResource |
清單 |
|||
|
RegisterNotificationHub |
寫入 |
|||
|
TagResource |
標記、寫入 |
|||
|
UntagResource |
標記、寫入 |
|||
|
UpdateEventRule |
寫入 |
|||
|
UpdateNotificationConfiguration |
寫入 |
AWS 使用者通知定義的動作
您可在 IAM 政策陳述式的 Action 元素中指定以下動作。使用政策來授予在 AWS中執行操作的許可。在政策中使用動作時,通常會允許或拒絕存取相同名稱的 API 操作或 CLI 命令。不過,在某些情況下,單一動作可控制對多個操作的存取。或者,某些操作需要多種不同的動作。
| 動作 | 說明 | 資源類型 (*必填項目) | 條件索引鍵 | 存取層級 |
|---|---|---|---|---|
准許將新頻道與特定 NotificationConfiguration 建立關聯 |
寫入 |
|||
准許將帳戶聯絡人與特定受管通知組態建立關聯 |
寫入 |
|||
准許將頻道與特定受管通知組態建立關聯 |
寫入 |
|||
准許將組織單位與特定通知組態建立關聯 |
寫入 |
|||
准許建立新 EventRule,並將其與 NotificationConfiguration 建立關聯 |
寫入 |
|||
准許建立 NotificationConfiguration |
寫入 |
|||
准許刪除 EventRule |
寫入 |
|||
准許刪除 NotificationConfiguration |
寫入 |
|||
准許取消註冊 NotificationHub |
寫入 |
|||
准許停用 AWS 使用者通知的服務信任 |
許可管理、寫入 |
|||
准許從 NotificationConfiguration 移除頻道 |
寫入 |
|||
准許從受管通知組態中移除帳戶聯絡人 |
寫入 |
|||
准許從受管通知組態中移除頻道 |
寫入 |
|||
准許從 NotificationConfiguration 中移除組織單位 |
寫入 |
|||
准許為 AWS 使用者通知啟用服務信任 |
許可管理、寫入 |
|||
准許取得 EventRule |
讀取 |
|||
准許取得受管通知子事件 |
讀取 |
|||
准許取得受管通知組態 |
讀取 |
|||
准許取得受管 NotificationEvent |
讀取 |
|||
准許取得 NotificationConfiguration |
讀取 |
|||
准許取得 NotificationEvent |
讀取 |
|||
准許讀取 AWS 使用者通知的服務信任 |
讀取 |
|||
准許列出 NotificationConfiguration 頻道 |
清單 |
|||
准許列出 EventRule |
清單 |
|||
准許列出與受管通知組態相關聯的帳戶聯絡人和頻道 |
清單 |
|||
准許列出受管通知子事件 |
清單 |
|||
准許列出受管通知組態 |
清單 |
|||
准許列出受管通知事件 |
清單 |
|||
准許依 AdminNotificationConfiguration 列出 MemberAccounts |
清單 |
|||
准許列出 NotificationConfigurations |
清單 |
|||
准許列出 NotificationEvents |
清單 |
|||
准許列出 NotificationHubs |
清單 |
|||
准許依 NotificationConfiguration 列出組織單位 |
清單 |
|||
准許取得資源標籤 |
清單 |
|||
准許註冊 NotificationHub |
寫入 |
|||
准許標記資源 |
標記、寫入 |
|||
授予許可來從資源中移除標籤 |
標記、寫入 |
|||
准許更新 EventRule |
寫入 |
|||
准許在現有的受管通知管道關聯上切換敏感事件訂閱 |
寫入 |
|||
准許更新 NotificationConfiguration |
寫入 |
AWS 使用者通知的僅限許可動作
下列動作是由 AWS 使用者通知定義,但無法透過任何 API 操作直接叫用。它們只能在 IAM 政策陳述式中使用,以授予或拒絕許可。
| 動作 | 說明 | 資源類型 (*必填項目) | 條件索引鍵 | 存取層級 |
|---|---|---|---|---|
准許存取敏感的通知事件 |
讀取 |
|||
准許讀取 AWS 使用者通知服務功能的選擇加入狀態 |
讀取 |
|||
准許更新 AWS 使用者通知服務功能的選擇加入狀態 |
寫入 |
|||
准許訂閱現有受管通知管道關聯上的敏感事件 |
寫入 |
AWS 使用者通知定義的資源類型
此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。
| 資源類型 | ARN | 條件索引鍵 |
|---|---|---|
arn:${Partition}:notifications::${Account}:configuration/${NotificationConfigurationId}/rule/${EventRuleId} |
||
arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory}/event/${NotificationEventId}/child-event/${NotificationChildEventId} |
||
arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory} |
||
arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory}/event/${NotificationEventId} |
||
arn:${Partition}:notifications::${Account}:configuration/${NotificationConfigurationId} |
||
arn:${Partition}:notifications:${Region}:${Account}:configuration/${NotificationConfigurationId}/event/${NotificationEventId} |
AWS 使用者通知的條件索引鍵
AWS 使用者通知定義下列條件索引鍵,可用於 IAM 政策的 Condition元素。
| 條件索引鍵 | 描述 | Type |
|---|---|---|
依要求中傳遞的標籤來篩選存取權 |
String |
|
依與資源關聯的標籤來篩選存取權 |
String |
|
依要求中傳遞的標籤索引鍵來篩選存取權 |
ArrayOfString |