{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-register-daemon-task-definition-request-schema.json",
  "title": "RegisterDaemonTaskDefinitionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-daemon-task-definition-api-openapi.yml#/components/schemas/RegisterDaemonTaskDefinitionRequest",
  "type": "object",
  "properties": {
    "family": {
      "type": "string",
      "description": "You must specify a family for a daemon task definition. This family is used as a name for your daemon task definition. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed."
    },
    "taskRoleArn": {
      "type": "string",
      "description": "The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this daemon task can assume. All containers in this daemon task are granted the permissions that are specified in this role."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf. The task execution role is required for daemon tasks that pull container images from Amazon ECR or send container logs to CloudWatch."
    },
    "containerDefinitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DaemonContainerDefinition"
      },
      "description": "A list of container definitions in JSON format that describe the containers that make up your daemon task."
    },
    "cpu": {
      "type": "string",
      "description": "The number of CPU units used by the daemon task. It can be expressed as an integer using CPU units (for example, 1024)."
    },
    "memory": {
      "type": "string",
      "description": "The amount of memory (in MiB) used by the daemon task. It can be expressed as an integer using MiB (for example, 1024)."
    },
    "volumes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DaemonVolume"
      },
      "description": "A list of volume definitions in JSON format that containers in your daemon task can use."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The metadata that you apply to the daemon task definition to help you categorize and organize them. Each tag consists of a key and an optional value. You define both of them. The following basic restrictions apply to tags: Maximum number of tags per resource - 50 For each resource, each tag key must be unique, and each tag key can have only one value. Maximum key length - 128 Unicode characters in UTF-8 Maximum value length - 256 Unicode characters in UTF-8 If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed chara"
    },
    "pidMode": {
      "type": "string",
      "enum": [
        "none",
        "shared"
      ],
      "description": "The PID namespace mode for the daemon. The valid values are none and shared. The default is none. If none is specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. If shared is specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that use pidMode: \"host\" or other daemons that use pidMode: \"shared\"."
    },
    "ipcMode": {
      "type": "string",
      "enum": [
        "none",
        "shared"
      ],
      "description": "The IPC namespace mode for the daemon. The valid values are none and shared. The default is none. If none is specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. If shared is specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that use ipcMode: \"host\" or other daemons that use ipcMode: \"shared\"."
    }
  },
  "required": [
    "family",
    "containerDefinitions"
  ],
  "$defs": {
    "ContainerDependency": {
      "type": "object",
      "properties": {
        "containerName": {
          "type": "string",
          "description": "The name of a container."
        },
        "condition": {
          "type": "string",
          "enum": [
            "START",
            "COMPLETE",
            "SUCCESS",
            "HEALTHY"
          ],
          "description": "The dependency condition of the container. The following are the available conditions and their behavior: START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. COMPLETE - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. SUCCESS - This condition is the same as COMPLETE, but i"
        }
      },
      "required": [
        "containerName",
        "condition"
      ]
    },
    "ContainerRestartPolicy": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether a restart policy is enabled for the container."
        },
        "ignoredExitCodes": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "A list of exit codes that Amazon ECS will ignore and not attempt a restart on. You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not ignore any exit codes."
        },
        "restartAttemptPeriod": {
          "type": "integer",
          "description": "A period of time (in seconds) that the container must run for before a restart can be attempted. A container can be restarted only once every restartAttemptPeriod seconds. If a container isn't able to run for this time period and exits early, it will not be restarted. You can set a minimum restartAttemptPeriod of 60 seconds and a maximum restartAttemptPeriod of 1800 seconds. By default, a container must run for 300 seconds before it can be restarted."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "DaemonContainerDefinition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the container. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed."
        },
        "image": {
          "type": "string",
          "description": "The image used to start the container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest ."
        },
        "memory": {
          "type": "integer",
          "description": "The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is killed."
        },
        "memoryReservation": {
          "type": "integer",
          "description": "The soft limit (in MiB) of memory to reserve for the container."
        },
        "repositoryCredentials": {
          "$ref": "#/$defs/RepositoryCredentials"
        },
        "healthCheck": {
          "$ref": "#/$defs/HealthCheck"
        },
        "cpu": {
          "type": "integer",
          "description": "The number of cpu units reserved for the container."
        },
        "essential": {
          "type": "boolean",
          "description": "If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped."
        },
        "entryPoint": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The entry point that's passed to the container."
        },
        "command": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The command that's passed to the container."
        },
        "workingDirectory": {
          "type": "string",
          "description": "The working directory to run commands inside the container in."
        },
        "environmentFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvironmentFile"
          },
          "description": "A list of files containing the environment variables to pass to a container."
        },
        "environment": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeyValuePair"
          },
          "description": "The environment variables to pass to a container."
        },
        "secrets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Secret"
          },
          "description": "The secrets to pass to the container."
        },
        "readonlyRootFilesystem": {
          "type": "boolean",
          "description": "When this parameter is true, the container is given read-only access to its root file system."
        },
        "mountPoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MountPoint"
          },
          "description": "The mount points for data volumes in your container."
        },
        "logConfiguration": {
          "$ref": "#/$defs/LogConfiguration"
        },
        "firelensConfiguration": {
          "$ref": "#/$defs/FirelensConfiguration"
        },
        "privileged": {
          "type": "boolean",
          "description": "When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user)."
        },
        "user": {
          "type": "string",
          "description": "The user to use inside the container."
        },
        "ulimits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Ulimit"
          },
          "description": "A list of ulimits to set in the container."
        },
        "linuxParameters": {
          "$ref": "#/$defs/DaemonLinuxParameters"
        },
        "dependsOn": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContainerDependency"
          },
          "description": "The dependencies defined for container startup and shutdown. A container can contain multiple dependencies on other containers in a task definition."
        },
        "startTimeout": {
          "type": "integer",
          "description": "Time duration (in seconds) to wait before giving up on resolving dependencies for a container."
        },
        "stopTimeout": {
          "type": "integer",
          "description": "Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own."
        },
        "systemControls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SystemControl"
          },
          "description": "A list of namespaced kernel parameters to set in the container."
        },
        "interactive": {
          "type": "boolean",
          "description": "When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated."
        },
        "pseudoTerminal": {
          "type": "boolean",
          "description": "When this parameter is true, a TTY is allocated."
        },
        "restartPolicy": {
          "$ref": "#/$defs/ContainerRestartPolicy"
        }
      },
      "required": [
        "image"
      ]
    },
    "DaemonLinuxParameters": {
      "type": "object",
      "properties": {
        "capabilities": {
          "$ref": "#/$defs/KernelCapabilities"
        },
        "devices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Device"
          },
          "description": "Any host devices to expose to the container."
        },
        "initProcessEnabled": {
          "type": "boolean",
          "description": "Run an init process inside the container that forwards signals and reaps processes."
        },
        "tmpfs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tmpfs"
          },
          "description": "The container path, mount options, and size (in MiB) of the tmpfs mount."
        }
      }
    },
    "DaemonVolume": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed."
        },
        "host": {
          "$ref": "#/$defs/HostVolumeProperties"
        }
      }
    },
    "Device": {
      "type": "object",
      "properties": {
        "hostPath": {
          "type": "string",
          "description": "The path for the device on the host container instance."
        },
        "containerPath": {
          "type": "string",
          "description": "The path inside the container at which to expose the host device."
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "mknod"
            ]
          },
          "description": "The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device."
        }
      },
      "required": [
        "hostPath"
      ]
    },
    "EnvironmentFile": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file."
        },
        "type": {
          "type": "string",
          "enum": [
            "s3"
          ],
          "description": "The file type to use. Environment files are objects in Amazon S3. The only supported value is s3."
        }
      },
      "required": [
        "value",
        "type"
      ]
    },
    "FirelensConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "fluentd",
            "fluentbit"
          ],
          "description": "The log router to use. The valid values are fluentd or fluentbit."
        },
        "options": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is \"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide. Tasks hosted on Farga"
        }
      },
      "required": [
        "type"
      ]
    },
    "HealthCheck": {
      "type": "object",
      "properties": {
        "command": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A string array representing the command that the container runs to determine if it is healthy. The string array must start with CMD to run the command arguments directly, or CMD-SHELL to run the command with the container's default shell. When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list of commands in double quotes and brackets. [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ] You don't include the double quotes and brackets when you use the Amazon Web Services Management Console. CMD-SHELL, curl -f http://local"
        },
        "interval": {
          "type": "integer",
          "description": "The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds. This value applies only when you specify a command."
        },
        "timeout": {
          "type": "integer",
          "description": "The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5. This value applies only when you specify a command."
        },
        "retries": {
          "type": "integer",
          "description": "The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is 3. This value applies only when you specify a command."
        },
        "startPeriod": {
          "type": "integer",
          "description": "The optional grace period to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You can specify between 0 and 300 seconds. By default, the startPeriod is off. This value applies only when you specify a command. If a health check succeeds within the startPeriod, then the container is considered healthy and any subsequent failures count toward the maximum number of retries."
        }
      },
      "required": [
        "command"
      ]
    },
    "HostVolumeProperties": {
      "type": "object",
      "properties": {
        "sourcePath": {
          "type": "string",
          "description": "When the host parameter is used, specify a sourcePath to declare the path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the host parameter contains a sourcePath file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the sourcePath value doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported. If you're using th"
        }
      }
    },
    "KernelCapabilities": {
      "type": "object",
      "properties": {
        "add": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run. Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability. Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\""
        },
        "drop": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run. Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" |"
        }
      }
    },
    "KeyValuePair": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the key-value pair. For environment variables, this is the name of the environment variable."
        },
        "value": {
          "type": "string",
          "description": "The value of the key-value pair. For environment variables, this is the value of the environment variable."
        }
      }
    },
    "LogConfiguration": {
      "type": "object",
      "properties": {
        "logDriver": {
          "type": "string",
          "enum": [
            "json-file",
            "syslog",
            "journald",
            "gelf",
            "fluentd",
            "awslogs",
            "splunk",
            "awsfirelens"
          ],
          "description": "The log driver to use for the container. For tasks on Fargate, the supported log drivers are awslogs, splunk, and awsfirelens. For tasks hosted on Amazon EC2 instances, the supported log drivers are awslogs, fluentd, gelf, json-file, journald, syslog, splunk, and awsfirelens. For more information about using the awslogs log driver, see Send Amazon ECS logs to CloudWatch in the Amazon Elastic Container Service Developer Guide. For more information about using the awsfirelens log driver, see Send Amazon ECS logs to an Amazon Web Services service or Amazon Web Services Partner. If you have a cust"
        },
        "options": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The configuration options to send to the log driver. The options you can specify depend on the log driver. Some of the options you can specify when you use the awslogs log driver to route logs to Amazon CloudWatch include the following: awslogs-create-group Required: No Specify whether you want the log group to be created automatically. If this option isn't specified, it defaults to false. Your IAM policy must include the logs:CreateLogGroup permission before you attempt to use awslogs-create-group. awslogs-region Required: Yes Specify the Amazon Web Services Region that the awslogs log driver"
        },
        "secretOptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Secret"
          },
          "description": "The secrets to pass to the log configuration. For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide."
        }
      },
      "required": [
        "logDriver"
      ]
    },
    "MountPoint": {
      "type": "object",
      "properties": {
        "sourceVolume": {
          "type": "string",
          "description": "The name of the volume to mount. Must be a volume name referenced in the name parameter of task definition volume."
        },
        "containerPath": {
          "type": "string",
          "description": "The path on the container to mount the host volume at."
        },
        "readOnly": {
          "type": "boolean",
          "description": "If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false."
        }
      }
    },
    "RepositoryCredentials": {
      "type": "object",
      "properties": {
        "credentialsParameter": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the secret containing the private repository credentials. When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the secret exists in the same Region as the task that you're launching then you can use either the full ARN or the name of the secret. When you use the Amazon Web Services Management Console, you must specify the full ARN of the secret."
        }
      },
      "required": [
        "credentialsParameter"
      ]
    },
    "Secret": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the secret."
        },
        "valueFrom": {
          "type": "string",
          "description": "The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store. For information about the require Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide. If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full A"
        }
      },
      "required": [
        "name",
        "valueFrom"
      ]
    },
    "SystemControl": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "description": "The namespaced kernel parameter to set a value for."
        },
        "value": {
          "type": "string",
          "description": "The namespaced kernel parameter to set a value for. Valid IPC namespace values: \"kernel.msgmax\" | \"kernel.msgmnb\" | \"kernel.msgmni\" | \"kernel.sem\" | \"kernel.shmall\" | \"kernel.shmmax\" | \"kernel.shmmni\" | \"kernel.shm_rmid_forced\", and Sysctls that start with \"fs.mqueue.*\" Valid network namespace values: Sysctls that start with \"net.*\". Only namespaced Sysctls that exist within the container starting with \"net.* are accepted. All of these values are supported by Fargate."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values."
        },
        "value": {
          "type": "string",
          "description": "The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key)."
        }
      }
    },
    "Tmpfs": {
      "type": "object",
      "properties": {
        "containerPath": {
          "type": "string",
          "description": "The absolute file path where the tmpfs volume is to be mounted."
        },
        "size": {
          "type": "integer",
          "description": "The maximum size (in MiB) of the tmpfs volume."
        },
        "mountOptions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of tmpfs volume mount options. Valid values: \"defaults\" | \"ro\" | \"rw\" | \"suid\" | \"nosuid\" | \"dev\" | \"nodev\" | \"exec\" | \"noexec\" | \"sync\" | \"async\" | \"dirsync\" | \"remount\" | \"mand\" | \"nomand\" | \"atime\" | \"noatime\" | \"diratime\" | \"nodiratime\" | \"bind\" | \"rbind\" | \"unbindable\" | \"runbindable\" | \"private\" | \"rprivate\" | \"shared\" | \"rshared\" | \"slave\" | \"rslave\" | \"relatime\" | \"norelatime\" | \"strictatime\" | \"nostrictatime\" | \"mode\" | \"uid\" | \"gid\" | \"nr_inodes\" | \"nr_blocks\" | \"mpol\""
        }
      },
      "required": [
        "containerPath",
        "size"
      ]
    },
    "Ulimit": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "core",
            "cpu",
            "data",
            "fsize",
            "locks",
            "memlock",
            "msgqueue",
            "nice",
            "nofile",
            "nproc",
            "rss",
            "rtprio",
            "rttime",
            "sigpending",
            "stack"
          ],
          "description": "The type of the ulimit."
        },
        "softLimit": {
          "type": "integer",
          "description": "The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit."
        },
        "hardLimit": {
          "type": "integer",
          "description": "The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit."
        }
      },
      "required": [
        "name",
        "softLimit",
        "hardLimit"
      ]
    }
  }
}