Skip to content

ECS  >  Structures  >  ProtectedTask

ProtectedTask

Structure Class

ProtectedTask dataclass

Bases: _SerdeShape

An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection API.

Attributes

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

The epoch time when protection for the task will expire.

protection_enabled class-attribute instance-attribute
protection_enabled: bool = ...

The protection status of the task. If scale-in protection is on for a task, the value is true. Otherwise, it is false.

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

The task ARN.