AWS 用户通知的操作、资源和条件键 - 服务授权参考

AWS 用户通知的操作、资源和条件键

AWS 用户通知(服务前缀:notifications)提供以下服务特定的资源、操作和条件上下文键以在 IAM 权限策略中使用。

参考:

由 AWS 用户通知定义的操作

您可以在 IAM 策略语句的 Action 元素中指定以下操作。可以使用策略授予在 AWS 中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作表的访问级别列描述如何对操作进行分类(列出、读取、权限管理或标记)。此分类可以帮助您了解当您在策略中使用操作时,相应操作授予的访问级别。有关访问级别的更多信息,请参阅策略摘要中的访问级别

操作表的资源类型列指示每项操作是否支持资源级权限。如果该列没有任何值,您必须在策略语句的 Resource 元素中指定策略应用的所有资源(“*”)。通过在 IAM policy 中使用条件来筛选访问权限,以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源,则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (*) 表示。如果您在 IAM policy 中使用 Resource 元素限制资源访问权限,则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的(未指示为必需),则可以选择使用一种可选资源类型。

操作表的条件键列包括可以在策略语句的 Condition 元素中指定的键。有关与服务资源关联的条件键的更多信息,请参阅资源类型表的条件键列。

操作表的依赖操作列显示成功调用操作可能需要的其他权限。除了操作本身的权限以外,可能还需要这些权限。若某个操作指定依赖操作,则这些依赖关系可能适用于为该操作定义的其他资源,而不仅仅是表中列出的第一个资源。

注意

资源条件键在资源类型表中列出。您可以在操作表的资源类型(* 为必需)列中找到应用于某项操作的资源类型的链接。资源类型表中的资源类型包括条件密钥列,这是应用于操作表中操作的资源条件键。

有关下表中各列的详细信息,请参阅操作表

操作 描述 访问级别 资源类型(* 为必需) 条件键 相关操作
AssociateChannel 授予权限以将新的 Channel 与特定 NotificationConfiguration 关联 写入

NotificationConfiguration*

AssociateManagedNotificationAccountContact 授予权限以将账户联系人与特定的托管式通知配置关联 写入

ManagedNotificationConfiguration*

AssociateManagedNotificationAdditionalChannel 授予权限以将渠道与特定的托管式通知配置关联 写入

ManagedNotificationConfiguration*

AssociateOrganizationalUnit 授予权限以将组织单元与特定的托管式通知配置关联 写入

NotificationConfiguration*

CreateEventRule 授予权限以创建新的 EventRule,并将其与 NotificationConfiguration 关联 写入
CreateNotificationConfiguration 授予权限以创建 NotificationConfiguration 写入

aws:TagKeys

aws:RequestTag/${TagKey}

DeleteEventRule 授予权限以删除 EventRule 写入

EventRule*

DeleteNotificationConfiguration 授予权限以删除 NotificationConfiguration 写入

NotificationConfiguration*

DeregisterNotificationHub 授予权限以注销 NotificationHub 写入
DisableNotificationsAccessForOrganization 授予权限以禁用 AWS 用户通知的服务信任 权限管理

organizations:DisableAWSServiceAccess

DisassociateChannel 授予权限以从 NotificationConfiguration 删除 Channel 写入

NotificationConfiguration*

DisassociateManagedNotificationAccountContact 授予权限以从托管式通知配置中移除账户联系人 写入

ManagedNotificationConfiguration*

DisassociateManagedNotificationAdditionalChannel 授予权限以从托管式通知配置中移除渠道 写入

ManagedNotificationConfiguration*

DisassociateOrganizationalUnit 授予权限以取消组织单元与特定的托管式通知配置的关联 写入

NotificationConfiguration*

EnableNotificationsAccessForOrganization 授予权限以启用 AWS 用户通知的服务信任 权限管理

iam:CreateServiceLinkedRole

organizations:EnableAWSServiceAccess

GetEventRule 授予权限以获取 EventRule 读取

EventRule*

