View a markdown version of this page

弃用注册表记录 - Amazon Bedrock AgentCore

弃用注册表记录

即将进行的命名空间迁移

AWS Agent Registry 目前在 bedrock-agentcore 命名空间下处于公开预览状态。从 2026 年 8 月 6 日起,该服务将移至代理注册表命名空间。如果您使用 AWS 代理注册表,则必须更新您的终端节点、IAM 策略、SDK 客户端、CLI 脚本和注册表数据。有关从公共预览版迁移的更多信息,请参阅注册表迁移综合指南

概述

弃用注册表记录会使该记录无法在搜索结果(通过 SearchRegistryRecords API)以及注册管理机构的 MCP 端点中被发现。Deprecated 是一种终止状态,一旦记录处于这种状态,就无法对其进行编辑或过渡到任何其他状态。出于审计目的,仍然可以通过 ListRegistryRecords 和 GetRegistryRecord API 找到记录,但不能取消弃用。

弃用记录的原因包括:您已停用该资源、发布了较新版本的资源(注册表中有独立记录)、该资源存在已知问题,您不希望其他构建者发现该资源,或者内部政策要求删除该资源记录。

弃用记录

控制台

  1. 打开记录详情页面。

  2. 选择更新状态下拉列表,然后选择弃用

  3. 在 “更新状态” 对话框中,输入弃用原因

  4. 选择更新

注意

任何记录状态均可弃用。

AWS CLI

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

AWS SDK

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']}")