{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-flow-execution-response-schema.json",
  "title": "GetFlowExecutionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-executions-api-openapi.yml#/components/schemas/GetFlowExecutionResponse",
  "type": "object",
  "properties": {
    "executionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that uniquely identifies the flow execution."
    },
    "status": {
      "type": "string",
      "enum": [
        "Running",
        "Succeeded",
        "Failed",
        "TimedOut",
        "Aborted"
      ],
      "description": "The current status of the flow execution. Flow executions time out after 24 hours."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the flow execution started."
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the flow execution ended. This field is only populated when the execution has completed, failed, timed out, or been aborted."
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowExecutionError"
      },
      "description": "A list of errors that occurred during the flow execution. Each error includes an error code, message, and the node where the error occurred, if applicable."
    },
    "flowAliasIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow alias used for the execution."
    },
    "flowIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow."
    },
    "flowVersion": {
      "type": "string",
      "description": "The version of the flow used for the execution."
    }
  },
  "required": [
    "executionArn",
    "status",
    "startedAt",
    "flowAliasIdentifier",
    "flowIdentifier",
    "flowVersion"
  ],
  "$defs": {
    "FlowExecutionError": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node in the flow where the error occurred (if applicable)."
        },
        "error": {
          "type": "string",
          "enum": [
            "ExecutionTimedOut"
          ],
          "description": "The error code for the type of error that occurred."
        },
        "message": {
          "type": "string",
          "description": "A descriptive message that provides details about the error."
        }
      }
    }
  }
}