{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-supply-chain/json-schema/amazon-supply-chain-get-data-integration-event-response-schema.json",
  "title": "GetDataIntegrationEventResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-supply-chain-data-integration-events-api-openapi.yml#/components/schemas/GetDataIntegrationEventResponse",
  "type": "object",
  "properties": {
    "event": {
      "$ref": "#/$defs/DataIntegrationEvent"
    }
  },
  "required": [
    "event"
  ],
  "$defs": {
    "DataIntegrationEvent": {
      "type": "object",
      "properties": {
        "instanceId": {
          "type": "string",
          "description": "The AWS Supply Chain instance identifier."
        },
        "eventId": {
          "type": "string",
          "description": "The unique event identifier."
        },
        "eventType": {
          "type": "string",
          "enum": [
            "scn.data.forecast",
            "scn.data.inventorylevel",
            "scn.data.inboundorder",
            "scn.data.inboundorderline",
            "scn.data.inboundorderlineschedule",
            "scn.data.outboundorderline",
            "scn.data.outboundshipment",
            "scn.data.processheader",
            "scn.data.processoperation",
            "scn.data.processproduct",
            "scn.data.reservation",
            "scn.data.shipment",
            "scn.data.shipmentstop",
            "scn.data.shipmentstoporder",
            "scn.data.supplyplan",
            "scn.data.dataset"
          ],
          "description": "The data event type."
        },
        "eventGroupId": {
          "type": "string",
          "description": "Event identifier (for example, orderId for InboundOrder) used for data sharding or partitioning."
        },
        "eventTimestamp": {
          "type": "string",
          "description": "The event timestamp (in epoch seconds)."
        },
        "datasetTargetDetails": {
          "$ref": "#/$defs/DataIntegrationEventDatasetTargetDetails"
        }
      },
      "required": [
        "instanceId",
        "eventId",
        "eventType",
        "eventGroupId",
        "eventTimestamp"
      ]
    },
    "DataIntegrationEventDatasetLoadExecutionDetails": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "SUCCEEDED",
            "IN_PROGRESS",
            "FAILED"
          ],
          "description": "The event load execution status to target dataset."
        },
        "message": {
          "type": "string",
          "description": "The failure message (if any) of failed event load execution to dataset."
        }
      },
      "required": [
        "status"
      ]
    },
    "DataIntegrationEventDatasetTargetDetails": {
      "type": "object",
      "properties": {
        "datasetIdentifier": {
          "type": "string",
          "description": "The datalake dataset ARN identifier."
        },
        "operationType": {
          "type": "string",
          "enum": [
            "APPEND",
            "UPSERT",
            "DELETE"
          ],
          "description": "The target dataset load operation type. The available options are: APPEND - Add new records to the dataset. Noted that this operation type will just try to append records as-is without any primary key or partition constraints. UPSERT - Modify existing records in the dataset with primary key configured, events for datasets without primary keys are not allowed. If event data contains primary keys that match records in the dataset within same partition, then those existing records (in that partition) will be updated. If primary keys do not match, new records will be added. Note that if dataset co"
        },
        "datasetLoadExecution": {
          "$ref": "#/$defs/DataIntegrationEventDatasetLoadExecutionDetails"
        }
      },
      "required": [
        "datasetIdentifier",
        "operationType",
        "datasetLoadExecution"
      ]
    }
  }
}