BedrockAgentCore / Client / list_payment_sessions

list_payment_sessions

BedrockAgentCore.Client.list_payment_sessions(**kwargs)

List payment manager sessions

See also: AWS API Documentation

Request Syntax

response = client.list_payment_sessions(
    userId='string',
    agentName='string',
    paymentManagerArn='string',
    nextToken='string',
    maxResults=123
)
Parameters:
  • userId (string) – The user ID associated with the payment sessions.

  • agentName (string) – The agent name associated with this request, used for observability.

  • paymentManagerArn (string) –

    [REQUIRED]

    The ARN of the payment manager that owns the sessions.

  • nextToken (string) – Token for pagination to retrieve the next set of results.

  • maxResults (integer) – Maximum number of results to return in a single response.

Return type:

dict

Returns:

Response Syntax

{
    'paymentSessions': [
        {
            'paymentSessionId': 'string',
            'paymentManagerArn': 'string',
            'userId': 'string',
            'expiryTimeInMinutes': 123,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    Response structure for listing payment sessions

    • paymentSessions (list) –

      List of payment session summaries matching the request criteria.

      • (dict) –

        Summary of a payment session for list operations

        • paymentSessionId (string) –

          The unique identifier for this payment session.

        • paymentManagerArn (string) –

          The ARN of the payment manager that owns this session.

        • userId (string) –

          The user ID associated with this payment session.

        • expiryTimeInMinutes (integer) –

          The session expiry time in minutes.

        • createdAt (datetime) –

          The timestamp when this payment session was created.

        • updatedAt (datetime) –

          The timestamp when this payment session was last updated.

    • nextToken (string) –

      Token for pagination to retrieve the next set of results.

Exceptions

  • BedrockAgentCore.Client.exceptions.AccessDeniedException

  • BedrockAgentCore.Client.exceptions.ValidationException

  • BedrockAgentCore.Client.exceptions.ThrottlingException

  • BedrockAgentCore.Client.exceptions.InternalServerException