AgentsforBedrock / Paginator / ListAgentVersions

ListAgentVersions#

class AgentsforBedrock.Paginator.ListAgentVersions#
paginator = client.get_paginator('list_agent_versions')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from AgentsforBedrock.Client.list_agent_versions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    agentId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • agentId (string) –

    [REQUIRED]

    Id generated at the server side when an Agent is created

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'agentVersionSummaries': [
        {
            'agentName': 'string',
            'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
            'agentVersion': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'description': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    List Agent Versions Response

    • agentVersionSummaries (list) –

      List of AgentVersionSummary.

      • (dict) –

        Summary of agent version.

        • agentName (string) –

          Name for a resource.

        • agentStatus (string) –

          Schema Type for Action APIs.

        • agentVersion (string) –

          Agent Version.

        • createdAt (datetime) –

          Time Stamp.

        • updatedAt (datetime) –

          Time Stamp.

        • description (string) –

          Description of the Resource.

    • NextToken (string) –

      A token to resume pagination.