Skip to content

ECS  >  Dictionaries  >  TaskOverrideDict

TaskOverrideDict

Dictionary Type

TaskOverrideDict

Bases: TypedDict

Dictionary form of TaskOverride.

Attributes

container_overrides instance-attribute
container_overrides: Sequence[ContainerOverride | ContainerOverrideDict] | None

One or more container overrides that are sent to a task.

cpu instance-attribute
cpu: str | None

The CPU override for the task.

ephemeral_storage instance-attribute
ephemeral_storage: EphemeralStorage | EphemeralStorageDict | None

The ephemeral storage setting override for the task.

Note

This parameter is only supported for tasks hosted on Fargate that use the following platform versions:

  • Linux platform version 1.4.0 or later.
execution_role_arn instance-attribute
execution_role_arn: str | None

The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.

inference_accelerator_overrides instance-attribute
inference_accelerator_overrides: Sequence[InferenceAcceleratorOverride | InferenceAcceleratorOverrideDict] | None

The Elastic Inference accelerator override for the task.

memory instance-attribute
memory: str | None

The memory override for the task.

task_role_arn instance-attribute
task_role_arn: str | None

The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.