:doc:`LexModelsV2 <../../lexv2-models>` / Client / list_bot_resource_generations

*****************************
list_bot_resource_generations
*****************************



.. py:method:: LexModelsV2.Client.list_bot_resource_generations(**kwargs)

  

  Lists the generation requests made for a bot locale.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotResourceGenerations>`_  


  **Request Syntax**
  ::

    response = client.list_bot_resource_generations(
        botId='string',
        botVersion='string',
        localeId='string',
        sortBy={
            'attribute': 'creationStartTime'|'lastUpdatedTime',
            'order': 'Ascending'|'Descending'
        },
        maxResults=123,
        nextToken='string'
    )
    
  :type botId: string
  :param botId: **[REQUIRED]** 

    The unique identifier of the bot whose generation requests you want to view.

    

  
  :type botVersion: string
  :param botVersion: **[REQUIRED]** 

    The version of the bot whose generation requests you want to view.

    

  
  :type localeId: string
  :param localeId: **[REQUIRED]** 

    The locale of the bot whose generation requests you want to view.

    

  
  :type sortBy: dict
  :param sortBy: 

    An object containing information about the attribute and the method by which to sort the results

    

  
    - **attribute** *(string) --* **[REQUIRED]** 

      The attribute by which to sort the generation request information. You can sort by the following attributes.

       

      
      * ``creationStartTime`` – The time at which the generation request was created.
       
      * ``lastUpdatedTime`` – The time at which the generation request was last updated.
      

      

    
    - **order** *(string) --* **[REQUIRED]** 

      The order by which to sort the generation request information.

      

    
  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response.

    

  
  :type nextToken: string
  :param nextToken: 

    If the total number of results is greater than the number specified in the ``maxResults``, the response returns a token in the ``nextToken`` field. Use this token when making a request to return the next batch of results.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'botId': 'string',
          'botVersion': 'string',
          'localeId': 'string',
          'generationSummaries': [
              {
                  'generationId': 'string',
                  'generationStatus': 'Failed'|'Complete'|'InProgress',
                  'creationDateTime': datetime(2015, 1, 1),
                  'lastUpdatedDateTime': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **botId** *(string) --* 

        The unique identifier of the bot for which the generation requests were made.

        
      

      - **botVersion** *(string) --* 

        The version of the bot for which the generation requests were made.

        
      

      - **localeId** *(string) --* 

        The locale of the bot for which the generation requests were made.

        
      

      - **generationSummaries** *(list) --* 

        A list of objects, each containing information about a generation request for the bot locale.

        
        

        - *(dict) --* 

          Contains information about a generation request made for the bot locale.

          
          

          - **generationId** *(string) --* 

            The unique identifier of the generation request.

            
          

          - **generationStatus** *(string) --* 

            The status of the generation request.

            
          

          - **creationDateTime** *(datetime) --* 

            The date and time at which the generation request was made.

            
          

          - **lastUpdatedDateTime** *(datetime) --* 

            The date and time at which the generation request was last updated.

            
      
    
      

      - **nextToken** *(string) --* 

        If the total number of results is greater than the number specified in the ``maxResults``, the response returns a token in the ``nextToken`` field. Use this token when making a request to return the next batch of results.

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

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

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

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

  