{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-get-import-job-response-schema.json",
  "title": "GetImportJobResponse",
  "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/GetImportJobResponse",
  "type": "object",
  "properties": {
    "importJob": {
      "$ref": "#/$defs/ImportJobData"
    }
  },
  "$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"
      ]
    },
    "ImportJobData": {
      "type": "object",
      "properties": {
        "importJobId": {
          "type": "string",
          "description": "The identifier of the import job."
        },
        "knowledgeBaseId": {
          "type": "string",
          "description": "The identifier of the knowledge base."
        },
        "uploadId": {
          "type": "string",
          "description": "A pointer to the uploaded asset. This value is returned by StartContentUpload."
        },
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the knowledge base."
        },
        "importJobType": {
          "type": "string",
          "description": "The type of the import job."
        },
        "status": {
          "type": "string",
          "description": "The status of the import job."
        },
        "url": {
          "type": "string",
          "description": "The download link to the resource file that is uploaded to the import job."
        },
        "failedRecordReport": {
          "type": "string",
          "description": "The link to download the information of resource data that failed to be imported."
        },
        "urlExpiry": {
          "type": "string",
          "description": "The expiration time of the URL as an epoch timestamp."
        },
        "createdTime": {
          "type": "string",
          "description": "The timestamp when the import job was created."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the import job data was last modified."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The metadata fields of the imported Amazon Q in Connect resources."
        },
        "externalSourceConfiguration": {
          "$ref": "#/$defs/ExternalSourceConfiguration"
        }
      },
      "required": [
        "importJobId",
        "knowledgeBaseId",
        "uploadId",
        "knowledgeBaseArn",
        "importJobType",
        "status",
        "url",
        "urlExpiry",
        "createdTime",
        "lastModifiedTime"
      ]
    }
  }
}