Skip to main content

agent_cards

Creates, updates, deletes, gets or lists an agent_cards resource.

Overview

Nameagent_cards
TypeResource
Idaws.bedrock_agentcore.agent_cards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_cardobjectAn agent card document that contains metadata and capabilities for an AgentCore Runtime agent.
runtime_session_idstringThe ID of the session associated with the AgentCore Runtime agent. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-_]*</code>)
status_codeintegerThe status code of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_cardselectagent_runtime_arn, regionX-Amzn-Bedrock-AgentCore-Runtime-Session-Id, qualifierRetrieves the A2A agent card associated with an AgentCore Runtime agent.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_runtime_arnstringThe ARN of the AgentCore Runtime agent for which you want to get the A2A agent card.
regionstringAWS region (default: us-east-1)
X-Amzn-Bedrock-AgentCore-Runtime-Session-IdstringThe session ID that the AgentCore Runtime agent is using.
qualifierstringOptional qualifier to specify an agent alias, such as prodcode> or dev. If you don't provide a value, the DEFAULT alias is used.

SELECT examples

Retrieves the A2A agent card associated with an AgentCore Runtime agent.

SELECT
agent_card,
runtime_session_id,
status_code
FROM aws.bedrock_agentcore.agent_cards
WHERE agent_runtime_arn = '{{ agent_runtime_arn }}' -- required
AND region = '{{ region }}' -- required
AND `X-Amzn-Bedrock-AgentCore-Runtime-Session-Id` = '{{ X-Amzn-Bedrock-AgentCore-Runtime-Session-Id }}'
AND qualifier = '{{ qualifier }}'
;