#[non_exhaustive]pub struct UpdateTaskProtectionInput {
pub cluster: Option<String>,
pub tasks: Option<Vec<String>>,
pub protection_enabled: Option<bool>,
pub expires_in_minutes: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster: Option<String>
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist in.
tasks: Option<Vec<String>>
A list of up to 10 task IDs or full ARN entries.
protection_enabled: Option<bool>
Specify true
to mark a task for protection and false
to unset protection, making it eligible for termination.
expires_in_minutes: Option<i32>
If you set protectionEnabled
to true
, you can specify the duration for task protection in minutes. You can specify a value from 1 minute to up to 2,880 minutes (48 hours). During this time, your task will not be terminated by scale-in events from Service Auto Scaling or deployments. After this time period lapses, protectionEnabled
will be reset to false
.
If you don’t specify the time, then the task is automatically protected for 120 minutes (2 hours).
Implementations§
source§impl UpdateTaskProtectionInput
impl UpdateTaskProtectionInput
sourcepub fn cluster(&self) -> Option<&str>
pub fn cluster(&self) -> Option<&str>
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist in.
sourcepub fn tasks(&self) -> &[String]
pub fn tasks(&self) -> &[String]
A list of up to 10 task IDs or full ARN entries.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tasks.is_none()
.
sourcepub fn protection_enabled(&self) -> Option<bool>
pub fn protection_enabled(&self) -> Option<bool>
Specify true
to mark a task for protection and false
to unset protection, making it eligible for termination.
sourcepub fn expires_in_minutes(&self) -> Option<i32>
pub fn expires_in_minutes(&self) -> Option<i32>
If you set protectionEnabled
to true
, you can specify the duration for task protection in minutes. You can specify a value from 1 minute to up to 2,880 minutes (48 hours). During this time, your task will not be terminated by scale-in events from Service Auto Scaling or deployments. After this time period lapses, protectionEnabled
will be reset to false
.
If you don’t specify the time, then the task is automatically protected for 120 minutes (2 hours).
source§impl UpdateTaskProtectionInput
impl UpdateTaskProtectionInput
sourcepub fn builder() -> UpdateTaskProtectionInputBuilder
pub fn builder() -> UpdateTaskProtectionInputBuilder
Creates a new builder-style object to manufacture UpdateTaskProtectionInput
.
Trait Implementations§
source§impl Clone for UpdateTaskProtectionInput
impl Clone for UpdateTaskProtectionInput
source§fn clone(&self) -> UpdateTaskProtectionInput
fn clone(&self) -> UpdateTaskProtectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateTaskProtectionInput
impl Debug for UpdateTaskProtectionInput
source§impl PartialEq for UpdateTaskProtectionInput
impl PartialEq for UpdateTaskProtectionInput
source§fn eq(&self, other: &UpdateTaskProtectionInput) -> bool
fn eq(&self, other: &UpdateTaskProtectionInput) -> bool
self
and other
values to be equal, and is used
by ==
.