Create a new payment session¶
Description¶
Create a new payment session.
Usage¶
bedrockagentcore_create_payment_session(userId, agentName,
paymentManagerArn, limits, expiryTimeInMinutes, clientToken)
Arguments¶
-
userIdThe user ID associated with this payment session.
-
agentNameThe agent name associated with this request, used for observability.
-
paymentManagerArn[required] The ARN of the payment manager that owns this session.
-
limitsThe spending limits for this payment session.
-
expiryTimeInMinutes[required] The session expiry time in minutes. Must be between 15 and 480 minutes.
-
clientTokenA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Value¶
A list with the following syntax:
list(
paymentSession = list(
paymentSessionId = "string",
paymentManagerArn = "string",
limits = list(
maxSpendAmount = list(
value = "string",
currency = "USD"
)
),
userId = "string",
expiryTimeInMinutes = 123,
createdAt = as.POSIXct(
"2015-01-01"
),
availableLimits = list(
availableSpendAmount = list(
value = "string",
currency = "USD"
),
updatedAt = as.POSIXct(
"2015-01-01"
)
),
updatedAt = as.POSIXct(
"2015-01-01"
)
)
)