{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-entity-resolution/json-schema/amazon-entity-resolution-generate-match-id-input-schema.json",
  "title": "GenerateMatchIdInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-entity-resolution-operations-api-openapi.yml#/components/schemas/GenerateMatchIdInput",
  "type": "object",
  "properties": {
    "workflowName": {
      "type": "string",
      "description": "The name of the rule-based matching workflow."
    },
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Record"
      },
      "description": "The records to match."
    },
    "processingType": {
      "type": "string",
      "enum": [
        "CONSISTENT",
        "EVENTUAL",
        "EVENTUAL_NO_LOOKUP"
      ],
      "description": "The processing mode that determines how Match IDs are generated and results are saved. Each mode provides different levels of accuracy, response time, and completeness of results. If not specified, defaults to CONSISTENT. CONSISTENT: Performs immediate lookup and matching against all existing records, with results saved synchronously. Provides highest accuracy but slower response time. EVENTUAL (shown as Background in the console): Performs initial match ID lookup or generation immediately, with record updates processed asynchronously in the background. Offers faster initial response time, wit"
    }
  },
  "required": [
    "workflowName",
    "records"
  ],
  "$defs": {
    "Record": {
      "type": "object",
      "properties": {
        "inputSourceARN": {
          "type": "string",
          "description": "The input source ARN of the record."
        },
        "uniqueId": {
          "type": "string",
          "description": "The unique ID of the record."
        },
        "recordAttributeMap": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The record's attribute map."
        }
      },
      "required": [
        "inputSourceARN",
        "uniqueId",
        "recordAttributeMap"
      ]
    }
  }
}