Skip to content

ECS  >  Structures  >  TaskOverride

TaskOverride

Structure Class

TaskOverride dataclass

Bases: _SerdeShape

The overrides that are associated with a task.

Attributes

container_overrides class-attribute instance-attribute
container_overrides: list[ContainerOverride] | None = ...

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

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

The CPU override for the task.

ephemeral_storage class-attribute instance-attribute
ephemeral_storage: EphemeralStorage | 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 class-attribute 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 class-attribute instance-attribute
inference_accelerator_overrides: list[InferenceAcceleratorOverride] | None = ...

The Elastic Inference accelerator override for the task.

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

The memory override for the task.

task_role_arn class-attribute 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.