Skip to content

ECS  >  Structures  >  DaemonTaskDefinition

DaemonTaskDefinition

Structure Class

DaemonTaskDefinition dataclass

Bases: _SerdeShape

The details of a daemon task definition. A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.

Attributes

container_definitions class-attribute instance-attribute
container_definitions: list[DaemonContainerDefinition] | None = ...

A list of container definitions in JSON format that describe the containers that make up the daemon task.

cpu class-attribute instance-attribute
cpu: str | None = ...

The number of CPU units used by the daemon task.

daemon_task_definition_arn class-attribute instance-attribute
daemon_task_definition_arn: str | None = ...

The full Amazon Resource Name (ARN) of the daemon task definition.

delete_requested_at class-attribute instance-attribute
delete_requested_at: datetime | None = ...

The Unix timestamp for the time when the daemon task definition delete was requested.

execution_role_arn class-attribute instance-attribute
execution_role_arn: str | None = ...

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.

family class-attribute instance-attribute
family: str | None = ...

The name of a family that this daemon task definition is registered to.

ipc_mode class-attribute instance-attribute
ipc_mode: str | None = ...

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".

memory class-attribute instance-attribute
memory: str | None = ...

The amount of memory (in MiB) used by the daemon task.

pid_mode class-attribute instance-attribute
pid_mode: str | None = ...

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".

registered_at class-attribute instance-attribute
registered_at: datetime | None = ...

The Unix timestamp for the time when the daemon task definition was registered.

registered_by class-attribute instance-attribute
registered_by: str | None = ...

The principal that registered the daemon task definition.

revision class-attribute instance-attribute
revision: int = ...

The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is 1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.

status class-attribute instance-attribute
status: str | None = ...

The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.

task_role_arn class-attribute instance-attribute
task_role_arn: str | None = ...

The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.

volumes class-attribute instance-attribute
volumes: list[DaemonVolume] | None = ...

The list of data volume definitions for the daemon task.