Skip to main content

payment_instrument_balances

Creates, updates, deletes, gets or lists a payment_instrument_balances resource.

Overview

Namepayment_instrument_balances
TypeResource
Idaws.bedrock_agentcore.payment_instrument_balances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
payment_instrument_idstringThe ID of the payment instrument. (pattern: <code>payment-instrument-[0-9a-zA-Z-]{15}</code>)
token_balanceobjectThe balance of the supported token on the requested chain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_payment_instrument_balanceselectregionX-Amzn-Bedrock-AgentCore-Payments-User-Id, X-Amzn-Bedrock-AgentCore-Payments-Agent-NameGet the balance of a payment instrument.

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
regionstringAWS region (default: us-east-1)
X-Amzn-Bedrock-AgentCore-Payments-Agent-NamestringThe agent name associated with this request, used for observability.
X-Amzn-Bedrock-AgentCore-Payments-User-IdstringThe user ID associated with this payment instrument.

SELECT examples

Get the balance of a payment instrument.

SELECT
payment_instrument_id,
token_balance
FROM aws.bedrock_agentcore.payment_instrument_balances
WHERE region = '{{ region }}' -- required
AND `X-Amzn-Bedrock-AgentCore-Payments-User-Id` = '{{ X-Amzn-Bedrock-AgentCore-Payments-User-Id }}'
AND `X-Amzn-Bedrock-AgentCore-Payments-Agent-Name` = '{{ X-Amzn-Bedrock-AgentCore-Payments-Agent-Name }}'
;