Create Payment Session
| bedrockagentcore_create_payment_session | R Documentation |
Create a new payment session¶
Description¶
Create a new payment session.
Usage¶
bedrockagentcore_create_payment_session(userId, agentName,
paymentManagerArn, limits, expiryTimeInMinutes, clientToken)
Arguments¶
userId |
The user ID associated with this payment session. |
agentName |
The agent name associated with this request, used for observability. |
paymentManagerArn |
[required] The ARN of the payment manager that owns this session. |
limits |
The spending limits for this payment session. |
expiryTimeInMinutes |
[required] The session expiry time in minutes. Must be between 15 and 480 minutes. |
clientToken |
A 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"
)
)
)
Request syntax¶
svc$create_payment_session(
userId = "string",
agentName = "string",
paymentManagerArn = "string",
limits = list(
maxSpendAmount = list(
value = "string",
currency = "USD"
)
),
expiryTimeInMinutes = 123,
clientToken = "string"
)