Struct aws_sdk_batch::types::UpdatePolicy
source · #[non_exhaustive]pub struct UpdatePolicy {
pub terminate_jobs_on_update: Option<bool>,
pub job_execution_timeout_minutes: 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: 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) -> i64
pub fn job_execution_timeout_minutes(&self) -> 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<UpdatePolicy> for UpdatePolicy
impl PartialEq<UpdatePolicy> 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 ==
.