You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Batch::Types::NodeProperties
- Inherits:
-
Struct
- Object
- Struct
- Aws::Batch::Types::NodeProperties
- Defined in:
- (unknown)
Overview
When passing NodeProperties as input to an Aws::Client method, you can use a vanilla 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",
execution_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
},
],
init_process_enabled: false,
shared_memory_size: 1,
tmpfs: [
{
container_path: "String", # required
size: 1, # required
mount_options: ["String"],
},
],
max_swap: 1,
swappiness: 1,
},
log_configuration: {
log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
options: {
"String" => "String",
},
secret_options: [
{
name: "String", # required
value_from: "String", # required
},
],
},
secrets: [
{
name: "String", # required
value_from: "String", # required
},
],
},
},
],
}
An object representing the node properties of a multi-node parallel job.
Returned by:
Instance Attribute Summary collapse
-
#main_node ⇒ Integer
Specifies the node index for the main node of a multi-node parallel job.
-
#node_range_properties ⇒ Array<Types::NodeRangeProperty>
A list of node ranges and their properties associated with a multi-node parallel job.
-
#num_nodes ⇒ Integer
The number of nodes associated with a multi-node parallel job.
Instance Attribute Details
#main_node ⇒ Integer
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.
#node_range_properties ⇒ Array<Types::NodeRangeProperty>
A list of node ranges and their properties associated with a multi-node parallel job.
#num_nodes ⇒ Integer
The number of nodes associated with a multi-node parallel job.