pub struct Task {Show 34 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 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>,
}Fields§
§task_arn: String§task_id: String§cluster_arn: String§cluster_name: String§task_definition_arn: String§family: String§revision: i32§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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more