View a markdown version of this page

的操作、资源和条件键 Amazon 随时随地的身份和访问管理角色 - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

的操作、资源和条件键 Amazon 随时随地的身份和访问管理角色

Amazon 任何地方的身份和访问管理角色(服务前缀: rolesanywhere) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

API 操作定义为 Amazon 随时随地的身份和访问管理角色

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

CreateProfile

rolesanywhere:CreateProfile

写入

rolesanywhere:TagResource

标记、写入

iam:PassRole

iam:PassedToService

rolesanywhere.amazonaws.com

写入

CreateTrustAnchor

rolesanywhere:CreateTrustAnchor

写入

rolesanywhere:TagResource

标记、写入

DeleteAttributeMapping

rolesanywhere:DeleteAttributeMapping

写入

DeleteCrl

rolesanywhere:DeleteCrl

写入

DeleteProfile

rolesanywhere:DeleteProfile

写入

DeleteTrustAnchor

rolesanywhere:DeleteTrustAnchor

写入

DisableCrl

rolesanywhere:DisableCrl

写入

DisableProfile

rolesanywhere:DisableProfile

写入

DisableTrustAnchor

rolesanywhere:DisableTrustAnchor

写入

EnableCrl

rolesanywhere:EnableCrl

写入

EnableProfile

rolesanywhere:EnableProfile

写入

iam:PassRole

iam:PassedToService

rolesanywhere.amazonaws.com

写入

EnableTrustAnchor

rolesanywhere:EnableTrustAnchor

写入

GetCrl

rolesanywhere:GetCrl

读取

GetProfile

rolesanywhere:GetProfile

读取

GetSubject

rolesanywhere:GetSubject

读取

GetTrustAnchor

rolesanywhere:GetTrustAnchor

读取

ImportCrl

rolesanywhere:ImportCrl

写入

rolesanywhere:TagResource

标记、写入

ListCrls

rolesanywhere:ListCrls

列表

ListProfiles

rolesanywhere:ListProfiles

列表

ListSubjects

rolesanywhere:ListSubjects

列表

ListTagsForResource

rolesanywhere:ListTagsForResource

列表

ListTrustAnchors

rolesanywhere:ListTrustAnchors

列表

PutAttributeMapping

rolesanywhere:PutAttributeMapping

写入

PutNotificationSettings

rolesanywhere:PutNotificationSettings

写入

ResetNotificationSettings

rolesanywhere:ResetNotificationSettings

写入

TagResource

rolesanywhere:TagResource

标记、写入

UntagResource

rolesanywhere:UntagResource

标记、写入

UpdateCrl

rolesanywhere:UpdateCrl

写入

UpdateProfile

rolesanywhere:UpdateProfile

写入

iam:PassRole

iam:PassedToService

rolesanywhere.amazonaws.com

写入

UpdateTrustAnchor

rolesanywhere:UpdateTrustAnchor

写入

动作定义为 Amazon 随时随地的身份和访问管理角色

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

CreateProfile

授予创建配置文件的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

CreateTrustAnchor

授予创建信任锚的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

DeleteAttributeMapping

授予权限以从配置文件中删除映射规则

profile*

aws:ResourceTag/${TagKey}

写入

DeleteCrl

授予删除证书吊销列表 (crl) 的权限

crl*

aws:ResourceTag/${TagKey}

写入

DeleteProfile

授予删除配置文件的权限

profile*

aws:ResourceTag/${TagKey}

写入

DeleteTrustAnchor

授予删除信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

DisableCrl

授予禁用证书吊销列表 (crl) 的权限

crl*

aws:ResourceTag/${TagKey}

写入

DisableProfile

授予禁用配置文件的权限

profile*

aws:ResourceTag/${TagKey}

写入

DisableTrustAnchor

授予禁用信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

EnableCrl

授予启用证书吊销列表 (crl) 的权限

crl*

aws:ResourceTag/${TagKey}

写入

EnableProfile

授予启用配置文件的权限

profile*

aws:ResourceTag/${TagKey}

写入

EnableTrustAnchor

授予启用信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

GetCrl

授予权获取证书吊销列表 (crl) 的权限

crl*

aws:ResourceTag/${TagKey}

读取

GetProfile

授予获取配置文件的权限

profile*

aws:ResourceTag/${TagKey}

读取

GetSubject

授予获取主题的权限

subject*

aws:ResourceTag/${TagKey}

读取

GetTrustAnchor

授予获取信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

读取

ImportCrl

授予导入证书吊销列表 (crl) 的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

ListCrls

授予列出证书吊销列表 (crl) 的权限

列表

ListProfiles

授予列出配置文件的权限

列表

ListSubjects

授予列出主题的权限

列表

ListTagsForResource

授予权限以列出资源的标签

列表

ListTrustAnchors

授予列出信任锚的权限

列表

PutAttributeMapping

授予权限以将映射规则放入配置文件

profile*

aws:ResourceTag/${TagKey}

写入

PutNotificationSettings

授予将通知设置附加到信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

ResetNotificationSettings

授予将自定义通知设置重置为 IAM Roles Anywhere 定义的默认状态的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

TagResource

授予权限以标记资源

crl

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

profile

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

subject

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

trust-anchor

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

授予权限以取消标记资源

crl

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

profile

aws:ResourceTag/${TagKey}

aws:TagKeys

subject

aws:ResourceTag/${TagKey}

aws:TagKeys

trust-anchor

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateCrl

授予更新证书吊销列表 (crl) 的权限

crl*

aws:ResourceTag/${TagKey}

写入

UpdateProfile

授予更新配置文件的权限

profile*

aws:ResourceTag/${TagKey}

写入

UpdateTrustAnchor

授予更新信任锚的权限

trust-anchor*

aws:ResourceTag/${TagKey}

写入

资源类型定义为 Amazon 随时随地的身份和访问管理角色

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

crl

arn:${Partition}:rolesanywhere:${Region}:${Account}:crl/${CrlId}

aws:ResourceTag/${TagKey}

profile

arn:${Partition}:rolesanywhere:${Region}:${Account}:profile/${ProfileId}

aws:ResourceTag/${TagKey}

subject

arn:${Partition}:rolesanywhere:${Region}:${Account}:subject/${SubjectId}

aws:ResourceTag/${TagKey}

trust-anchor

arn:${Partition}:rolesanywhere:${Region}:${Account}:trust-anchor/${TrustAnchorId}

aws:ResourceTag/${TagKey}

的条件键 Amazon 随时随地的身份和访问管理角色

Amazon 任何位置的身份和访问管理角色定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

按请求中传递的标签筛选访问权限

String

aws:ResourceTag/${TagKey}

按与资源关联的标签筛选访问权限

String

aws:TagKeys

按请求中传递的标签键筛选访问权限

ArrayOfString