GetFeatureOptInStatus [仅权限] 授予权限以读取 AWS 用户通知服务功能的选择加入状态 读取
GetManagedNotificationChildEvent 授予权限以获取托管式通知子事件 读取

ManagedNotificationChildEvent*

GetManagedNotificationConfiguration 授予权限以获取托管式通知配置 读取

ManagedNotificationConfiguration*

GetManagedNotificationEvent 授予权限以获取托管式 NotificationEvent 读取

ManagedNotificationEvent*

GetNotificationConfiguration 授予权限以获取 NotificationConfiguration 读取

NotificationConfiguration*

GetNotificationEvent 授予权限以获取 NotificationEvent 读取

NotificationEvent*

GetNotificationsAccessForOrganization 授予权限以读取 AWS 用户通知的服务信任 读取
ListChannels 授予权限以通过 NotificationConfiguration 列出 Channel 列表

NotificationConfiguration*

ListEventRules 授予权限以列出 EventRule 列表
ListManagedNotificationChannelAssociations 授予权限以列出与托管式通知配置关联的账户联系人和渠道 列表

ManagedNotificationConfiguration*

ListManagedNotificationChildEvents 授予权限以列出托管式通知子事件 列表
ListManagedNotificationConfigurations 授予权限以列出托管式通知配置 列表
ListManagedNotificationEvents 授予权限以列出托管式通知事件 列表
ListMemberAccounts 授予权限以列出通知配置的成员账户 列表

NotificationConfiguration*

ListNotificationConfigurations 授予权限以列出 NotificationConfiguration 列表
ListNotificationEvents 授予权限以列出 NotificationEvent 列表
ListNotificationHubs 授予权限以列出 NotificationHub 列表
ListOrganizationalUnits 授予权限以列出通知配置的组织单元 列表

NotificationConfiguration*

ListTagsForResource 授予权限以获取资源的标签 列表
PutFeatureOptInStatus [仅权限] 授予权限以更新 AWS 用户通知服务功能的选择加入状态 写入
RegisterNotificationHub 授予权限以注册 NotificationHub 写入
TagResource 授予权限以标记资源 标记

NotificationConfiguration*

aws:TagKeys

aws:RequestTag/${TagKey}

UntagResource 授予权限以从资源中删除标签 标记

NotificationConfiguration*

aws:TagKeys

UpdateEventRule 授予权限以更新 EventRule 写入

EventRule*

UpdateNotificationConfiguration 授予权限以更新 NotificationConfiguration 写入

NotificationConfiguration*

AWS 用户通知定义的资源类型

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。操作表中的每个操作指定了可以使用该操作指定的资源类型。您也可以在策略中包含条件键,从而定义资源类型。这些键显示在资源类型表的最后一列。有关下表中各列的详细信息,请参阅资源类型表

资源类型 ARN 条件键
EventRule arn:${Partition}:notifications::${Account}:configuration/${NotificationConfigurationId}/rule/${EventRuleId}
NotificationConfiguration arn:${Partition}:notifications::${Account}:configuration/${NotificationConfigurationId}

aws:ResourceTag/${TagKey}

NotificationEvent arn:${Partition}:notifications:${Region}:${Account}:configuration/${NotificationConfigurationId}/event/${NotificationEventId}
ManagedNotificationChildEvent arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory}/event/${NotificationEventId}/child-event/${NotificationChildEventId}
ManagedNotificationConfiguration arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory}
ManagedNotificationEvent arn:${Partition}:notifications::${Account}:managed-notification-configuration/category/${Category}/sub-category/${Subcategory}/event/${NotificationEventId}

AWS 用户通知的条件键

AWS 用户通知定义以下可以在 IAM policy 的 Condition 元素中使用的条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息,请参阅条件键表

要查看适用于所有服务的全局条件键,请参阅 AWS 全局条件上下文键

条件键 描述 类型
aws:RequestTag/${TagKey} 按请求中传递的标签筛选访问权限 字符串
aws:ResourceTag/${TagKey} 按与资源关联的标签筛选访问权限 字符串
aws:TagKeys 按请求中传递的标签键筛选访问权限 字符串数组