{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-supply-chain/json-schema/amazon-supply-chain-list-data-integration-flow-executions-response-schema.json",
  "title": "ListDataIntegrationFlowExecutionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-supply-chain-operations-api-openapi.yml#/components/schemas/ListDataIntegrationFlowExecutionsResponse",
  "type": "object",
  "properties": {
    "flowExecutions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataIntegrationFlowExecution"
      },
      "description": "The list of flow executions."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token to fetch next page of flow executions."
    }
  },
  "required": [
    "flowExecutions"
  ],
  "$defs": {
    "DataIntegrationFlowDatasetSource": {
      "type": "object",
      "properties": {
        "datasetIdentifier": {
          "type": "string",
          "description": "The ARN of the dataset source."
        }
      },
      "required": [
        "datasetIdentifier"
      ]
    },
    "DataIntegrationFlowExecution": {
      "type": "object",
      "properties": {
        "instanceId": {
          "type": "string",
          "description": "The flow execution's instanceId."
        },
        "flowName": {
          "type": "string",
          "description": "The flow execution's flowName."
        },
        "executionId": {
          "type": "string",
          "description": "The flow executionId."
        },
        "status": {
          "type": "string",
          "enum": [
            "SUCCEEDED",
            "IN_PROGRESS",
            "FAILED"
          ],
          "description": "The status of flow execution."
        },
        "sourceInfo": {
          "$ref": "#/$defs/DataIntegrationFlowExecutionSourceInfo"
        },
        "message": {
          "type": "string",
          "description": "The failure message (if any) of failed flow execution."
        },
        "startTime": {
          "type": "string",
          "description": "The flow execution start timestamp."
        },
        "endTime": {
          "type": "string",
          "description": "The flow execution end timestamp."
        },
        "outputMetadata": {
          "$ref": "#/$defs/DataIntegrationFlowExecutionOutputMetadata"
        }
      },
      "required": [
        "instanceId",
        "flowName",
        "executionId"
      ]
    },
    "DataIntegrationFlowExecutionOutputMetadata": {
      "type": "object",
      "properties": {
        "diagnosticReportsRootS3URI": {
          "type": "string",
          "description": "The S3 URI under which all diagnostic files (such as deduped records if any) are stored."
        }
      }
    },
    "DataIntegrationFlowExecutionSourceInfo": {
      "type": "object",
      "properties": {
        "sourceType": {
          "type": "string",
          "enum": [
            "S3",
            "DATASET"
          ],
          "description": "The data integration flow execution source type."
        },
        "s3Source": {
          "$ref": "#/$defs/DataIntegrationFlowS3Source"
        },
        "datasetSource": {
          "$ref": "#/$defs/DataIntegrationFlowDatasetSource"
        }
      },
      "required": [
        "sourceType"
      ]
    },
    "DataIntegrationFlowS3Source": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The S3 bucket name of the S3 source."
        },
        "key": {
          "type": "string",
          "description": "The S3 object key of the S3 source."
        }
      },
      "required": [
        "bucketName",
        "key"
      ]
    }
  }
}