棄用登錄檔記錄
即將進行的命名空間遷移
AWS 客服人員登錄檔目前在 bedrock-agentcore 命名空間下為公開預覽。從 2026 年 8 月 6 日開始,服務會移至代理程式登錄命名空間。如果您使用 AWS 代理程式登錄檔,則必須更新端點、IAM 政策、SDK 用戶端、CLI 指令碼和登錄檔資料。如需從公有預覽遷移的詳細資訊,請參閱 綜合登錄遷移指南。
概觀
棄用登錄檔記錄會移除搜尋結果 (透過 SearchRegistryRecords API) 以及登錄檔的 MCP 端點中可探索的記錄。已棄用是終端機狀態,一旦記錄處於此狀態,就無法編輯或轉換為任何其他狀態。記錄仍可透過 ListRegistryRecords 和 GetRegistryRecord APIs進行稽核,但無法取消取代。
基於下列原因棄用記錄:您停用資源、發佈較新版本的資源 (在登錄檔中具有獨立記錄)、資源已知您不希望其他建置器探索資源的問題,或內部政策需要移除資源記錄。
棄用記錄
主控台
-
開啟記錄詳細資訊頁面。
-
選擇更新狀態下拉式清單,然後選擇棄用。
-
在更新狀態對話方塊中,輸入棄用的原因。
-
選擇更新。
注意
棄用可從任何記錄狀態使用。
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 開發套件
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']}")