{
  "$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."
        },
        "workflowExecutionStartedEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionStartedEventAttributes"
        },
        "workflowExecutionCompletedEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionCompletedEventAttributes"
        },
        "completeWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/CompleteWorkflowExecutionFailedEventAttributes"
        },
        "workflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionFailedEventAttributes"
        },
        "failWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/FailWorkflowExecutionFailedEventAttributes"
        },
        "workflowExecutionTimedOutEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionTimedOutEventAttributes"
        },
        "workflowExecutionCanceledEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionCanceledEventAttributes"
        },
        "cancelWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/CancelWorkflowExecutionFailedEventAttributes"
        },
        "workflowExecutionContinuedAsNewEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionContinuedAsNewEventAttributes"
        },
        "continueAsNewWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/ContinueAsNewWorkflowExecutionFailedEventAttributes"
        },
        "workflowExecutionTerminatedEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionTerminatedEventAttributes"
        },
        "workflowExecutionCancelRequestedEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionCancelRequestedEventAttributes"
        },
        "decisionTaskScheduledEventAttributes": {
          "$ref": "#/$defs/DecisionTaskScheduledEventAttributes"
        },
        "decisionTaskStartedEventAttributes": {
          "$ref": "#/$defs/DecisionTaskStartedEventAttributes"
        },
        "decisionTaskCompletedEventAttributes": {
          "$ref": "#/$defs/DecisionTaskCompletedEventAttributes"
        },
        "decisionTaskTimedOutEventAttributes": {
          "$ref": "#/$defs/DecisionTaskTimedOutEventAttributes"
        },
        "activityTaskScheduledEventAttributes": {
          "$ref": "#/$defs/ActivityTaskScheduledEventAttributes"
        },
        "activityTaskStartedEventAttributes": {
          "$ref": "#/$defs/ActivityTaskStartedEventAttributes"
        },
        "activityTaskCompletedEventAttributes": {
          "$ref": "#/$defs/ActivityTaskCompletedEventAttributes"
        },
        "activityTaskFailedEventAttributes": {
          "$ref": "#/$defs/ActivityTaskFailedEventAttributes"
        },
        "activityTaskTimedOutEventAttributes": {
          "$ref": "#/$defs/ActivityTaskTimedOutEventAttributes"
        },
        "activityTaskCanceledEventAttributes": {
          "$ref": "#/$defs/ActivityTaskCanceledEventAttributes"
        },
        "activityTaskCancelRequestedEventAttributes": {
          "$ref": "#/$defs/ActivityTaskCancelRequestedEventAttributes"
        },
        "workflowExecutionSignaledEventAttributes": {
          "$ref": "#/$defs/WorkflowExecutionSignaledEventAttributes"
        },
        "markerRecordedEventAttributes": {
          "$ref": "#/$defs/MarkerRecordedEventAttributes"
        },
        "recordMarkerFailedEventAttributes": {
          "$ref": "#/$defs/RecordMarkerFailedEventAttributes"
        },
        "timerStartedEventAttributes": {
          "$ref": "#/$defs/TimerStartedEventAttributes"
        },
        "timerFiredEventAttributes": {
          "$ref": "#/$defs/TimerFiredEventAttributes"
        },
        "timerCanceledEventAttributes": {
          "$ref": "#/$defs/TimerCanceledEventAttributes"
        },
        "startChildWorkflowExecutionInitiatedEventAttributes": {
          "$ref": "#/$defs/StartChildWorkflowExecutionInitiatedEventAttributes"
        },
        "childWorkflowExecutionStartedEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionStartedEventAttributes"
        },
        "childWorkflowExecutionCompletedEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionCompletedEventAttributes"
        },
        "childWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionFailedEventAttributes"
        },
        "childWorkflowExecutionTimedOutEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionTimedOutEventAttributes"
        },
        "childWorkflowExecutionCanceledEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionCanceledEventAttributes"
        },
        "childWorkflowExecutionTerminatedEventAttributes": {
          "$ref": "#/$defs/ChildWorkflowExecutionTerminatedEventAttributes"
        },
        "signalExternalWorkflowExecutionInitiatedEventAttributes": {
          "$ref": "#/$defs/SignalExternalWorkflowExecutionInitiatedEventAttributes"
        },
        "externalWorkflowExecutionSignaledEventAttributes": {
          "$ref": "#/$defs/ExternalWorkflowExecutionSignaledEventAttributes"
        },
        "signalExternalWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/SignalExternalWorkflowExecutionFailedEventAttributes"
        },
        "externalWorkflowExecutionCancelRequestedEventAttributes": {
          "$ref": "#/$defs/ExternalWorkflowExecutionCancelRequestedEventAttributes"
        },
        "requestCancelExternalWorkflowExecutionInitiatedEventAttributes": {
          "$ref": "#/$defs/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"
        },
        "requestCancelExternalWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/RequestCancelExternalWorkflowExecutionFailedEventAttributes"
        },
        "scheduleActivityTaskFailedEventAttributes": {
          "$ref": "#/$defs/ScheduleActivityTaskFailedEventAttributes"
        },
        "requestCancelActivityTaskFailedEventAttributes": {
          "$ref": "#/$defs/RequestCancelActivityTaskFailedEventAttributes"
        },
        "startTimerFailedEventAttributes": {
          "$ref": "#/$defs/StartTimerFailedEventAttributes"
        },
        "cancelTimerFailedEventAttributes": {
          "$ref": "#/$defs/CancelTimerFailedEventAttributes"
        },
        "startChildWorkflowExecutionFailedEventAttributes": {
          "$ref": "#/$defs/StartChildWorkflowExecutionFailedEventAttributes"
        },
        "lambdaFunctionScheduledEventAttributes": {
          "$ref": "#/$defs/LambdaFunctionScheduledEventAttributes"
        },
        "lambdaFunctionStartedEventAttributes": {
          "$ref": "#/$defs/LambdaFunctionStartedEventAttributes"
        },
        "lambdaFunctionCompletedEventAttributes": {
          "$ref": "#/$defs/LambdaFunctionCompletedEventAttributes"
        },
        "lambdaFunctionFailedEventAttributes": {
          "$ref": "#/$defs/LambdaFunctionFailedEventAttributes"
        },
        "lambdaFunctionTimedOutEventAttributes": {
          "$ref": "#/$defs/LambdaFunctionTimedOutEventAttributes"
        },
        "scheduleLambdaFunctionFailedEventAttributes": {
          "$ref": "#/$defs/ScheduleLambdaFunctionFailedEventAttributes"
        },
        "startLambdaFunctionFailedEventAttributes": {
          "$ref": "#/$defs/StartLambdaFunctionFailedEventAttributes"
        }
      },
      "required": [
        "eventTimestamp",
        "eventType",
        "eventId"
      ]
    },
    "LambdaFunctionCompletedEventAttributes": {
      "type": "object",
      "properties": {
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionScheduled event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "result": {
          "type": "string",
          "description": "The results of the Lambda task."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "LambdaFunctionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "reason": {
          "type": "string",
          "description": "The reason provided for the failure."
        },
        "details": {
          "type": "string",
          "description": "The details of the failure."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "LambdaFunctionScheduledEventAttributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID of the Lambda task."
        },
        "name": {
          "type": "string",
          "description": "The name of the Lambda function."
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task."
        },
        "input": {
          "type": "string",
          "description": "The input provided to the Lambda task."
        },
        "startToCloseTimeout": {
          "type": "string",
          "description": "The maximum amount of time a worker can take to process the Lambda task."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        }
      },
      "required": [
        "id",
        "name",
        "decisionTaskCompletedEventId"
      ]
    },
    "LambdaFunctionStartedEventAttributes": {
      "type": "object",
      "properties": {
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        }
      },
      "required": [
        "scheduledEventId"
      ]
    },
    "LambdaFunctionTimedOutEventAttributes": {
      "type": "object",
      "properties": {
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskStarted event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "timeoutType": {
          "type": "string",
          "enum": [
            "START_TO_CLOSE"
          ],
          "description": "The type of the timeout that caused this event."
        }
      },
      "required": [
        "scheduledEventId",
        "startedEventId"
      ]
    },
    "MarkerRecordedEventAttributes": {
      "type": "object",
      "properties": {
        "markerName": {
          "type": "string",
          "description": "The name of the marker."
        },
        "details": {
          "type": "string",
          "description": "The details of the marker."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarker decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "markerName",
        "decisionTaskCompletedEventId"
      ]
    },
    "RecordMarkerFailedEventAttributes": {
      "type": "object",
      "properties": {
        "markerName": {
          "type": "string",
          "description": "The marker's name."
        },
        "cause": {
          "type": "string",
          "enum": [
            "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 RecordMarkerFailed 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": [
        "markerName",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "RequestCancelActivityTaskFailedEventAttributes": {
      "type": "object",
      "properties": {
        "activityId": {
          "type": "string",
          "description": "The activityId provided in the RequestCancelActivityTask decision that failed."
        },
        "cause": {
          "type": "string",
          "enum": [
            "ACTIVITY_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 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."
        }
      },
      "required": [
        "activityId",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "RequestCancelExternalWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the external workflow to which the cancel request was to be delivered."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the external workflow execution."
        },
        "cause": {
          "type": "string",
          "enum": [
            "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
            "REQUEST_CANCEL_EXTERNAL_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."
        },
        "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."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution 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."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution."
        }
      },
      "required": [
        "workflowId",
        "cause",
        "initiatedEventId",
        "decisionTaskCompletedEventId"
      ]
    },
    "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the external workflow execution to be canceled."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the external workflow execution to be canceled."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution 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."
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that can be used by the decider in subsequent workflow tasks."
        }
      },
      "required": [
        "workflowId",
        "decisionTaskCompletedEventId"
      ]
    },
    "ScheduleActivityTaskFailedEventAttributes": {
      "type": "object",
      "properties": {
        "activityType": {
          "$ref": "#/$defs/ActivityType"
        },
        "activityId": {
          "type": "string",
          "description": "The activityId provided in the ScheduleActivityTask decision that failed."
        },
        "cause": {
          "type": "string",
          "enum": [
            "ACTIVITY_TYPE_DEPRECATED",
            "ACTIVITY_TYPE_DOES_NOT_EXIST",
            "ACTIVITY_ID_ALREADY_IN_USE",
            "OPEN_ACTIVITIES_LIMIT_EXCEEDED",
            "ACTIVITY_CREATION_RATE_EXCEEDED",
            "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_TASK_LIST_UNDEFINED",
            "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED",
            "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED",
            "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 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."
        }
      },
      "required": [
        "activityType",
        "activityId",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "ScheduleLambdaFunctionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID provided in the ScheduleLambdaFunction decision that failed."
        },
        "name": {
          "type": "string",
          "description": "The name of the Lambda function."
        },
        "cause": {
          "type": "string",
          "enum": [
            "ID_ALREADY_IN_USE",
            "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED",
            "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED",
            "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"
          ],
          "description": "The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event. 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 LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        }
      },
      "required": [
        "id",
        "name",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "SignalExternalWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the external workflow execution that the signal was being delivered to."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the external workflow execution that the signal was being delivered to."
        },
        "cause": {
          "type": "string",
          "enum": [
            "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
            "SIGNAL_EXTERNAL_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."
        },
        "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."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution."
        }
      },
      "required": [
        "workflowId",
        "cause",
        "initiatedEventId",
        "decisionTaskCompletedEventId"
      ]
    },
    "SignalExternalWorkflowExecutionInitiatedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the external workflow execution."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the external workflow execution to send the signal to."
        },
        "signalName": {
          "type": "string",
          "description": "The name of the signal."
        },
        "input": {
          "type": "string",
          "description": "The input provided to the signal."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that can be used by the decider in subsequent decision tasks."
        }
      },
      "required": [
        "workflowId",
        "signalName",
        "decisionTaskCompletedEventId"
      ]
    },
    "StartChildWorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "cause": {
          "type": "string",
          "enum": [
            "WORKFLOW_TYPE_DOES_NOT_EXIST",
            "WORKFLOW_TYPE_DEPRECATED",
            "OPEN_CHILDREN_LIMIT_EXCEEDED",
            "OPEN_WORKFLOWS_LIMIT_EXCEEDED",
            "CHILD_CREATION_RATE_EXCEEDED",
            "WORKFLOW_ALREADY_RUNNING",
            "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_TASK_LIST_UNDEFINED",
            "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
            "DEFAULT_CHILD_POLICY_UNDEFINED",
            "OPERATION_NOT_PERMITTED"
          ],
          "description": "The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes. When cause is set to OPERATION_NOT_PERMITTED, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide."
        },
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the child workflow execution."
        },
        "initiatedEventId": {
          "type": "integer",
          "description": "When the cause is WORKFLOW_ALREADY_RUNNING, initiatedEventId is the ID of the StartChildWorkflowExecutionInitiated event that corresponds to the StartChildWorkflowExecution Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event. When the cause isn't WORKFLOW_ALREADY_RUNNING, initiatedEventId is set to 0 because the StartChildWorkflowExecutionInitiated event doesn't exist."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution Decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution."
        }
      },
      "required": [
        "workflowType",
        "cause",
        "workflowId",
        "initiatedEventId",
        "decisionTaskCompletedEventId"
      ]
    },
    "StartChildWorkflowExecutionInitiatedEventAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the child workflow execution."
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity."
        },
        "input": {
          "type": "string",
          "description": "The inputs provided to the child workflow execution."
        },
        "executionStartToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "The priority assigned for the decision tasks for this workflow execution. 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 task that resulted in the StartChildWorkflowExecution Decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events."
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the TerminateWorkflowExecution action or due to an expired timeout. The supported child policies are: TERMINATE – The child executions are terminated. REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. ABANDON – No action is taken. The child executions continue to run."
        },
        "taskStartToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration allowed for the decision tasks for this workflow execution. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "tagList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tags to associated with the child workflow execution."
        },
        "lambdaRole": {
          "type": "string",
          "description": "The IAM role to attach to the child workflow execution."
        }
      },
      "required": [
        "workflowId",
        "workflowType",
        "taskList",
        "decisionTaskCompletedEventId",
        "childPolicy"
      ]
    },
    "StartLambdaFunctionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "scheduledEventId": {
          "type": "integer",
          "description": "The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event."
        },
        "cause": {
          "type": "string",
          "enum": [
            "ASSUME_ROLE_FAILED"
          ],
          "description": "The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide."
        },
        "message": {
          "type": "string",
          "description": "A description that can help diagnose the cause of the fault."
        }
      }
    },
    "StartTimerFailedEventAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The timerId provided in the StartTimer decision that failed."
        },
        "cause": {
          "type": "string",
          "enum": [
            "TIMER_ID_ALREADY_IN_USE",
            "OPEN_TIMERS_LIMIT_EXCEEDED",
            "TIMER_CREATION_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 StartTimer decision 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": [
        "timerId",
        "cause",
        "decisionTaskCompletedEventId"
      ]
    },
    "TaskList": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the task list."
        }
      },
      "required": [
        "name"
      ]
    },
    "TimerCanceledEventAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The unique ID of the timer that was canceled."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "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",
        "startedEventId",
        "decisionTaskCompletedEventId"
      ]
    },
    "TimerFiredEventAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The unique ID of the timer that fired."
        },
        "startedEventId": {
          "type": "integer",
          "description": "The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        }
      },
      "required": [
        "timerId",
        "startedEventId"
      ]
    },
    "TimerStartedEventAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The unique ID of the timer that was started."
        },
        "control": {
          "type": "string",
          "description": "Data attached to the event that can be used by the decider in subsequent workflow tasks."
        },
        "startToFireTimeout": {
          "type": "string",
          "description": "The duration of time after which the timer fires. The duration is specified in seconds, an integer greater than or equal to 0."
        },
        "decisionTaskCompletedEventId": {
          "type": "integer",
          "description": "The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision 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": [
        "timerId",
        "startToFireTimeout",
        "decisionTaskCompletedEventId"
      ]
    },
    "WorkflowExecution": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The user defined identifier associated with the workflow execution."
        },
        "runId": {
          "type": "string",
          "description": "A system-generated unique identifier for the workflow execution."
        }
      },
      "required": [
        "workflowId",
        "runId"
      ]
    },
    "WorkflowExecutionCancelRequestedEventAttributes": {
      "type": "object",
      "properties": {
        "externalWorkflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "externalInitiatedEventId": {
          "type": "integer",
          "description": "The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "cause": {
          "type": "string",
          "enum": [
            "CHILD_POLICY_APPLIED"
          ],
          "description": "If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions."
        }
      }
    },
    "WorkflowExecutionCanceledEventAttributes": {
      "type": "object",
      "properties": {
        "details": {
          "type": "string",
          "description": "The details of the cancellation."
        },
        "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": [
        "decisionTaskCompletedEventId"
      ]
    },
    "WorkflowExecutionCompletedEventAttributes": {
      "type": "object",
      "properties": {
        "result": {
          "type": "string",
          "description": "The result produced by the workflow execution upon successful completion."
        },
        "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": [
        "decisionTaskCompletedEventId"
      ]
    },
    "WorkflowExecutionContinuedAsNewEventAttributes": {
      "type": "object",
      "properties": {
        "input": {
          "type": "string",
          "description": "The input provided to the new workflow execution."
        },
        "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."
        },
        "newExecutionRunId": {
          "type": "string",
          "description": "The runId of the new workflow execution."
        },
        "executionStartToCloseTimeout": {
          "type": "string",
          "description": "The total duration allowed for the new workflow execution. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "The priority of the task to use for the decisions of the new (continued) workflow execution."
        },
        "taskStartToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration of decision tasks for the new workflow execution. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "The policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are: TERMINATE – The child executions are terminated. REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. ABANDON – No action is taken. The child executions continue to run."
        },
        "tagList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tags associated with the new workflow execution."
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "lambdaRole": {
          "type": "string",
          "description": "The IAM role to attach to the new (continued) workflow execution."
        }
      },
      "required": [
        "decisionTaskCompletedEventId",
        "newExecutionRunId",
        "taskList",
        "childPolicy",
        "workflowType"
      ]
    },
    "WorkflowExecutionFailedEventAttributes": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "description": "The descriptive reason provided for the failure."
        },
        "details": {
          "type": "string",
          "description": "The details of the failure."
        },
        "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": [
        "decisionTaskCompletedEventId"
      ]
    },
    "WorkflowExecutionSignaledEventAttributes": {
      "type": "object",
      "properties": {
        "signalName": {
          "type": "string",
          "description": "The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal."
        },
        "input": {
          "type": "string",
          "description": "The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal."
        },
        "externalWorkflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "externalInitiatedEventId": {
          "type": "integer",
          "description": "The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution."
        }
      },
      "required": [
        "signalName"
      ]
    },
    "WorkflowExecutionStartedEventAttributes": {
      "type": "object",
      "properties": {
        "input": {
          "type": "string",
          "description": "The input provided to the workflow execution."
        },
        "executionStartToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration for this workflow execution. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "taskStartToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration of decision tasks for this workflow type. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are: TERMINATE – The child executions are terminated. REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. ABANDON – No action is taken. The child executions continue to run."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "The priority of the decision tasks in the workflow execution."
        },
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "tagList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tags associated with this workflow execution. An execution can have up to 5 tags."
        },
        "continuedExecutionRunId": {
          "type": "string",
          "description": "If this workflow execution was started due to a ContinueAsNewWorkflowExecution decision, then it contains the runId of the previous workflow execution that was closed and continued as this execution."
        },
        "parentWorkflowExecution": {
          "$ref": "#/$defs/WorkflowExecution"
        },
        "parentInitiatedEventId": {
          "type": "integer",
          "description": "The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution Decision to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event."
        },
        "lambdaRole": {
          "type": "string",
          "description": "The IAM role attached to the workflow execution."
        }
      },
      "required": [
        "childPolicy",
        "taskList",
        "workflowType"
      ]
    },
    "WorkflowExecutionTerminatedEventAttributes": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "description": "The reason provided for the termination."
        },
        "details": {
          "type": "string",
          "description": "The details provided for the termination."
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "The policy used for the child workflow executions of this workflow execution. The supported child policies are: TERMINATE – The child executions are terminated. REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. ABANDON – No action is taken. The child executions continue to run."
        },
        "cause": {
          "type": "string",
          "enum": [
            "CHILD_POLICY_APPLIED",
            "EVENT_LIMIT_EXCEEDED",
            "OPERATOR_INITIATED"
          ],
          "description": "If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions."
        }
      },
      "required": [
        "childPolicy"
      ]
    },
    "WorkflowExecutionTimedOutEventAttributes": {
      "type": "object",
      "properties": {
        "timeoutType": {
          "type": "string",
          "enum": [
            "START_TO_CLOSE"
          ],
          "description": "The type of timeout that caused this event."
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "The policy used for the child workflow executions of this workflow execution. The supported child policies are: TERMINATE – The child executions are terminated. REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. ABANDON – No action is taken. The child executions continue to run."
        }
      },
      "required": [
        "timeoutType",
        "childPolicy"
      ]
    },
    "WorkflowType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the workflow type. The combination of workflow type name and version must be unique with in a domain."
        },
        "version": {
          "type": "string",
          "description": "The version of the workflow type. The combination of workflow type name and version must be unique with in a domain."
        }
      },
      "required": [
        "name",
        "version"
      ]
    }
  }
}