DecisionTask

AutomationAmazon Web ServicesTask CoordinationWorkflows

Properties

Name Type Description
taskToken string The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
startedEventId integer The ID of the DecisionTaskStarted event recorded in the history.
workflowExecution object
workflowType object
events array A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
nextPageToken string If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all othe
previousStartedEventId integer The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since th
View JSON Schema on GitHub

JSON Schema

amazon-swf-decision-task-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-swf/json-schema/amazon-swf-decision-task-schema.json",
  "title": "DecisionTask",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-swf-amazon-simple-workflow-service-api-openapi.yml#/components/schemas/DecisionTask",
  "type": "object",
  "properties": {
    "taskToken": {
      "type": "string",
      "description": "The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task."
    },
    "startedEventId": {
      "type": "integer",
      "description": "The ID of the DecisionTaskStarted event recorded in the history."
    },
    "workflowExecution": {
      "$ref": "#/$defs/WorkflowExecution"
    },
    "workflowType": {
      "$ref": "#/$defs/WorkflowType"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HistoryEvent"
      },
      "description": "A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task."
    },
    "nextPageToken": {
      "type": "string",
      "description": "If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged. The configured maximumPageSize determines how many results can be returned in a single call."
    },
    "previousStartedEventId": {
      "type": "integer",
      "description": "The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider."
    }
  },
  "required": [
    "taskToken",
    "startedEventId",
    "workflowExecution",
    "workflowType",
    "events"
  ],
  "$defs": {
    "ActivityTaskCancelRequestedEventAttributes": {
      "type": "object",
      "properties": {
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "activityId": {
          "type": "string",
          "description": "The unique ID of the task."
        }
      },
      "required": [
        "decisionTaskCompletedEventId",
        "activityId"
      ]
    },
    "ActivityTaskCanceledEventAttributes": {
      "type": "object",
      "properties": {
        "details": {
          "type": "string",
          "description": "Details of the cancellation."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "latestCancelRequestedEventId": {
          "type": "integer",
          "description": "If set, contains the ID of the last ActivityTaskCancelRequested event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "ActivityTaskCompletedEventAttributes": {
      "type": "object",
      "properties": {
        "result": {
          "type": "string",
          "description": "The results of the activity task."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "ActivityTaskFailedEventAttributes": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "description": "The reason provided for the failure."
        },
        "details": {
          "type": "string",
          "description": "The details of the failure."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "ActivityTaskScheduledEventAttributes": {
      "type": "object",
      "properties": {
        "activityType": {
          "$ref": "#/$defs/ActivityType"
        },
        "activityId": {
          "type": "string",
          "description": "The unique ID of the activity task."
        },
        "input": {
          "type": "string",
          "description": "The input provided to the activity task."
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity."
        },
        "scheduleToStartTimeout": {
          "type": "string",
          "description": "The maximum amount of time the activity task can wait to be assigned to a worker."
        },
        "scheduleToCloseTimeout": {
          "type": "string",
          "description": "The maximum amount of time for this activity task."
        },
        "startToCloseTimeout": {
          "type": "string",
          "description": "The maximum amount of time a worker may take to process the activity task."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "The priority to assign to the scheduled activity task. If set, this overrides any default priority value that was assigned when the activity type was registered. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "heartbeatTimeout": {
          "type": "string",
          "description": "The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it is ignored."
        }
      },
      "required": [
        "activityType",
        "activityId",
        "taskList",
        "decisionTaskCompletedEventId"
      ]
    },
    "ActivityTaskStartedEventAttributes": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "string",
          "description": "Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId"
      ]
    },
    "ActivityTaskTimedOutEventAttributes": {
      "type": "object",
      "properties": {
        "timeoutType": {
          "type": "string",
          "enum": [
            "START_TO_CLOSE",
            "SCHEDULE_TO_START",
            "SCHEDULE_TO_CLOSE",
            "HEARTBEAT"
          ],
          "description": "The type of the timeout that caused this event."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "details": {
          "type": "string",
          "description": "Contains the content of the details parameter for the last call made by the activity to RecordActivityTaskHeartbeat."
        }
      },
      "required": [
        "timeoutType",
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "ActivityType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of this activity. The combination of activity type name and version must be unique within a domain."
        },
        "version": {
          "type": "string",
          "description": "The version of this activity. The combination of activity type name and version must be unique with in a domain."
        }
      },
      "required": [
        "name",
        "version"
      ]
    },
    "CancelTimerFailedEventAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The timerId provided in the CancelTimer decision that failed."
        },
        "cause": {
          "type": "string",
          "enum": [
            "TIMER_ID_UNKNOWN",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "timerId",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "CancelWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "cause": {
          "type": "string",
          "enum": [
            "UNHANDLED_DECISION",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "ChildWorkflowExecutionCanceledEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "details": {
          "type": "string",
          "description": "Details of the cancellation (if provided)."
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "initiatedEventId",
        "startedEventId"
      ]
    },
    "ChildWorkflowExecutionCompletedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "result": {
          "type": "string",
          "description": "The result of the child workflow execution."
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "initiatedEventId",
        "startedEventId"
      ]
    },
    "ChildWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "reason": {
          "type": "string",
          "description": "The reason for the failure (if provided)."
        },
        "details": {
          "type": "string",
          "description": "The details of the failure (if provided)."
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "initiatedEventId",
        "startedEventId"
      ]
    },
    "ChildWorkflowExecutionStartedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "initiatedEventId"
      ]
    },
    "ChildWorkflowExecutionTerminatedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "initiatedEventId",
        "startedEventId"
      ]
    },
    "ChildWorkflowExecutionTimedOutEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "timeoutType": {
          "type": "string",
          "enum": [
            "START_TO_CLOSE"
          ],
          "description": "The type of the timeout that caused the child workflow execution to time out."
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "workflowType",
        "timeoutType",
        "initiatedEventId",
        "startedEventId"
      ]
    },
    "CompleteWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "cause": {
          "type": "string",
          "enum": [
            "UNHANDLED_DECISION",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "ContinueAsNewWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "cause": {
          "type": "string",
          "enum": [
            "UNHANDLED_DECISION",
            "WORKFLOW_TYPE_DEPRECATED",
            "WORKFLOW_TYPE_DOES_NOT_EXIST",
            "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_TASK_LIST_UNDEFINED",
            "DEFAULT_CHILD_POLICY_UNDEFINED",
            "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "DecisionTaskCompletedEventAttributes": {
      "type": "object",
      "properties": {
        "executionContext": {
          "type": "string",
          "description": "User defined context for the workflow execution."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskListScheduleToStartTimeout": {
          "type": "string",
          "description": "The maximum amount of time the decision task can wait to be assigned to a worker."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "DecisionTaskScheduledEventAttributes": {
      "type": "object",
      "properties": {
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide."
        },
        "startToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "scheduleToStartTimeout": {
          "type": "string",
          "description": "The maximum amount of time the decision task can wait to be assigned to a worker."
        }
      },
      "required": [
        "taskList"
      ]
    },
    "DecisionTaskStartedEventAttributes": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "string",
          "description": "Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId"
      ]
    },
    "DecisionTaskTimedOutEventAttributes": {
      "type": "object",
      "properties": {
        "timeoutType": {
          "type": "string",
          "enum": [
            "START_TO_CLOSE",
            "SCHEDULE_TO_START"
          ],
          "description": "The type of timeout that expired before the decision task could be completed."
        },
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "timeoutType",
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "ExternalWorkflowExecutionCancelRequestedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "initiatedEventId"
      ]
    },
    "ExternalWorkflowExecutionSignaledEventAttributes": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "workflowExecution",
        "initiatedEventId"
      ]
    },
    "FailWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "cause": {
          "type": "string",
          "enum": [
            "UNHANDLED_DECISION",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "HistoryEvent": {
      "type": "object",
      "properties": {
        "eventTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the event occurred."
        },
        "eventType": {
          "type": "string",
          "enum": [
            "WorkflowExecutionStarted",
            "WorkflowExecutionCancelRequested",
            "WorkflowExecutionCompleted",
            "CompleteWorkflowExecutionFailed",
            "WorkflowExecutionFailed",
            "FailWorkflowExecutionFailed",
            "WorkflowExecutionTimedOut",
            "WorkflowExecutionCanceled",
            "CancelWorkflowExecutionFailed",
            "WorkflowExecutionContinuedAsNew",
            "ContinueAsNewWorkflowExecutionFailed",
            "WorkflowExecutionTerminated",
            "DecisionTaskScheduled",
            "DecisionTaskStarted",
            "DecisionTaskCompleted",
            "DecisionTaskTimedOut",
            "ActivityTaskScheduled",
            "ScheduleActivityTaskFailed",
            "ActivityTaskStarted",
            "ActivityTaskCompleted",
            "ActivityTaskFailed",
            "ActivityTaskTimedOut",
            "ActivityTaskCanceled",
            "ActivityTaskCancelRequested",
            "RequestCancelActivityTaskFailed",
            "WorkflowExecutionSignaled",
            "MarkerRecorded",
            "RecordMarkerFailed",
            "TimerStarted",
            "StartTimerFailed",
            "TimerFired",
            "TimerCanceled",
            "CancelTimerFailed",
            "StartChildWorkflowExecutionInitiated",
            "StartChildWorkflowExecutionFailed",
            "ChildWorkflowExecutionStarted",
            "ChildWorkflowExecutionCompleted",
            "ChildWorkflowExecutionFailed",
            "ChildWorkflowExecutionTimedOut",
            "ChildWorkflowExecutionCanceled",
            "ChildWorkflowExecutionTerminated",
            "SignalExternalWorkflowExecutionInitiated",
            "SignalExternalWorkflowExecutionFailed",
            "ExternalWorkflowExecutionSignaled",
            "RequestCancelExternalWorkflowExecutionInitiated",
            "RequestCancelExternalWorkflowExecutionFailed",
            "ExternalWorkflowExecutionCancelRequested",
            "LambdaFunctionScheduled",
            "LambdaFunctionStarted",
            "LambdaFunctionCompleted",
            "LambdaFunctionFailed",
            "LambdaFunctionTimedOut",
            "ScheduleLambdaFunctionFailed",
            "StartLambdaFunctionFailed"
          ],
          "description": "The type of the history event."
        },
        "eventId": {
          "type": "integer",
          "description": "The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history."
        },
        "workflowExecutionStartedEventAttribu

# --- truncated at 32 KB (82 KB total) ---
# Full source: https://artifacts.apis.io/amazon-swf/json-schema/amazon-swf-decision-task-schema.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-swf-decision-task"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.