:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / list_agent_versions

*******************
list_agent_versions
*******************



.. py:method:: AgentsforBedrock.Client.list_agent_versions(**kwargs)

  

  Lists the versions of an agent and information about each version.

  

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


  **Request Syntax**
  ::

    response = client.list_agent_versions(
        agentId='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type agentId: string
  :param agentId: **[REQUIRED]** 

    The unique identifier of the agent.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the ``nextToken`` field when making another request to return the next batch of results.

    

  
  :type nextToken: string
  :param nextToken: 

    If the total number of results is greater than the ``maxResults`` value provided in the request, enter the token returned in the ``nextToken`` field in the response in this field to return the next batch of results.

    

  
  
  :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) --* 

        If the total number of results is greater than the ``maxResults`` value provided in the request, use this token when making another request in the ``nextToken`` field to return the next batch of results.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ResourceNotFoundException`

  