Struct aws_sdk_batch::types::JobStateTimeLimitAction
source · #[non_exhaustive]pub struct JobStateTimeLimitAction {
pub reason: Option<String>,
pub state: Option<JobStateTimeLimitActionsState>,
pub max_time_seconds: Option<i32>,
pub action: Option<JobStateTimeLimitActionsAction>,
}
Expand description
Specifies an action that Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.
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.reason: Option<String>
The reason to log for the action being taken.
state: Option<JobStateTimeLimitActionsState>
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
max_time_seconds: Option<i32>
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
action: Option<JobStateTimeLimitActionsAction>
The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL
, which will cancel the job.
Implementations§
source§impl JobStateTimeLimitAction
impl JobStateTimeLimitAction
sourcepub fn state(&self) -> Option<&JobStateTimeLimitActionsState>
pub fn state(&self) -> Option<&JobStateTimeLimitActionsState>
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
sourcepub fn max_time_seconds(&self) -> Option<i32>
pub fn max_time_seconds(&self) -> Option<i32>
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
sourcepub fn action(&self) -> Option<&JobStateTimeLimitActionsAction>
pub fn action(&self) -> Option<&JobStateTimeLimitActionsAction>
The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL
, which will cancel the job.
source§impl JobStateTimeLimitAction
impl JobStateTimeLimitAction
sourcepub fn builder() -> JobStateTimeLimitActionBuilder
pub fn builder() -> JobStateTimeLimitActionBuilder
Creates a new builder-style object to manufacture JobStateTimeLimitAction
.
Trait Implementations§
source§impl Clone for JobStateTimeLimitAction
impl Clone for JobStateTimeLimitAction
source§fn clone(&self) -> JobStateTimeLimitAction
fn clone(&self) -> JobStateTimeLimitAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobStateTimeLimitAction
impl Debug for JobStateTimeLimitAction
source§impl PartialEq for JobStateTimeLimitAction
impl PartialEq for JobStateTimeLimitAction
source§fn eq(&self, other: &JobStateTimeLimitAction) -> bool
fn eq(&self, other: &JobStateTimeLimitAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobStateTimeLimitAction
Auto Trait Implementations§
impl Freeze for JobStateTimeLimitAction
impl RefUnwindSafe for JobStateTimeLimitAction
impl Send for JobStateTimeLimitAction
impl Sync for JobStateTimeLimitAction
impl Unpin for JobStateTimeLimitAction
impl UnwindSafe for JobStateTimeLimitAction
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