{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-auto-merging-preview-request-schema.json",
  "title": "GetAutoMergingPreviewRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-identity-resolution-jobs-api-openapi.yml#/components/schemas/GetAutoMergingPreviewRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The unique name of the domain."
    },
    "Consolidation": {
      "$ref": "#/$defs/Consolidation"
    },
    "ConflictResolution": {
      "$ref": "#/$defs/ConflictResolution"
    },
    "MinAllowedConfidenceScoreForMerging": {
      "type": "number",
      "description": "Minimum confidence score required for profiles within a matching group to be merged during the auto-merge process."
    }
  },
  "required": [
    "DomainName",
    "Consolidation",
    "ConflictResolution"
  ],
  "$defs": {
    "ConflictResolution": {
      "type": "object",
      "properties": {
        "ConflictResolvingModel": {
          "type": "string",
          "enum": [
            "RECENCY",
            "SOURCE"
          ],
          "description": "How the auto-merging process should resolve conflicts between different profiles. RECENCY: Uses the data that was most recently updated. SOURCE: Uses the data from a specific source. For example, if a company has been aquired or two departments have merged, data from the specified source is used. If two duplicate profiles are from the same source, then RECENCY is used again."
        },
        "SourceName": {
          "type": "string",
          "description": "The ObjectType name that is used to resolve profile merging conflicts when choosing SOURCE as the ConflictResolvingModel."
        }
      },
      "required": [
        "ConflictResolvingModel"
      ]
    },
    "Consolidation": {
      "type": "object",
      "properties": {
        "MatchingAttributesList": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "A list of matching criteria."
        }
      },
      "required": [
        "MatchingAttributesList"
      ]
    }
  }
}