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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing NodeOverrides as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#node_property_overridesArray<Types::NodePropertyOverride>

The node property overrides for the job.

Returns:

#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)

    The number of nodes to use with a multi-node parallel job.