You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Batch::Types::NodeOverrides

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb

Overview

Note:

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
          },
        ],
      },
    },
  ],
}

Object representing any node overrides to a job definition that is used in a SubmitJob API operation.

Instance Attribute Summary collapse

Instance Attribute Details

#node_property_overridesArray<Types::NodePropertyOverride>

The node property overrides for the job.

Returns:



2256
2257
2258
2259
2260
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2256

class NodeOverrides < Struct.new(
  :num_nodes,
  :node_property_overrides)
  include Aws::Structure
end

#num_nodesInteger

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 : or n:).

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

Returns:

  • (Integer)


2256
2257
2258
2259
2260
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2256

class NodeOverrides < Struct.new(
  :num_nodes,
  :node_property_overrides)
  include Aws::Structure
end