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 ==
.