Skip to content

Container

Source code in docs_src/capo_ecs/types/container.py
class Container(TypedDict, closed=True):
    container_arn: NotRequired["capo_ecs.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the container.</p>"""
    task_arn: NotRequired["capo_ecs.types.string.String"]
    """<p>The ARN of the task.</p>"""
    name: NotRequired["capo_ecs.types.string.String"]
    """<p>The name of the container.</p>"""
    image: NotRequired["capo_ecs.types.string.String"]
    """<p>The image used for the container.</p>"""
    image_digest: NotRequired["capo_ecs.types.string.String"]
    """<p>The container image manifest digest.</p>"""
    runtime_id: NotRequired["capo_ecs.types.string.String"]
    """<p>The ID of the Docker container.</p>"""
    last_status: NotRequired["capo_ecs.types.string.String"]
    """<p>The last known status of the container.</p>"""
    exit_code: NotRequired["capo_ecs.types.boxed_integer.BoxedInteger"]
    """<p>The exit code returned from the container.</p>"""
    reason: NotRequired["capo_ecs.types.string.String"]
    """<p>A short (1024 max characters) human-readable string to provide additional details about a running or stopped container.</p>"""
    network_bindings: NotRequired["capo_ecs.types.network_bindings.NetworkBindings"]
    """<p>The network bindings associated with the container.</p>"""
    network_interfaces: NotRequired[
        "capo_ecs.types.network_interfaces.NetworkInterfaces"
    ]
    """<p>The network interfaces associated with the container.</p>"""
    health_status: NotRequired["capo_ecs.types.health_status.HealthStatus"]
    """<p>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 <code>UNKNOWN</code>.</p>"""
    managed_agents: NotRequired["capo_ecs.types.managed_agents.ManagedAgents"]
    """<p>The details of any Amazon ECS managed agents associated with the container.</p>"""
    cpu: NotRequired["capo_ecs.types.string.String"]
    """<p>The number of CPU units set for the container. The value is <code>0</code> if no value was specified in the container definition when the task definition was registered.</p>"""
    memory: NotRequired["capo_ecs.types.string.String"]
    """<p>The hard limit (in MiB) of memory set for the container.</p>"""
    memory_reservation: NotRequired["capo_ecs.types.string.String"]
    """<p>The soft limit (in MiB) of memory set for the container.</p>"""
    gpu_ids: NotRequired["capo_ecs.types.gpu_ids.GpuIds"]
    """<p>The IDs of each GPU assigned to the container.</p>"""
    neuron_device_ids: NotRequired["capo_ecs.types.neuron_device_ids.NeuronDeviceIds"]
    """<p>The IDs of each Neuron device assigned to the container.</p>"""

container_arn instance-attribute

container_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the container.

cpu instance-attribute

cpu: NotRequired[String]

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 instance-attribute

exit_code: NotRequired[BoxedInteger]

The exit code returned from the container.

gpu_ids instance-attribute

gpu_ids: NotRequired[GpuIds]

The IDs of each GPU assigned to the container.

health_status instance-attribute

health_status: NotRequired[HealthStatus]

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 instance-attribute

image: NotRequired[String]

The image used for the container.

image_digest instance-attribute

image_digest: NotRequired[String]

The container image manifest digest.

last_status instance-attribute

last_status: NotRequired[String]

The last known status of the container.

managed_agents instance-attribute

managed_agents: NotRequired[ManagedAgents]

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

memory instance-attribute

memory: NotRequired[String]

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

memory_reservation instance-attribute

memory_reservation: NotRequired[String]

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

name instance-attribute

name: NotRequired[String]

The name of the container.

network_bindings instance-attribute

network_bindings: NotRequired[NetworkBindings]

The network bindings associated with the container.

network_interfaces instance-attribute

network_interfaces: NotRequired[NetworkInterfaces]

The network interfaces associated with the container.

neuron_device_ids instance-attribute

neuron_device_ids: NotRequired[NeuronDeviceIds]

The IDs of each Neuron device assigned to the container.

reason instance-attribute

reason: NotRequired[String]

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

runtime_id instance-attribute

runtime_id: NotRequired[String]

The ID of the Docker container.

task_arn instance-attribute

task_arn: NotRequired[String]

The ARN of the task.