QConnect / Paginator / ListMessageTemplates

ListMessageTemplates#

class QConnect.Paginator.ListMessageTemplates#
paginator = client.get_paginator('list_message_templates')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from QConnect.Client.list_message_templates().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    knowledgeBaseId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • knowledgeBaseId (string) –

    [REQUIRED]

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

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

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) –

      A token to resume pagination.