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

********************************
describe_bot_resource_generation
********************************



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

  

  Returns information about a request to generate a bot through natural language description, made through the ``StartBotResource`` API. Use the ``generatedBotLocaleUrl`` to retrieve the Amazon S3 object containing the bot locale configuration. You can then modify and import this configuration.

  

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


  **Request Syntax**
  ::

    response = client.describe_bot_resource_generation(
        botId='string',
        botVersion='string',
        localeId='string',
        generationId='string'
    )
    
  :type botId: string
  :param botId: **[REQUIRED]** 

    The unique identifier of the bot for which to return the generation details.

    

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

    The version of the bot for which to return the generation details.

    

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

    The locale of the bot for which to return the generation details.

    

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

    The unique identifier of the generation request for which to return the generation details.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The unique identifier of the bot for which the generation request was made.

        
      

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

        The version of the bot for which the generation request was made.

        
      

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

        The locale of the bot for which the generation request was made.

        
      

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

        The generation ID for which to return the generation details.

        
      

      - **failureReasons** *(list) --* 

        A list of reasons why the generation of bot resources through natural language description failed.

        
        

        - *(string) --* 
    
      

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

        The status of the generation request.

        
      

      - **generationInputPrompt** *(string) --* 

        The prompt used in the generation request.

        
      

      - **generatedBotLocaleUrl** *(string) --* 

        The Amazon S3 location of the generated bot locale configuration.

        
      

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

        The date and time at which the item was generated.

        
      

      - **modelArn** *(string) --* 

        The ARN of the model used to generate the bot resources.

        
      

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

        The date and time at which the generated item was updated.

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

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

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

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

  