{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-upload-job-response-schema.json",
  "title": "GetUploadJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-upload-jobs-api-openapi.yml#/components/schemas/GetUploadJobResponse",
  "type": "object",
  "properties": {
    "JobId": {
      "type": "string",
      "description": "The unique identifier of the upload job."
    },
    "DisplayName": {
      "type": "string",
      "description": "The unique name of the upload job. Could be a file name to identify the upload job."
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATED",
        "IN_PROGRESS",
        "PARTIALLY_SUCCEEDED",
        "SUCCEEDED",
        "FAILED",
        "STOPPED"
      ],
      "description": "The status describing the status for the upload job. The following are Valid Values: CREATED: The upload job has been created, but has not started processing yet. IN_PROGRESS: The upload job is currently in progress, ingesting and processing the profile data. PARTIALLY_SUCCEEDED: The upload job has successfully completed the ingestion and processing of all profile data. SUCCEEDED: The upload job has successfully completed the ingestion and processing of all profile data. FAILED: The upload job has failed to complete. STOPPED: The upload job has been manually stopped or terminated before comple"
    },
    "StatusReason": {
      "type": "string",
      "enum": [
        "VALIDATION_FAILURE",
        "INTERNAL_FAILURE"
      ],
      "description": "The reason for the current status of the upload job. Possible reasons: VALIDATION_FAILURE: The upload job has encountered an error or issue and was unable to complete the profile data ingestion. INTERNAL_FAILURE: Failure caused from service side"
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the upload job was created."
    },
    "CompletedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the upload job was completed."
    },
    "Fields": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ObjectTypeField"
      },
      "description": "The mapping between CSV Columns and Profile Object attributes for the upload job."
    },
    "UniqueKey": {
      "type": "string",
      "description": "The unique key columns used for de-duping the keys in the upload job."
    },
    "ResultsSummary": {
      "$ref": "#/$defs/ResultsSummary"
    },
    "DataExpiry": {
      "type": "integer",
      "description": "The expiry duration for the profiles ingested with the upload job."
    }
  },
  "$defs": {
    "ObjectTypeField": {
      "type": "object",
      "properties": {
        "Source": {
          "type": "string",
          "description": "A field of a ProfileObject. For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType."
        },
        "Target": {
          "type": "string",
          "description": "The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode. Do not include sensitive or personally identifiable information (PII) in the target field name."
        },
        "ContentType": {
          "type": "string",
          "enum": [
            "STRING",
            "NUMBER",
            "PHONE_NUMBER",
            "EMAIL_ADDRESS",
            "NAME"
          ],
          "description": "The content type of the field. Used for determining equality when searching."
        }
      }
    },
    "ResultsSummary": {
      "type": "object",
      "properties": {
        "UpdatedRecords": {
          "type": "integer",
          "description": "The number of records that were updated during the upload job."
        },
        "CreatedRecords": {
          "type": "integer",
          "description": "The number of records that were newly created during the upload job."
        },
        "FailedRecords": {
          "type": "integer",
          "description": "The number of records that failed to be processed during the upload job."
        }
      }
    }
  }
}