Struct aws_sdk_batch::types::UpdatePolicy
source · #[non_exhaustive]pub struct UpdatePolicy {
pub terminate_jobs_on_update: Option<bool>,
pub job_execution_timeout_minutes: Option<i64>,
}
Expand description
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
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.terminate_jobs_on_update: Option<bool>
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is false
.
job_execution_timeout_minutes: Option<i64>
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
Implementations§
source§impl UpdatePolicy
impl UpdatePolicy
sourcepub fn terminate_jobs_on_update(&self) -> Option<bool>
pub fn terminate_jobs_on_update(&self) -> Option<bool>
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is false
.
sourcepub fn job_execution_timeout_minutes(&self) -> Option<i64>
pub fn job_execution_timeout_minutes(&self) -> Option<i64>
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
source§impl UpdatePolicy
impl UpdatePolicy
sourcepub fn builder() -> UpdatePolicyBuilder
pub fn builder() -> UpdatePolicyBuilder
Creates a new builder-style object to manufacture UpdatePolicy
.
Trait Implementations§
source§impl Clone for UpdatePolicy
impl Clone for UpdatePolicy
source§fn clone(&self) -> UpdatePolicy
fn clone(&self) -> UpdatePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdatePolicy
impl Debug for UpdatePolicy
source§impl PartialEq for UpdatePolicy
impl PartialEq for UpdatePolicy
source§fn eq(&self, other: &UpdatePolicy) -> bool
fn eq(&self, other: &UpdatePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdatePolicy
Auto Trait Implementations§
impl Freeze for UpdatePolicy
impl RefUnwindSafe for UpdatePolicy
impl Send for UpdatePolicy
impl Sync for UpdatePolicy
impl Unpin for UpdatePolicy
impl UnwindSafe for UpdatePolicy
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