Skip to content

ECS  >  Structures  >  Container

Container

Structure Class

Container dataclass

Bases: _SerdeShape

A Docker container that's part of a task.

Attributes

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

The Amazon Resource Name (ARN) of the container.

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

The number of CPU units set for the container. The value is 0 if no value was specified in the container definition when the task definition was registered.

exit_code class-attribute instance-attribute
exit_code: int | None = ...

The exit code returned from the container.

gpu_ids class-attribute instance-attribute
gpu_ids: list[str] | None = ...

The IDs of each GPU assigned to the container.

gpu_sharing_strategy class-attribute instance-attribute
gpu_sharing_strategy: SharingStrategy | None = ...

The GPU sharing strategy that the task definition specifies for the container. This field is present only for containers whose resource requirements include sharingStrategy.

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

The health status of the container. If health checks aren't configured for this container in its task definition, then it reports the health status as UNKNOWN.

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

The image used for the container.

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

The container image manifest digest.

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

The last known status of the container.

managed_agents class-attribute instance-attribute
managed_agents: list[ManagedAgent] | None = ...

The details of any Amazon ECS managed agents associated with the container.

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

The hard limit (in MiB) of memory set for the container.

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

The soft limit (in MiB) of memory set for the container.

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

The name of the container.

network_bindings class-attribute instance-attribute
network_bindings: list[NetworkBinding] | None = ...

The network bindings associated with the container.

network_interfaces class-attribute instance-attribute
network_interfaces: list[NetworkInterface] | None = ...

The network interfaces associated with the container.

neuron_device_ids class-attribute instance-attribute
neuron_device_ids: list[str] | None = ...

The IDs of each Neuron device assigned to the container.

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

A short (1024 max characters) human-readable string to provide additional details about a running or stopped container.

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

The ID of the Docker container.

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

The ARN of the task.