BedrockAgentCoreClient.create_payment_session
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Create a new payment session.
Install and imports
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
CreatePaymentSessionOutput,
SessionLimits,
)
Signature
async def create_payment_session(
*,
payment_manager_arn: str,
expiry_time_in_minutes: int,
user_id: str | None = None,
agent_name: str | None = None,
limits: SessionLimits | None = None,
client_token: str | None = None,
) -> CreatePaymentSessionOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
payment_manager_arn |
Yes | The ARN of the payment manager that owns this session. |
expiry_time_in_minutes |
Yes | The session expiry time in minutes. Must be between 15 and 480 minutes. |
user_id |
No | The user ID associated with this payment session. |
agent_name |
No | The agent name associated with this request, used for observability. |
limits |
No | The spending limits for this payment session. |
client_token |
No | A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. |
Output
CreatePaymentSessionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
payment_session |
PaymentSessionOutput | None |
Always present | PaymentSessionOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreatePaymentSessionOutput, SessionLimits
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ServiceQuotaExceededError, SubscriptionRequiredError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.