{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-start-import-job-request-schema.json",
  "title": "StartImportJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-importjobs-api-openapi.yml#/components/schemas/StartImportJobRequest",
  "type": "object",
  "properties": {
    "knowledgeBaseId": {
      "type": "string",
      "description": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. For importing Amazon Q in Connect quick responses, this should be a QUICK_RESPONSES type knowledge base."
    },
    "importJobType": {
      "type": "string",
      "description": "The type of the import job. For importing quick response resource, set the value to QUICK_RESPONSES."
    },
    "uploadId": {
      "type": "string",
      "description": "A pointer to the uploaded asset. This value is returned by StartContentUpload."
    },
    "clientToken": {
      "type": "string",
      "description": "The tags used to organize, track, or control access for this resource."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The metadata fields of the imported Amazon Q in Connect resources."
    },
    "externalSourceConfiguration": {
      "$ref": "#/$defs/ExternalSourceConfiguration"
    }
  },
  "required": [
    "knowledgeBaseId",
    "importJobType",
    "uploadId"
  ],
  "$defs": {
    "Configuration": {
      "type": "object",
      "properties": {
        "connectConfiguration": {
          "$ref": "#/$defs/ConnectConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConnectConfiguration": {
      "type": "object",
      "properties": {
        "instanceId": {
          "type": "string",
          "description": "The identifier of the Connect Customer instance. You can find the instanceId in the ARN of the instance."
        }
      }
    },
    "ExternalSourceConfiguration": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "The type of the external data source."
        },
        "configuration": {
          "$ref": "#/$defs/Configuration"
        }
      },
      "required": [
        "source",
        "configuration"
      ]
    }
  }
}