QConnect / Client / list_message_templates

list_message_templates#

QConnect.Client.list_message_templates(**kwargs)#

Lists all the available Amazon Q in Connect message templates for the specified knowledge base.

See also: AWS API Documentation

Request Syntax

response = client.list_message_templates(
    knowledgeBaseId='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • knowledgeBaseId (string) –

    [REQUIRED]

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

  • maxResults (integer) – The maximum number of results to return per page.

  • nextToken (string) – 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.

Return type:

dict

Returns:

Response Syntax

{
    'messageTemplateSummaries': [
        {
            'activeVersionNumber': 123,
            'channelSubtype': 'EMAIL'|'SMS',
            'createdTime': datetime(2015, 1, 1),
            'description': 'string',
            'knowledgeBaseArn': 'string',
            'knowledgeBaseId': 'string',
            'lastModifiedBy': 'string',
            'lastModifiedTime': datetime(2015, 1, 1),
            'messageTemplateArn': 'string',
            'messageTemplateId': 'string',
            'name': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • messageTemplateSummaries (list) –

      Summary information about the message template.

      • (dict) –

        The summary of the message template.

        • activeVersionNumber (integer) –

          The version number of the message template version that is activated.

        • channelSubtype (string) –

          The channel subtype this message template applies to.

        • createdTime (datetime) –

          The timestamp when the message template was created.

        • description (string) –

          The description of the message template.

        • knowledgeBaseArn (string) –

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

        • knowledgeBaseId (string) –

          The identifier of the knowledge base.

        • lastModifiedBy (string) –

          The Amazon Resource Name (ARN) of the user who last updated the message template data.

        • lastModifiedTime (datetime) –

          The timestamp when the message template data was last modified.

        • messageTemplateArn (string) –

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

        • messageTemplateId (string) –

          The identifier of the message template.

        • name (string) –

          The name of the message template.

        • tags (dict) –

          The tags used to organize, track, or control access for this resource.

          • (string) –

            • (string) –

    • nextToken (string) –

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

Exceptions

  • QConnect.Client.exceptions.ValidationException

  • QConnect.Client.exceptions.AccessDeniedException

  • QConnect.Client.exceptions.ResourceNotFoundException

  • QConnect.Client.exceptions.ThrottlingException