{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-stop-task-request-schema.json",
  "title": "StopTaskRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-tasks-api-openapi.yml#/components/schemas/StopTaskRequest",
  "type": "object",
  "properties": {
    "cluster": {
      "type": "string",
      "description": "The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed."
    },
    "task": {
      "type": "string",
      "description": "Thefull Amazon Resource Name (ARN) of the task."
    },
    "reason": {
      "type": "string",
      "description": "An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks&gt; API operations on this task."
    }
  },
  "required": [
    "task"
  ]
}