Struct aws_sdk_batch::types::EvaluateOnExit
source · #[non_exhaustive]pub struct EvaluateOnExit {
pub on_status_reason: Option<String>,
pub on_reason: Option<String>,
pub on_exit_code: Option<String>,
pub action: Option<RetryAction>,
}
Expand description
Specifies an array of up to 5 conditions to be met, and an action to take (RETRY
or EXIT
) if all conditions are met. If none of the EvaluateOnExit
conditions in a RetryStrategy
match, then the job is retried.
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.on_status_reason: Option<String>
Contains a glob pattern to match against the StatusReason
returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
on_reason: Option<String>
Contains a glob pattern to match against the Reason
returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
on_exit_code: Option<String>
Contains a glob pattern to match against the decimal representation of the ExitCode
returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
The string can contain up to 512 characters.
action: Option<RetryAction>
Specifies the action to take if all of the specified conditions (onStatusReason
, onReason
, and onExitCode
) are met. The values aren't case sensitive.
Implementations§
source§impl EvaluateOnExit
impl EvaluateOnExit
sourcepub fn on_status_reason(&self) -> Option<&str>
pub fn on_status_reason(&self) -> Option<&str>
Contains a glob pattern to match against the StatusReason
returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
sourcepub fn on_reason(&self) -> Option<&str>
pub fn on_reason(&self) -> Option<&str>
Contains a glob pattern to match against the Reason
returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
sourcepub fn on_exit_code(&self) -> Option<&str>
pub fn on_exit_code(&self) -> Option<&str>
Contains a glob pattern to match against the decimal representation of the ExitCode
returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
The string can contain up to 512 characters.
sourcepub fn action(&self) -> Option<&RetryAction>
pub fn action(&self) -> Option<&RetryAction>
Specifies the action to take if all of the specified conditions (onStatusReason
, onReason
, and onExitCode
) are met. The values aren't case sensitive.
source§impl EvaluateOnExit
impl EvaluateOnExit
sourcepub fn builder() -> EvaluateOnExitBuilder
pub fn builder() -> EvaluateOnExitBuilder
Creates a new builder-style object to manufacture EvaluateOnExit
.
Trait Implementations§
source§impl Clone for EvaluateOnExit
impl Clone for EvaluateOnExit
source§fn clone(&self) -> EvaluateOnExit
fn clone(&self) -> EvaluateOnExit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateOnExit
impl Debug for EvaluateOnExit
source§impl PartialEq<EvaluateOnExit> for EvaluateOnExit
impl PartialEq<EvaluateOnExit> for EvaluateOnExit
source§fn eq(&self, other: &EvaluateOnExit) -> bool
fn eq(&self, other: &EvaluateOnExit) -> bool
self
and other
values to be equal, and is used
by ==
.