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]

    The unique identifier of the agent.

  • 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),
            'description': 'string',
            'guardrailConfiguration': {
                'guardrailIdentifier': 'string',
                'guardrailVersion': 'string'
            },
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • agentVersionSummaries (list) –

      A list of objects, each of which contains information about a version of the agent.

      • (dict) –

        Contains details about a version of an agent.

        • agentName (string) –

          The name of the agent to which the version belongs.

        • agentStatus (string) –

          The status of the agent to which the version belongs.

        • agentVersion (string) –

          The version of the agent.

        • createdAt (datetime) –

          The time at which the version was created.

        • description (string) –

          The description of the version of the agent.

        • guardrailConfiguration (dict) –

          Details about the guardrail associated with the agent.

          • guardrailIdentifier (string) –

            The unique identifier of the guardrail.

          • guardrailVersion (string) –

            The version of the guardrail.

        • updatedAt (datetime) –

          The time at which the version was last updated.

    • NextToken (string) –

      A token to resume pagination.