kendra / Client / exceptions / FeaturedResultsConflictException

FeaturedResultsConflictException#

class kendra.Client.exceptions.FeaturedResultsConflictException#

An error message with a list of conflicting queries used across different sets of featured results. This occurred with the request for a new featured results set. Check that the queries you specified for featured results are unique per featured results set for each index.

Example

try:
  ...
except client.exceptions.FeaturedResultsConflictException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'ConflictingItems': [
        {
            'QueryText': 'string',
            'SetName': 'string',
            'SetId': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    An error message with a list of conflicting queries used across different sets of featured results. This occurred with the request for a new featured results set. Check that the queries you specified for featured results are unique per featured results set for each index.

    • Message (string) –

      An explanation for the conflicting queries.

    • ConflictingItems (list) –

      A list of the conflicting queries, including the query text, the name for the featured results set, and the identifier of the featured results set.

      • (dict) –

        Information about a conflicting query used across different sets of featured results. When you create a featured results set, you must check that the queries are unique per featured results set for each index.

        • QueryText (string) –

          The text of the conflicting query.

        • SetName (string) –

          The name for the set of featured results that the conflicting query belongs to.

        • SetId (string) –

          The identifier of the set of featured results that the conflicting query belongs to.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.