Struct aws_sdk_batch::model::NodeOverrides
source · [−]#[non_exhaustive]pub struct NodeOverrides {
pub num_nodes: Option<i32>,
pub node_property_overrides: Option<Vec<NodePropertyOverride>>,
}Expand description
Object representing any node overrides to a job definition that's used in a SubmitJob API operation.
This isn't applicable to jobs that are running on Fargate resources and shouldn't be provided; 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:
-
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 specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index 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
sourceimpl 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:
-
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 specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index specified in the job definition must be fewer than the number of nodes specified in the override.
sourcepub fn node_property_overrides(&self) -> Option<&[NodePropertyOverride]>
pub fn node_property_overrides(&self) -> Option<&[NodePropertyOverride]>
The node property overrides for the job.
sourceimpl NodeOverrides
impl NodeOverrides
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NodeOverrides.
Trait Implementations
sourceimpl Clone for NodeOverrides
impl Clone for NodeOverrides
sourcefn clone(&self) -> NodeOverrides
fn clone(&self) -> NodeOverrides
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NodeOverrides
impl Debug for NodeOverrides
sourceimpl PartialEq<NodeOverrides> for NodeOverrides
impl PartialEq<NodeOverrides> for NodeOverrides
sourcefn eq(&self, other: &NodeOverrides) -> bool
fn eq(&self, other: &NodeOverrides) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &NodeOverrides) -> bool
fn ne(&self, other: &NodeOverrides) -> bool
This method tests for !=.
impl StructuralPartialEq for NodeOverrides
Auto Trait Implementations
impl RefUnwindSafe for NodeOverrides
impl Send for NodeOverrides
impl Sync for NodeOverrides
impl Unpin for NodeOverrides
impl UnwindSafe for NodeOverrides
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more