Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅
中国的 Amazon Web Services 服务入门
(PDF)。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
弃用注册表记录
Amazon 代理注册表已在新agent-registry命名空间下启动。2026 年 10 月 30 日将停止对公共预览版bedrock-agentcore命名空间的支持。有关迁移说明,请参阅注册表迁移综合指南。
概述
弃用注册表记录时,会将其从可发现的数据平面 API (SearchDiscoverableRegistryRecords、ListDiscoverableRegistryRecords、BatchGetDiscoverableRegistryRecord) 和注册表的 MCP 端点中删除。Deprecated 是一种终止状态 — 记录达到此状态后,您无法对其进行编辑或将其转换为任何其他状态。出于审计目的,您仍然可以通过使用ListRegistryRecords和 GetRegistryRecord API 来查找记录,但不能取消弃用。
弃用记录的原因包括:您已停用该资源、发布了较新版本的资源(注册表中有独立记录)、该资源存在已知问题,您不希望其他构建者发现该资源,或者内部政策要求删除该资源记录。
弃用记录
控制台
-
打开记录详情页面。
-
选择 “更新状态” 下拉列表,然后选择 “弃用”。
-
在 “更新状态” 对话框中,输入弃用原因。
-
选择更新。
Amazon CLI
例
- Amazon Agent Registry namespace
-
aws agent-registry-control update-registry-record-status \
--registry-id "<registryId>" \
--record-id "<recordId>" \
--status DEPRECATED \
--status-reason "Replaced by v2" \
--region us-east-1
- Amazon Bedrock AgentCore namespace (to be deprecated)
-
aws bedrock-agentcore-control update-registry-record-status \
--registry-id "<registryId>" \
--record-id "<recordId>" \
--status DEPRECATED \
--status-reason "Replaced by v2" \
--region us-east-1
Amazon SDK
例
- Amazon Agent Registry namespace
-
import boto3
client = boto3.client('agent-registry-control')
response = client.update_registry_record_status(
registryId='<registryId>',
recordId='<recordId>',
status='DEPRECATED',
statusReason='Replaced by v2'
)
print(f"Status: {response['status']}") # DEPRECATED
print(f"StatusReason: {response['statusReason']}")
- Amazon Bedrock AgentCore namespace (to be deprecated)
-
import boto3
client = boto3.client('bedrock-agentcore-control')
response = client.update_registry_record_status(
registryId='<registryId>',
recordId='<recordId>',
status='DEPRECATED',
statusReason='Replaced by v2'
)
print(f"Status: {response['status']}") # DEPRECATED
print(f"StatusReason: {response['statusReason']}")