{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-workflow-response-schema.json",
  "title": "GetWorkflowResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-workflows-api-openapi.yml#/components/schemas/GetWorkflowResponse",
  "type": "object",
  "properties": {
    "WorkflowId": {
      "type": "string",
      "description": "Unique identifier for the workflow."
    },
    "WorkflowType": {
      "type": "string",
      "enum": [
        "APPFLOW_INTEGRATION"
      ],
      "description": "The type of workflow. The only supported value is APPFLOW_INTEGRATION."
    },
    "Status": {
      "type": "string",
      "enum": [
        "NOT_STARTED",
        "IN_PROGRESS",
        "COMPLETE",
        "FAILED",
        "SPLIT",
        "RETRY",
        "CANCELLED"
      ],
      "description": "Status of workflow execution."
    },
    "ErrorDescription": {
      "type": "string",
      "description": "Workflow error messages during execution (if any)."
    },
    "StartDate": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that represents when workflow execution started."
    },
    "LastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that represents when workflow execution last updated."
    },
    "Attributes": {
      "$ref": "#/$defs/WorkflowAttributes"
    },
    "Metrics": {
      "$ref": "#/$defs/WorkflowMetrics"
    }
  },
  "$defs": {
    "AppflowIntegrationWorkflowAttributes": {
      "type": "object",
      "properties": {
        "SourceConnectorType": {
          "type": "string",
          "enum": [
            "Salesforce",
            "Marketo",
            "Zendesk",
            "Servicenow",
            "S3"
          ],
          "description": "Specifies the source connector type, such as Salesforce, ServiceNow, and Marketo. Indicates source of ingestion."
        },
        "ConnectorProfileName": {
          "type": "string",
          "description": "The name of the AppFlow connector profile used for ingestion."
        },
        "RoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution."
        }
      },
      "required": [
        "SourceConnectorType",
        "ConnectorProfileName"
      ]
    },
    "AppflowIntegrationWorkflowMetrics": {
      "type": "object",
      "properties": {
        "RecordsProcessed": {
          "type": "integer",
          "description": "Number of records processed in APPFLOW_INTEGRATION workflow."
        },
        "StepsCompleted": {
          "type": "integer",
          "description": "Total steps completed in APPFLOW_INTEGRATION workflow."
        },
        "TotalSteps": {
          "type": "integer",
          "description": "Total steps in APPFLOW_INTEGRATION workflow."
        }
      },
      "required": [
        "RecordsProcessed",
        "StepsCompleted",
        "TotalSteps"
      ]
    },
    "WorkflowAttributes": {
      "type": "object",
      "properties": {
        "AppflowIntegration": {
          "$ref": "#/$defs/AppflowIntegrationWorkflowAttributes"
        }
      }
    },
    "WorkflowMetrics": {
      "type": "object",
      "properties": {
        "AppflowIntegration": {
          "$ref": "#/$defs/AppflowIntegrationWorkflowMetrics"
        }
      }
    }
  }
}