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

Class: Aws::Batch::Types::NodePropertyOverride

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 NodePropertyOverride data as a hash:

{
  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

#container_overridesTypes::ContainerOverrides

The overrides that should be sent to a node range.



2424
2425
2426
2427
2428
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2424

class NodePropertyOverride < Struct.new(
  :target_nodes,
  :container_overrides)
  include Aws::Structure
end

#target_nodesString

The range of nodes, using node index values, with which to override. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range.

Returns:

  • (String)


2424
2425
2426
2427
2428
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2424

class NodePropertyOverride < Struct.new(
  :target_nodes,
  :container_overrides)
  include Aws::Structure
end