{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-swf/json-schema/amazon-swf-terminate-workflow-execution-input-schema.json",
  "title": "TerminateWorkflowExecutionInput",
  "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/TerminateWorkflowExecutionInput",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "The domain of the workflow execution to terminate."
    },
    "workflowId": {
      "type": "string",
      "description": "The workflowId of the workflow execution to terminate."
    },
    "runId": {
      "type": "string",
      "description": "The runId of the workflow execution to terminate."
    },
    "reason": {
      "type": "string",
      "description": "A descriptive reason for terminating the workflow execution."
    },
    "details": {
      "type": "string",
      "description": "Details for terminating the workflow execution."
    },
    "childPolicy": {
      "type": "string",
      "enum": [
        "TERMINATE",
        "REQUEST_CANCEL",
        "ABANDON"
      ],
      "description": "If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the 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"
    }
  },
  "required": [
    "domain",
    "workflowId"
  ]
}