View a markdown version of this page

檢閱登錄檔記錄 - Amazon Bedrock AgentCore

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

檢閱登錄檔記錄

遷移現已開啟

AWS 代理程式登錄檔已在新的agent-registry命名空間下啟動。公有預覽bedrock-agentcore命名空間的支援將於 2026 年 9 月 17 日停止。如需遷移說明,請參閱綜合登錄遷移指南。

概觀

身為策展者,您可以根據組織的安全性、合規性和中繼資料品質標準,檢閱處於待核准狀態的記錄。

檢視擱置中的記錄

身為策展者,您可以從登錄檔詳細資訊頁面、 AWS CLI 或 AWS SDK 找到等待檢閱的記錄。

主控台

範例
AWS Agent Registry namespace
  1. 開啟 AWS 代理程式登錄檔主控台。

  2. 在導覽窗格中,選擇登錄檔,然後選擇您要檢閱的登錄檔。

  3. 在登錄檔記錄區段中,待核准狀態摘要計數器會顯示有多少記錄正在等待檢閱。

  4. 依狀態篩選記錄資料表,以僅顯示處於待核准狀態的記錄。

  5. 選擇記錄的名稱以開啟其詳細資訊頁面並檢閱其內容。

Amazon Bedrock AgentCore namespace (to be deprecated)
  1. 在 Bedrock-AgentCore 主控台中開啟 AWS 代理程式登錄頁面。

  2. 在導覽窗格中,選擇登錄檔,然後選擇您要檢閱的登錄檔。

  3. 在登錄檔記錄區段中,待核准狀態摘要計數器會顯示有多少記錄正在等待檢閱。

  4. 依狀態篩選記錄資料表,以僅顯示處於待核准狀態的記錄。

  5. 選擇記錄的名稱以開啟其詳細資訊頁面並檢閱其內容。

AWS CLI

範例
AWS Agent Registry namespace
aws agent-registry-control list-registry-records \ --registry-id "<registryId>" \ --filters '[{"name": "status", "values": ["PENDING_APPROVAL"]}]' \ --region us-east-1
Amazon Bedrock AgentCore namespace (to be deprecated)
aws bedrock-agentcore-control list-registry-records \ --registry-id "<registryId>" \ --status PENDING_APPROVAL \ --region us-east-1

AWS 開發套件

範例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.list_registry_records( registryId='<registryId>', filters=[{'name': 'status', 'values': ['PENDING_APPROVAL']}] ) for record in response['registryRecords']: print(f"{record['displayName']} ({record['name']}) - {record['recordType']}")
Amazon Bedrock AgentCore namespace (to be deprecated)
import boto3 client = boto3.client('bedrock-agentcore-control') response = client.list_registry_records( registryId='<registryId>', status='PENDING_APPROVAL' ) for record in response['registryRecords']: print(f"{record['name']} - {record['descriptorType']}")

核准記錄

主控台

  1. 開啟處於待核准狀態之記錄的記錄詳細資訊頁面。

  2. 選擇更新狀態下拉式清單,然後選擇核准。

  3. 在更新狀態對話方塊中,輸入狀態變更的原因。

  4. 選擇更新。

AWS CLI

範例
AWS Agent Registry namespace
aws agent-registry-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status APPROVED \ --status-reason "Reviewed and approved" \ --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 APPROVED \ --status-reason "Reviewed and approved" \ --region us-east-1

AWS 開發套件

範例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='APPROVED', statusReason='Reviewed and approved' ) print(f"Status: {response['status']}") # APPROVED 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='APPROVED', statusReason='Reviewed and approved' ) print(f"Status: {response['status']}") # APPROVED print(f"StatusReason: {response['statusReason']}")

拒絕記錄

主控台

  1. 開啟處於待核准狀態之記錄的記錄詳細資訊頁面。

  2. 選擇更新狀態下拉式清單,然後選擇拒絕。

  3. 在更新狀態對話方塊中,輸入拒絕的原因。

  4. 選擇更新。

AWS CLI

範例
AWS Agent Registry namespace
aws agent-registry-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status REJECTED \ --status-reason "Missing tool input schemas" \ --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 REJECTED \ --status-reason "Missing tool input schemas" \ --region us-east-1

AWS 開發套件

範例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='REJECTED', statusReason='Missing tool input schemas' ) print(f"Status: {response['status']}") # REJECTED 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='REJECTED', statusReason='Missing tool input schemas' ) print(f"Status: {response['status']}") # REJECTED print(f"StatusReason: {response['statusReason']}")
注意

發佈者可以編輯並重新提交,或者策展者可以直接核准遭拒的記錄。