View a markdown version of this page

的操作、资源和条件键 AWS 代理注册表 - 服务授权参考

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

的操作、资源和条件键 AWS 代理注册表

AWS 代理注册表(服务前缀: agent-registry) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

API 操作定义为 AWS 代理注册表

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

操作 SDK 客户端 IAM 操作 条件键 可能的值 访问级别

BatchGetDiscoverableRegistryRecord

agent-registry

agent-registry:GetDiscoverableRegistryRecord

读取

ListDiscoverableRegistryRecords

agent-registry

agent-registry:ListDiscoverableRegistryRecords

列表

SearchDiscoverableRegistryRecords

agent-registry

agent-registry:SearchDiscoverableRegistryRecords

读取

CreateRegistry

agent-registry-control

agent-registry:CreateRegistry

写入

agent-registry:TagResource

标记、写入

CreateRegistryRecord

agent-registry-control

agent-registry:CreateRegistryRecord

写入

agent-registry:TagResource

标记、写入

bedrock-agentcore:GetResourceOauth2Token

读取

bedrock-agentcore:GetWorkloadAccessToken

写入

iam:PassRole

iam:PassedToService

agent-registry.amazonaws.com

写入

DeleteRegistry

agent-registry-control

agent-registry:DeleteRegistry

写入

DeleteRegistryRecord

agent-registry-control

agent-registry:DeleteRegistryRecord

写入

GetRegistry

agent-registry-control

agent-registry:GetRegistry

读取

GetRegistryRecord

agent-registry-control

agent-registry:GetRegistryRecord

读取

ListRegistries

agent-registry-control

agent-registry:ListRegistries

列表

ListRegistryRecords

agent-registry-control

agent-registry:ListRegistryRecords

列表

ListTagsForResource

agent-registry-control

agent-registry:ListTagsForResource

列表

SubmitRegistryRecordForApproval

agent-registry-control

agent-registry:SubmitRegistryRecordForApproval

写入

TagResource

agent-registry-control

agent-registry:TagResource

标记、写入

UntagResource

agent-registry-control

agent-registry:UntagResource

标记、写入

UpdateRegistry

agent-registry-control

agent-registry:UpdateRegistry

写入

UpdateRegistryRecord

agent-registry-control

agent-registry:UpdateRegistryRecord

写入

bedrock-agentcore:GetResourceOauth2Token

读取

bedrock-agentcore:GetWorkloadAccessToken

写入

iam:PassRole

iam:PassedToService

agent-registry.amazonaws.com

写入

UpdateRegistryRecordStatus

agent-registry-control

agent-registry:UpdateRegistryRecordStatus

写入

动作定义为 AWS 代理注册表

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

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

CreateRegistry

授予创建新注册表的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

CreateRegistryRecord

授予创建新注册表记录的权限

registry*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

DeleteRegistry

授予删除现有注册表的权限

registry*

aws:ResourceTag/${TagKey}

写入

DeleteRegistryRecord

授予删除现有注册表记录的权限

registry-record*

aws:ResourceTag/${TagKey}

写入

GetDiscoverableRegistryRecord

授予检索个人批准的注册记录的权限。这是一项仅限权限的操作,用于精细的访问控制 BatchGetApprovedRegistryRecord

registry-record*

aws:ResourceTag/${TagKey}

读取

GetRegistry

授予检索现有注册表的权限

registry*

aws:ResourceTag/${TagKey}

读取

GetRegistryRecord

授予检索现有注册表记录的权限

registry-record*

aws:ResourceTag/${TagKey}

读取

InvokeRegistryMcp

授予对现有注册表调用 MCP 操作的权限

registry*

aws:ResourceTag/${TagKey}

读取

ListDiscoverableRegistryRecords

授予在注册表中列出经批准的注册表记录的权限

registry*

aws:ResourceTag/${TagKey}

列表

ListRegistries

授予列出现有注册表的权限

列表

ListRegistryRecords

授予列出注册表中现有注册表记录的权限

registry*

aws:ResourceTag/${TagKey}

列表

ListTagsForResource

授予列出代理注册表资源标签的权限

registry

aws:ResourceTag/${TagKey}

列表

registry-record

aws:ResourceTag/${TagKey}

SearchDiscoverableRegistryRecords

授予搜索注册表记录的权限

registry*

aws:ResourceTag/${TagKey}

读取

SubmitRegistryRecordForApproval

授予提交注册记录以供批准的权限

registry-record*

aws:ResourceTag/${TagKey}

写入

TagResource

授予标记代理注册表资源的权限

registry

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

registry-record

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

授予取消标记代理注册表资源的权限

registry

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

registry-record

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateRegistry

授予更新现有注册表的权限

registry*

aws:ResourceTag/${TagKey}

写入

UpdateRegistryRecord

授予更新现有注册表记录的权限

registry-record*

aws:ResourceTag/${TagKey}

写入

UpdateRegistryRecordStatus

授予更新注册表记录状态的权限

registry-record*

aws:ResourceTag/${TagKey}

写入

Permission-only 的操作 AWS 代理注册表

以下操作定义为 AWS 代理注册表,但不能通过任何 API 操作直接调用。它们只能在 IAM 政策声明中用于授予或拒绝权限。

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

DeleteResourcePolicy

授予从指定资源中删除基于资源的策略的权限

registry

aws:ResourceTag/${TagKey}

写入

GetResourcePolicy

授予权限以检索指定资源的基于资源的策略

registry

aws:ResourceTag/${TagKey}

读取

PutResourcePolicy

授予为指定资源设置基于资源的策略的权限

registry

aws:ResourceTag/${TagKey}

写入

资源类型定义为 AWS 代理注册表

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

资源类型 ARN 条件键

registry

arn:${Partition}:agent-registry:${Region}:${Account}:registry/${RegistryId}

aws:ResourceTag/${TagKey}

registry-record

arn:${Partition}:agent-registry:${Region}:${Account}:registry/${RegistryId}/record/${RecordId}

aws:ResourceTag/${TagKey}

的条件键 AWS 代理注册表

AWS 代理注册表定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

agent-registry:RecordCreatorAccount

按以下条件筛选访问权限 AWS 账户 创建注册记录的委托人的 ID

String

agent-registry:RecordSourceAccount

按以下条件筛选访问权限 AWS 账户 与注册表记录关联的源资源的 ID

String

aws:RequestTag/${TagKey}

根据每个必需标签的允许值集,筛选对创建请求的访问权限

String

aws:ResourceTag/${TagKey}

根据与资源关联的标签值,筛选对操作的访问权限

String

aws:TagKeys

根据在请求中是否具有必需标签,筛选对创建请求的访问权限

ArrayOfString