Struct aws_sdk_batch::types::NodeOverrides
source · #[non_exhaustive]pub struct NodeOverrides {
pub num_nodes: Option<i32>,
pub node_property_overrides: Option<Vec<NodePropertyOverride>>,
}
Expand description
An object that represents any node overrides to a job definition that's used in a SubmitJob API operation.
This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs. Rather, use containerOverrides
instead.
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.num_nodes: Option<i32>
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions:
-
There must be at least one node range in your job definition that has an open upper boundary, such as
:
orn:
. -
The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override.
node_property_overrides: Option<Vec<NodePropertyOverride>>
The node property overrides for the job.
Implementations§
source§impl NodeOverrides
impl NodeOverrides
sourcepub fn num_nodes(&self) -> Option<i32>
pub fn num_nodes(&self) -> Option<i32>
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions:
-
There must be at least one node range in your job definition that has an open upper boundary, such as
:
orn:
. -
The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override.
sourcepub fn node_property_overrides(&self) -> &[NodePropertyOverride]
pub fn node_property_overrides(&self) -> &[NodePropertyOverride]
The node property overrides for the job.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .node_property_overrides.is_none()
.
source§impl NodeOverrides
impl NodeOverrides
sourcepub fn builder() -> NodeOverridesBuilder
pub fn builder() -> NodeOverridesBuilder
Creates a new builder-style object to manufacture NodeOverrides
.
Trait Implementations§
source§impl Clone for NodeOverrides
impl Clone for NodeOverrides
source§fn clone(&self) -> NodeOverrides
fn clone(&self) -> NodeOverrides
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeOverrides
impl Debug for NodeOverrides
source§impl PartialEq for NodeOverrides
impl PartialEq for NodeOverrides
source§fn eq(&self, other: &NodeOverrides) -> bool
fn eq(&self, other: &NodeOverrides) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeOverrides
Auto Trait Implementations§
impl Freeze for NodeOverrides
impl RefUnwindSafe for NodeOverrides
impl Send for NodeOverrides
impl Sync for NodeOverrides
impl Unpin for NodeOverrides
impl UnwindSafe for NodeOverrides
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