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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#node_property_overridesArray<Types::NodePropertyOverride>

The node property overrides for the job.

Returns:



2895
2896
2897
2898
2899
2900
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2895

class NodeOverrides < Struct.new(
  :num_nodes,
  :node_property_overrides)
  SENSITIVE = []
  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)


2895
2896
2897
2898
2899
2900
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2895

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