#[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 ==
.impl StructuralPartialEq for UpdateTaskProtectionInput
Auto Trait Implementations§
impl Freeze for UpdateTaskProtectionInput
impl RefUnwindSafe for UpdateTaskProtectionInput
impl Send for UpdateTaskProtectionInput
impl Sync for UpdateTaskProtectionInput
impl Unpin for UpdateTaskProtectionInput
impl UnwindSafe for UpdateTaskProtectionInput
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> 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