:doc:`AgentsforBedrock <../../bedrock-agent>` / Paginator / ListAgentVersions

*****************
ListAgentVersions
*****************



.. py:class:: AgentsforBedrock.Paginator.ListAgentVersions

  ::

    
    paginator = client.get_paginator('list_agent_versions')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`AgentsforBedrock.Client.list_agent_versions`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListAgentVersions>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          agentId='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type agentId: string
    :param agentId: **[REQUIRED]** 

      The unique identifier of the agent.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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.

        

      
    
    
    :rtype: 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',
                    'guardrailConfiguration': {
                        'guardrailIdentifier': 'string',
                        'guardrailVersion': 'string'
                    }
                },
            ],
            '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.

              
            

            - **updatedAt** *(datetime) --* 

              The time at which the version was last updated.

              
            

            - **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.

                
          
        
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    