Class: Aws::Batch::Types::NodeOverrides
- Inherits:
-
Struct
- Object
- Struct
- Aws::Batch::Types::NodeOverrides
- Defined in:
- gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb
Overview
When making an API call, you may pass NodeOverrides data as a hash:
{
num_nodes: 1,
node_property_overrides: [
{
target_nodes: "String", # required
container_overrides: {
vcpus: 1,
memory: 1,
command: ["String"],
instance_type: "String",
environment: [
{
name: "String",
value: "String",
},
],
resource_requirements: [
{
value: "String", # required
type: "GPU", # required, accepts GPU, VCPU, MEMORY
},
],
},
},
],
}
Object representing any node overrides to a job definition that's used in a SubmitJob API operation.
containerOverrides
instead.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#node_property_overrides ⇒ Array<Types::NodePropertyOverride>
The node property overrides for the job.
-
#num_nodes ⇒ Integer
The number of nodes to use with a multi-node parallel job.
Instance Attribute Details
#node_property_overrides ⇒ Array<Types::NodePropertyOverride>
The node property overrides for the job.
4671 4672 4673 4674 4675 4676 |
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 4671 class NodeOverrides < Struct.new( :num_nodes, :node_property_overrides) SENSITIVE = [] include Aws::Structure end |
#num_nodes ⇒ Integer
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.
4671 4672 4673 4674 4675 4676 |
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 4671 class NodeOverrides < Struct.new( :num_nodes, :node_property_overrides) SENSITIVE = [] include Aws::Structure end |