QConnect / Paginator / SearchMessageTemplates

SearchMessageTemplates#

class QConnect.Paginator.SearchMessageTemplates#
paginator = client.get_paginator('search_message_templates')
paginate(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    knowledgeBaseId='string',
    searchExpression={
        'filters': [
            {
                'includeNoExistence': True|False,
                'name': 'string',
                'operator': 'EQUALS'|'PREFIX',
                'values': [
                    'string',
                ]
            },
        ],
        'orderOnField': {
            'name': 'string',
            'order': 'ASC'|'DESC'
        },
        'queries': [
            {
                'allowFuzziness': True|False,
                'name': 'string',
                'operator': 'CONTAINS'|'CONTAINS_AND_PREFIX',
                'priority': 'HIGH'|'MEDIUM'|'LOW',
                'values': [
                    '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.

  • searchExpression (dict) –

    [REQUIRED]

    The search expression for querying the message template.

    • filters (list) –

      The configuration of filtering rules applied to message template query results.

      • (dict) –

        The message template fields to filter the message template query results by. The following is the list of supported field names:

        • name

        • description

        • channel

        • channelSubtype

        • language

        • qualifier

        • createdTime

        • lastModifiedTime

        • lastModifiedBy

        • groupingConfiguration.criteria

        • groupingConfiguration.values

        • includeNoExistence (boolean) –

          Whether to treat null value as a match for the attribute field.

        • name (string) – [REQUIRED]

          The name of the attribute field to filter the message templates by.

        • operator (string) – [REQUIRED]

          The operator to use for filtering.

        • values (list) –

          The values of attribute field to filter the message template by.

          • (string) –

    • orderOnField (dict) –

      The message template attribute fields on which the query results are ordered.

      • name (string) – [REQUIRED]

        The name of the message template.

      • order (string) –

        The order at which the message templates are sorted by.

    • queries (list) –

      The message template query expressions.

      • (dict) –

        The message template fields to query message templates by. The following is the list of supported field names:

        • name

        • description

        • allowFuzziness (boolean) –

          Whether the query expects only exact matches on the attribute field values. The results of the query will only include exact matches if this parameter is set to false.

        • name (string) – [REQUIRED]

          The name of the attribute to query the message templates by.

        • operator (string) – [REQUIRED]

          The operator to use for matching attribute field values in the query.

        • priority (string) –

          The importance of the attribute field when calculating query result relevancy scores. The value set for this parameter affects the ordering of search results.

        • values (list) – [REQUIRED]

          The values of the attribute to query the message templates by.

          • (string) –

  • 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

{
    'results': [
        {
            'channelSubtype': 'EMAIL'|'SMS',
            'createdTime': datetime(2015, 1, 1),
            'description': 'string',
            'groupingConfiguration': {
                'criteria': 'string',
                'values': [
                    'string',
                ]
            },
            'isActive': True|False,
            'knowledgeBaseArn': 'string',
            'knowledgeBaseId': 'string',
            'language': 'string',
            'lastModifiedBy': 'string',
            'lastModifiedTime': datetime(2015, 1, 1),
            'messageTemplateArn': 'string',
            'messageTemplateId': 'string',
            'name': 'string',
            'tags': {
                'string': 'string'
            },
            'versionNumber': 123
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • results (list) –

      The results of the message template search.

      • (dict) –

        The result of message template search.

        • 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.

        • groupingConfiguration (dict) –

          The configuration information of the grouping of Amazon Q in Connect users.

          • criteria (string) –

            The criteria used for grouping Amazon Q in Connect users.

            The following is the list of supported criteria values.

          • values (list) –

            The list of values that define different groups of Amazon Q in Connect users.

            • (string) –

        • isActive (boolean) –

          Whether the version of the message template is activated.

        • knowledgeBaseArn (string) –

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

        • knowledgeBaseId (string) –

          The identifier of the knowledge base.

        • language (string) –

          The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

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

        • versionNumber (integer) –

          The version number of the message template version.

    • NextToken (string) –

      A token to resume pagination.