身份策略授权项说明
除IAM服务外,Organizations服务中的服务控制策略(Service Control Policies,以下简称SCP)也可以使用这些授权项元素设置访问控制策略。
SCP不直接进行授权,只划定权限边界。将SCP绑定到组织单元或者成员账号时,并没有直接对组织单元或成员账号授予操作权限,而是规定了成员账号或组织单元包含的成员账号的授权范围。IAM身份策略授予权限的有效性受SCP限制,只有在SCP允许范围内的权限才能生效。
IAM服务与Organizations服务在使用这些元素进行访问控制时,存在着一些区别,详情请参见:IAM服务与Organizations服务权限访问控制的区别。
本章节介绍IAM服务身份策略授权场景中自定义策略和组织服务中SCP使用的元素,这些元素包含了操作(Action)、资源(Resource)和条件(Condition)。
操作(Action)
操作(Action)即为身份策略中支持的操作项。
- “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在身份策略中相应操作对应的访问级别。
- “资源类型”列指每个操作是否支持资源级权限。消息中心仅支持对所有资源有效,通配符号*表示所有。
- “条件键”列包括了可以在身份策略语句的Condition元素中支持指定的键值。
- 如果该操作项资源类型列存在值,则表示条件键仅对列举的资源类型生效。
- 如果该操作项资源类型列没有值(-),则表示条件键对整个操作项生效。
- 如果此列条件键没有值(-),表示此操作不支持指定条件键。
您可以在身份策略语句的Action元素中指定以下消息中心的相关操作。
| 授权项 | 功能说明 | 访问级别 | 资源类型 | 条件键 |
|---|---|---|---|---|
| messageCenter:financeMsg:view |
| read | * | - |
| messageCenter:financeMsg:subscribe |
| write | * | - |
| messageCenter:filingMsg:view |
| read | * | - |
| messageCenter:filingMsg:subscribe |
| write | * | - |
| messageCenter:contractMsg:view |
| read | * | - |
| messageCenter:contractMsg:subscribe |
| write | * | - |
| messageCenter:partnerMsg:view |
| read | * | - |
| messageCenter:partnerMsg:subscribe |
| write | * | - |
| messageCenter:campaignsMsg:view |
| read | * | - |
| messageCenter:campaignsMsg:subscribe |
| write | * | - |
| messageCenter:productMsg:view |
| read | * | - |
| messageCenter:productMsg:subscribe |
| write | * | - |
| messageCenter:omMsg:view |
| read | * | - |
| messageCenter:omMsg:subscribe |
| write | * | - |
| messageCenter:securityMsg:view |
| read | * | - |
| messageCenter:securityMsg:subscribe |
| write | * | - |
| messageCenter:voiceSetting:view |
| read | * | - |
| messageCenter:voiceSetting:update |
| write | * | - |
| messageCenter:recipient:view |
| read | * | - |
| messageCenter:recipient:update |
| write | * | - |
资源类型(Resource)
消息中心不支持在身份策略中的资源中指定资源进行权限控制。如需允许访问消息中心,请在策略的Resource元素中使用通配符号*,表示策略将应用到所有资源。
条件(Condition)
消息中心不支持在身份策略中的条件键中配置服务级的条件键。消息中心可以使用适用于所有服务的全局条件键,请参考全局条件键。