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 ==
.