Skip to content

ProtectedTask

Source code in docs_src/capo_ecs/types/protected_task.py
class ProtectedTask(TypedDict, closed=True):
    task_arn: NotRequired["capo_ecs.types.string.String"]
    """<p>The task ARN.</p>"""
    protection_enabled: "capo_ecs.types.boolean.Boolean"
    """<p>The protection status of the task. If scale-in protection is on for a task, the value is <code>true</code>. Otherwise, it is <code>false</code>.</p>"""
    expiration_date: NotRequired["capo_ecs.types.timestamp.Timestamp"]
    """<p>The epoch time when protection for the task will expire.</p>"""

expiration_date instance-attribute

expiration_date: NotRequired[Timestamp]

The epoch time when protection for the task will expire.

protection_enabled instance-attribute

protection_enabled: Boolean

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

task_arn: NotRequired[String]

The task ARN.