{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-ingestion-job-response-schema.json",
  "title": "GetIngestionJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-ingestionjobs-api-openapi.yml#/components/schemas/GetIngestionJobResponse",
  "type": "object",
  "properties": {
    "ingestionJob": {
      "$ref": "#/$defs/IngestionJob"
    }
  },
  "required": [
    "ingestionJob"
  ],
  "$defs": {
    "IngestionJob": {
      "type": "object",
      "properties": {
        "knowledgeBaseId": {
          "type": "string",
          "description": "The unique identifier of the knowledge for the data ingestion job."
        },
        "dataSourceId": {
          "type": "string",
          "description": "The unique identifier of the data source for the data ingestion job."
        },
        "ingestionJobId": {
          "type": "string",
          "description": "The unique identifier of the data ingestion job."
        },
        "description": {
          "type": "string",
          "description": "The description of the data ingestion job."
        },
        "status": {
          "type": "string",
          "enum": [
            "STARTING",
            "IN_PROGRESS",
            "COMPLETE",
            "FAILED",
            "STOPPING",
            "STOPPED"
          ],
          "description": "The status of the data ingestion job."
        },
        "statistics": {
          "$ref": "#/$defs/IngestionJobStatistics"
        },
        "failureReasons": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of reasons that the data ingestion job failed."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time the data ingestion job started. If you stop a data ingestion job, the startedAt time is the time the job was started before the job was stopped."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time the data ingestion job was last updated. If you stop a data ingestion job, the updatedAt time is the time the job was stopped."
        },
        "textReadyAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which all text content in the data ingestion job finished extraction and became available to query. This time isn't returned until text extraction is complete for all the documents in the job."
        }
      },
      "required": [
        "knowledgeBaseId",
        "dataSourceId",
        "ingestionJobId",
        "status",
        "startedAt",
        "updatedAt"
      ]
    },
    "IngestionJobStatistics": {
      "type": "object",
      "properties": {
        "numberOfDocumentsScanned": {
          "type": "string",
          "description": "The total number of source documents that were scanned. Includes new, updated, and unchanged documents."
        },
        "numberOfMetadataDocumentsScanned": {
          "type": "string",
          "description": "The total number of metadata files that were scanned. Includes new, updated, and unchanged files."
        },
        "numberOfNewDocumentsIndexed": {
          "type": "string",
          "description": "The number of new source documents in the data source that were successfully indexed."
        },
        "numberOfModifiedDocumentsIndexed": {
          "type": "string",
          "description": "The number of modified source documents in the data source that were successfully indexed."
        },
        "numberOfMetadataDocumentsModified": {
          "type": "string",
          "description": "The number of metadata files that were updated or deleted."
        },
        "numberOfDocumentsDeleted": {
          "type": "string",
          "description": "The number of source documents that were deleted."
        },
        "numberOfDocumentsFailed": {
          "type": "string",
          "description": "The number of source documents that failed to be ingested."
        },
        "numberOfDocumentsSkipped": {
          "type": "string",
          "description": "The number of source documents that were skipped during ingestion."
        }
      }
    }
  }
}