Struct aws_sdk_ecs::types::ProtectedTask
source · #[non_exhaustive]pub struct ProtectedTask {
pub task_arn: Option<String>,
pub protection_enabled: bool,
pub expiration_date: Option<DateTime>,
}
Expand description
An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection
API and get the status of tasks with the GetTaskProtection
API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.task_arn: Option<String>
The task ARN.
protection_enabled: bool
The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.
expiration_date: Option<DateTime>
The epoch time when protection for the task will expire.
Implementations§
source§impl ProtectedTask
impl ProtectedTask
sourcepub fn protection_enabled(&self) -> bool
pub fn protection_enabled(&self) -> bool
The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.
sourcepub fn expiration_date(&self) -> Option<&DateTime>
pub fn expiration_date(&self) -> Option<&DateTime>
The epoch time when protection for the task will expire.
source§impl ProtectedTask
impl ProtectedTask
sourcepub fn builder() -> ProtectedTaskBuilder
pub fn builder() -> ProtectedTaskBuilder
Creates a new builder-style object to manufacture ProtectedTask
.
Trait Implementations§
source§impl Clone for ProtectedTask
impl Clone for ProtectedTask
source§fn clone(&self) -> ProtectedTask
fn clone(&self) -> ProtectedTask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProtectedTask
impl Debug for ProtectedTask
source§impl PartialEq for ProtectedTask
impl PartialEq for ProtectedTask
source§fn eq(&self, other: &ProtectedTask) -> bool
fn eq(&self, other: &ProtectedTask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtectedTask
Auto Trait Implementations§
impl Freeze for ProtectedTask
impl RefUnwindSafe for ProtectedTask
impl Send for ProtectedTask
impl Sync for ProtectedTask
impl Unpin for ProtectedTask
impl UnwindSafe for ProtectedTask
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.