pub struct Task {Show 40 fields
pub task_arn: String,
pub task_id: String,
pub cluster_arn: String,
pub cluster_name: String,
pub task_definition_arn: String,
pub family: String,
pub revision: i32,
pub container_instance_arn: Option<String>,
pub capacity_provider_name: Option<String>,
pub last_status: String,
pub desired_status: String,
pub launch_type: String,
pub platform_version: Option<String>,
pub cpu: Option<String>,
pub memory: Option<String>,
pub containers: Vec<Container>,
pub overrides: Value,
pub started_by: Option<String>,
pub group: Option<String>,
pub connectivity: String,
pub stop_code: Option<String>,
pub stopped_reason: Option<String>,
pub created_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub stopping_at: Option<DateTime<Utc>>,
pub stopped_at: Option<DateTime<Utc>>,
pub pull_started_at: Option<DateTime<Utc>>,
pub pull_stopped_at: Option<DateTime<Utc>>,
pub connectivity_at: Option<DateTime<Utc>>,
pub started_by_ref_id: Option<String>,
pub execution_role_arn: Option<String>,
pub task_role_arn: Option<String>,
pub tags: Vec<TagEntry>,
pub awslogs: Option<AwsLogsConfig>,
pub captured_logs: String,
pub protection: Option<TaskProtection>,
pub enable_execute_command: bool,
pub attachments: Vec<TaskAttachment>,
pub volume_configurations: Vec<Value>,
pub task_set_arn: Option<String>,
}Fields§
§task_arn: String§task_id: String§cluster_arn: String§cluster_name: String§task_definition_arn: String§family: String§revision: i32§container_instance_arn: Option<String>Container instance this task was placed on. Populated for EC2 / EXTERNAL launch types after placement evaluation.
capacity_provider_name: Option<String>Capacity provider this task was placed on. Set when the launch
went through a capacityProviderStrategy; absent for direct
launchType=EC2/FARGATE calls. AWS’s Task model emits this at
the top level next to launchType.
last_status: StringCurrent lifecycle state: PROVISIONING, PENDING, RUNNING, DEPROVISIONING, STOPPED.
desired_status: StringWhat the caller asked for: usually RUNNING, or STOPPED once
StopTask / StopService hits.
launch_type: String§platform_version: Option<String>§cpu: Option<String>§memory: Option<String>§containers: Vec<Container>§overrides: Value§started_by: Option<String>§group: Option<String>§connectivity: String§stop_code: Option<String>§stopped_reason: Option<String>§created_at: DateTime<Utc>§started_at: Option<DateTime<Utc>>§stopping_at: Option<DateTime<Utc>>§stopped_at: Option<DateTime<Utc>>§pull_started_at: Option<DateTime<Utc>>§pull_stopped_at: Option<DateTime<Utc>>§connectivity_at: Option<DateTime<Utc>>§started_by_ref_id: Option<String>§execution_role_arn: Option<String>§task_role_arn: Option<String>§awslogs: Option<AwsLogsConfig>Log destination derived from the first container’s awslogs driver.
None when no awslogs driver is configured — captured stdout/stderr
is still stored on the task for introspection.
captured_logs: StringCaptured stdout/stderr from the container. Populated after the container exits. Kept here so the introspection endpoint can serve logs even when no awslogs driver is configured.
protection: Option<TaskProtection>Task protection state (UpdateTaskProtection). When set, scale-in and update-service deployments skip this task until the expiry.
enable_execute_command: boolWhether ECS Exec is enabled on this task. Inherited from the
owning service’s enableExecuteCommand flag (or supplied
directly on RunTask). Gated when ExecuteCommand is invoked.
attachments: Vec<TaskAttachment>Network attachments (ENI, elastic-inference, etc.) populated when
the task uses awsvpc network mode. Synthetic for fakecloud.
volume_configurations: Vec<Value>Per-task volume configurations (EBS / FSx) supplied at RunTask or inherited from the service. Stored as raw JSON.
task_set_arn: Option<String>Task set this task belongs to. Populated when the task is spawned by a service using the CODE_DEPLOY deployment controller.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more