{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-update-daemon-request-schema.json",
  "title": "UpdateDaemonRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-daemon-api-openapi.yml#/components/schemas/UpdateDaemonRequest",
  "type": "object",
  "properties": {
    "daemonArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the daemon to update."
    },
    "daemonTaskDefinitionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the daemon task definition to use for the updated daemon."
    },
    "capacityProviderArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the capacity providers to associate with the daemon."
    },
    "deploymentConfiguration": {
      "$ref": "#/$defs/DaemonDeploymentConfiguration"
    },
    "propagateTags": {
      "type": "string",
      "enum": [
        "DAEMON",
        "NONE"
      ],
      "description": "Specifies whether to propagate the tags from the daemon to the daemon tasks. If you don't specify a value, the tags aren't propagated. You can only propagate tags to daemon tasks during task creation."
    },
    "enableECSManagedTags": {
      "type": "boolean",
      "description": "Specifies whether to turn on Amazon ECS managed tags for the tasks in the daemon. For more information, see Tagging your Amazon ECS resources in the Amazon Elastic Container Service Developer Guide."
    },
    "enableExecuteCommand": {
      "type": "boolean",
      "description": "If true, the execute command functionality is turned on for all tasks in the daemon. If false, the execute command functionality is turned off."
    },
    "critical": {
      "type": "boolean",
      "description": "If the critical parameter of a daemon is true, and the daemon task fails, stops, or becomes unhealthy, Amazon ECS drains the container instance and stops the other tasks running on it. If the critical parameter is false, the daemon task failure doesn't affect the other tasks on the instance. The default value is true. A non-critical daemon doesn't block instance registration. The container instance becomes active and continues to run your other tasks, whether the daemon task fails during scale-out or during a deployment. Amazon ECS emits an EventBridge event when a daemon task fails to start, "
    }
  },
  "required": [
    "daemonArn",
    "daemonTaskDefinitionArn",
    "capacityProviderArns"
  ],
  "$defs": {
    "DaemonAlarmConfiguration": {
      "type": "object",
      "properties": {
        "alarmNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The CloudWatch alarm names to monitor during a daemon deployment."
        },
        "enable": {
          "type": "boolean",
          "description": "Determines whether to use the CloudWatch alarm option in the daemon deployment process. The default value is false."
        }
      }
    },
    "DaemonDeploymentConfiguration": {
      "type": "object",
      "properties": {
        "drainPercent": {
          "type": "number",
          "description": "The percentage of container instances to drain simultaneously during a daemon deployment. Valid values are between 0.0 and 100.0."
        },
        "alarms": {
          "$ref": "#/$defs/DaemonAlarmConfiguration"
        },
        "bakeTimeInMinutes": {
          "type": "integer",
          "description": "The amount of time (in minutes) to wait after a successful deployment step before proceeding. This allows time to monitor for issues before continuing. The default value is 0."
        }
      }
    }
  }
}