:doc:`QConnect <../../qconnect>` / Client / list_message_template_versions

******************************
list_message_template_versions
******************************



.. py:method:: QConnect.Client.list_message_template_versions(**kwargs)

  

  Lists all the available versions for the specified Amazon Q in Connect message template.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/ListMessageTemplateVersions>`_  


  **Request Syntax**
  ::

    response = client.list_message_template_versions(
        knowledgeBaseId='string',
        messageTemplateId='string',
        nextToken='string',
        maxResults=123
    )
    
  :type knowledgeBaseId: string
  :param knowledgeBaseId: **[REQUIRED]** 

    The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    

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

    The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

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

    
    ::

      {
          'messageTemplateVersionSummaries': [
              {
                  'messageTemplateArn': 'string',
                  'messageTemplateId': 'string',
                  'knowledgeBaseArn': 'string',
                  'knowledgeBaseId': 'string',
                  'name': 'string',
                  'channel': 'string',
                  'channelSubtype': 'EMAIL'|'SMS'|'WHATSAPP'|'PUSH',
                  'isActive': True|False,
                  'versionNumber': 123
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **messageTemplateVersionSummaries** *(list) --* 

        Summary information about the versions of a message template.

        
        

        - *(dict) --* 

          The summary of the message template version.

          
          

          - **messageTemplateArn** *(string) --* 

            The Amazon Resource Name (ARN) of the message template.

            
          

          - **messageTemplateId** *(string) --* 

            The identifier of the message template.

            
          

          - **knowledgeBaseArn** *(string) --* 

            The Amazon Resource Name (ARN) of the knowledge base.

            
          

          - **knowledgeBaseId** *(string) --* 

            The identifier of the knowledge base.

            
          

          - **name** *(string) --* 

            The name of the message template.

            
          

          - **channel** *(string) --* 

            The channel of the message template.

            
          

          - **channelSubtype** *(string) --* 

            The channel subtype this message template applies to.

            
          

          - **isActive** *(boolean) --* 

            Whether the version of the message template is activated.

            
          

          - **versionNumber** *(integer) --* 

            The version number of the message template version.

            
      
    
      

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

        If there are additional results, this is the token for the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`QConnect.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`QConnect.Client.exceptions.ThrottlingException`

  