#[non_exhaustive]pub struct GetTaskProtectionOutput {
pub protected_tasks: Option<Vec<ProtectedTask>>,
pub failures: Option<Vec<Failure>>,
/* private fields */
}
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.protected_tasks: Option<Vec<ProtectedTask>>
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
failures: Option<Vec<Failure>>
Any failures associated with the call.
Implementations§
source§impl GetTaskProtectionOutput
impl GetTaskProtectionOutput
sourcepub fn protected_tasks(&self) -> &[ProtectedTask]
pub fn protected_tasks(&self) -> &[ProtectedTask]
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .protected_tasks.is_none()
.
source§impl GetTaskProtectionOutput
impl GetTaskProtectionOutput
sourcepub fn builder() -> GetTaskProtectionOutputBuilder
pub fn builder() -> GetTaskProtectionOutputBuilder
Creates a new builder-style object to manufacture GetTaskProtectionOutput
.
Trait Implementations§
source§impl Clone for GetTaskProtectionOutput
impl Clone for GetTaskProtectionOutput
source§fn clone(&self) -> GetTaskProtectionOutput
fn clone(&self) -> GetTaskProtectionOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetTaskProtectionOutput
impl Debug for GetTaskProtectionOutput
source§impl PartialEq for GetTaskProtectionOutput
impl PartialEq for GetTaskProtectionOutput
source§fn eq(&self, other: &GetTaskProtectionOutput) -> bool
fn eq(&self, other: &GetTaskProtectionOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetTaskProtectionOutput
impl RequestId for GetTaskProtectionOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetTaskProtectionOutput
Auto Trait Implementations§
impl Freeze for GetTaskProtectionOutput
impl RefUnwindSafe for GetTaskProtectionOutput
impl Send for GetTaskProtectionOutput
impl Sync for GetTaskProtectionOutput
impl Unpin for GetTaskProtectionOutput
impl UnwindSafe for GetTaskProtectionOutput
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