{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-swf/json-schema/amazon-swf-respond-decision-task-completed-input-schema.json",
  "title": "RespondDecisionTaskCompletedInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-swf-operations-api-openapi.yml#/components/schemas/RespondDecisionTaskCompletedInput",
  "type": "object",
  "properties": {
    "taskToken": {
      "type": "string",
      "description": "The taskToken from the DecisionTask. taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results."
    },
    "decisions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Decision"
      },
      "description": "The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details."
    },
    "executionContext": {
      "type": "string",
      "description": "User defined context to add to workflow execution."
    },
    "taskList": {
      "$ref": "#/$defs/TaskList"
    },
    "taskListScheduleToStartTimeout": {
      "type": "string",
      "description": "Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list. If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override"
    }
  },
  "required": [
    "taskToken"
  ],
  "$defs": {
    "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"
      ]
    },
    "CancelTimerDecisionAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The unique ID of the timer to cancel."
        }
      },
      "required": [
        "timerId"
      ]
    },
    "CancelWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "details": {
          "type": "string",
          "description": "Details of the cancellation."
        }
      }
    },
    "CompleteWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "result": {
          "type": "string",
          "description": "The result of the workflow execution. The form of the result is implementation defined."
        }
      }
    },
    "ContinueAsNewWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "input": {
          "type": "string",
          "description": "The input provided to the new workflow execution."
        },
        "executionStartToCloseTimeout": {
          "type": "string",
          "description": "If set, specifies the total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "The task priority that, if set, specifies the priority for the decision tasks for this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. 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."
        },
        "taskStartToCloseTimeout": {
          "type": "string",
          "description": "Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then"
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "If set, specifies 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. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType. 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"
        },
        "tagList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tags to associate with the new workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter."
        },
        "workflowTypeVersion": {
          "type": "string",
          "description": "The version of the workflow to start."
        },
        "lambdaRole": {
          "type": "string",
          "description": "The IAM role to attach to the new (continued) execution."
        }
      }
    },
    "Decision": {
      "type": "object",
      "properties": {
        "decisionType": {
          "type": "string",
          "enum": [
            "ScheduleActivityTask",
            "RequestCancelActivityTask",
            "CompleteWorkflowExecution",
            "FailWorkflowExecution",
            "CancelWorkflowExecution",
            "ContinueAsNewWorkflowExecution",
            "RecordMarker",
            "StartTimer",
            "CancelTimer",
            "SignalExternalWorkflowExecution",
            "RequestCancelExternalWorkflowExecution",
            "StartChildWorkflowExecution",
            "ScheduleLambdaFunction"
          ],
          "description": "Specifies the type of the decision."
        },
        "scheduleActivityTaskDecisionAttributes": {
          "$ref": "#/$defs/ScheduleActivityTaskDecisionAttributes"
        },
        "requestCancelActivityTaskDecisionAttributes": {
          "$ref": "#/$defs/RequestCancelActivityTaskDecisionAttributes"
        },
        "completeWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/CompleteWorkflowExecutionDecisionAttributes"
        },
        "failWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/FailWorkflowExecutionDecisionAttributes"
        },
        "cancelWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/CancelWorkflowExecutionDecisionAttributes"
        },
        "continueAsNewWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/ContinueAsNewWorkflowExecutionDecisionAttributes"
        },
        "recordMarkerDecisionAttributes": {
          "$ref": "#/$defs/RecordMarkerDecisionAttributes"
        },
        "startTimerDecisionAttributes": {
          "$ref": "#/$defs/StartTimerDecisionAttributes"
        },
        "cancelTimerDecisionAttributes": {
          "$ref": "#/$defs/CancelTimerDecisionAttributes"
        },
        "signalExternalWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/SignalExternalWorkflowExecutionDecisionAttributes"
        },
        "requestCancelExternalWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/RequestCancelExternalWorkflowExecutionDecisionAttributes"
        },
        "startChildWorkflowExecutionDecisionAttributes": {
          "$ref": "#/$defs/StartChildWorkflowExecutionDecisionAttributes"
        },
        "scheduleLambdaFunctionDecisionAttributes": {
          "$ref": "#/$defs/ScheduleLambdaFunctionDecisionAttributes"
        }
      },
      "required": [
        "decisionType"
      ]
    },
    "FailWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "description": "A descriptive reason for the failure that may help in diagnostics."
        },
        "details": {
          "type": "string",
          "description": "Details of the failure."
        }
      }
    },
    "RecordMarkerDecisionAttributes": {
      "type": "object",
      "properties": {
        "markerName": {
          "type": "string",
          "description": "The name of the marker."
        },
        "details": {
          "type": "string",
          "description": "The details of the marker."
        }
      },
      "required": [
        "markerName"
      ]
    },
    "RequestCancelActivityTaskDecisionAttributes": {
      "type": "object",
      "properties": {
        "activityId": {
          "type": "string",
          "description": "The activityId of the activity task to be canceled."
        }
      },
      "required": [
        "activityId"
      ]
    },
    "RequestCancelExternalWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the external workflow execution to cancel."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the external workflow execution to cancel."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that can be used by the decider in subsequent workflow tasks."
        }
      },
      "required": [
        "workflowId"
      ]
    },
    "ScheduleActivityTaskDecisionAttributes": {
      "type": "object",
      "properties": {
        "activityType": {
          "$ref": "#/$defs/ActivityType"
        },
        "activityId": {
          "type": "string",
          "description": "The activityId of the activity task. The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f-\\u009f). Also, it must not be the literal string arn."
        },
        "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."
        },
        "input": {
          "type": "string",
          "description": "The input provided to the activity task."
        },
        "scheduleToCloseTimeout": {
          "type": "string",
          "description": "The maximum duration for this activity task. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType. 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."
        },
        "scheduleToStartTimeout": {
          "type": "string",
          "description": "If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is r"
        },
        "startToCloseTimeout": {
          "type": "string",
          "description": "If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned."
        },
        "heartbeatTimeout": {
          "type": "string",
          "description": "If set, specifies the maximum time before which a worker processing a task of this type 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 returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration."
        }
      },
      "required": [
        "activityType",
        "activityId"
      ]
    },
    "ScheduleLambdaFunctionDecisionAttributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "A string that identifies the Lambda function execution in the event history."
        },
        "name": {
          "type": "string",
          "description": "The name, or ARN, of the Lambda function to schedule."
        },
        "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 Lambda task."
        },
        "input": {
          "type": "string",
          "description": "The optional input data to be supplied to the Lambda function."
        },
        "startToCloseTimeout": {
          "type": "string",
          "description": "The timeout value, in seconds, after which the Lambda function is considered to be failed once it has started. This can be any integer from 1-900 (1s-15m). If no value is supplied, then a default value of 900s is assumed."
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "SignalExternalWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the workflow execution to be signaled."
        },
        "runId": {
          "type": "string",
          "description": "The runId of the workflow execution to be signaled."
        },
        "signalName": {
          "type": "string",
          "description": "The name of the signal.The target workflow execution uses the signal name and input to process the signal."
        },
        "input": {
          "type": "string",
          "description": "The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that can be used by the decider in subsequent decision tasks."
        }
      },
      "required": [
        "workflowId",
        "signalName"
      ]
    },
    "StartChildWorkflowExecutionDecisionAttributes": {
      "type": "object",
      "properties": {
        "workflowType": {
          "$ref": "#/$defs/WorkflowType"
        },
        "workflowId": {
          "type": "string",
          "description": "The workflowId of the workflow execution. The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f-\\u009f). Also, it must not be the literal string arn."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the child workflow execution."
        },
        "input": {
          "type": "string",
          "description": "The input to be provided to the workflow execution."
        },
        "executionStartToCloseTimeout": {
          "type": "string",
          "description": "The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned."
        },
        "taskList": {
          "$ref": "#/$defs/TaskList"
        },
        "taskPriority": {
          "type": "string",
          "description": "A task priority that, if set, specifies the priority for a decision task of this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. 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."
        },
        "taskStartToCloseTimeout": {
          "type": "string",
          "description": "Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType. The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration. A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fau"
        },
        "childPolicy": {
          "type": "string",
          "enum": [
            "TERMINATE",
            "REQUEST_CANCEL",
            "ABANDON"
          ],
          "description": "If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType. 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 approp"
        },
        "tagList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter."
        },
        "lambdaRole": {
          "type": "string",
          "description": "The IAM role attached to the child workflow execution."
        }
      },
      "required": [
        "workflowType",
        "workflowId"
      ]
    },
    "StartTimerDecisionAttributes": {
      "type": "object",
      "properties": {
        "timerId": {
          "type": "string",
          "description": "The unique ID of the timer. The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f-\\u009f). Also, it must not be the literal string arn."
        },
        "control": {
          "type": "string",
          "description": "The data attached to the event that can be used by the decider in subsequent workflow tasks."
        },
        "startToFireTimeout": {
          "type": "string",
          "description": "The duration to wait before firing the timer. The duration is specified in seconds, an integer greater than or equal to 0."
        }
      },
      "required": [
        "timerId",
        "startToFireTimeout"
      ]
    },
    "TaskList": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the task list."
        }
      },
      "required": [
        "name"
      ]
    },
    "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"
      ]
    }
  }
}