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

Class: Aws::Batch::Types::NodeProperties

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

{
  num_nodes: 1, # required
  main_node: 1, # required
  node_range_properties: [ # required
    {
      target_nodes: "String", # required
      container: {
        image: "String",
        vcpus: 1,
        memory: 1,
        command: ["String"],
        job_role_arn: "String",
        volumes: [
          {
            host: {
              source_path: "String",
            },
            name: "String",
          },
        ],
        environment: [
          {
            name: "String",
            value: "String",
          },
        ],
        mount_points: [
          {
            container_path: "String",
            read_only: false,
            source_volume: "String",
          },
        ],
        readonly_root_filesystem: false,
        privileged: false,
        ulimits: [
          {
            hard_limit: 1, # required
            name: "String", # required
            soft_limit: 1, # required
          },
        ],
        user: "String",
        instance_type: "String",
        resource_requirements: [
          {
            value: "String", # required
            type: "GPU", # required, accepts GPU
          },
        ],
        linux_parameters: {
          devices: [
            {
              host_path: "String", # required
              container_path: "String",
              permissions: ["READ"], # accepts READ, WRITE, MKNOD
            },
          ],
        },
      },
    },
  ],
}

An object representing the node properties of a multi-node parallel job.

Instance Attribute Summary collapse

Instance Attribute Details

#main_nodeInteger

Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.

Returns:

  • (Integer)


2348
2349
2350
2351
2352
2353
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2348

class NodeProperties < Struct.new(
  :num_nodes,
  :main_node,
  :node_range_properties)
  include Aws::Structure
end

#node_range_propertiesArray<Types::NodeRangeProperty>

A list of node ranges and their properties associated with a multi-node parallel job.

Returns:



2348
2349
2350
2351
2352
2353
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2348

class NodeProperties < Struct.new(
  :num_nodes,
  :main_node,
  :node_range_properties)
  include Aws::Structure
end

#num_nodesInteger

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

Returns:

  • (Integer)


2348
2349
2350
2351
2352
2353
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2348

class NodeProperties < Struct.new(
  :num_nodes,
  :main_node,
  :node_range_properties)
  include Aws::Structure
end