Class: AWSCDK::Sagemaker::CfnCluster::ClusterSlurmConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_cluster.rb

Overview

Slurm configuration for the instance group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node_type:, partition_names: nil) ⇒ ClusterSlurmConfigProperty

Returns a new instance of ClusterSlurmConfigProperty.

Parameters:

  • node_type (String)

    The type of Slurm node for this instance group.

  • partition_names (Array<String>, nil) (defaults to: nil)

    The Slurm partitions that this instance group belongs to.



1701
1702
1703
1704
1705
1706
# File 'sagemaker/cfn_cluster.rb', line 1701

def initialize(node_type:, partition_names: nil)
  @node_type = node_type
  Jsii::Type.check_type(@node_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nodeType")
  @partition_names = partition_names
  Jsii::Type.check_type(@partition_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "partitionNames") unless @partition_names.nil?
end

Instance Attribute Details

#node_typeString (readonly)

The type of Slurm node for this instance group.



1712
1713
1714
# File 'sagemaker/cfn_cluster.rb', line 1712

def node_type
  @node_type
end

#partition_namesArray<String>? (readonly)

The Slurm partitions that this instance group belongs to.

Maximum of 1 partition.



1719
1720
1721
# File 'sagemaker/cfn_cluster.rb', line 1719

def partition_names
  @partition_names
end

Class Method Details

.jsii_propertiesObject



1721
1722
1723
1724
1725
1726
# File 'sagemaker/cfn_cluster.rb', line 1721

def self.jsii_properties
  {
    :node_type => "nodeType",
    :partition_names => "partitionNames",
  }
end

Instance Method Details

#to_jsiiObject



1728
1729
1730
1731
1732
1733
1734
1735
# File 'sagemaker/cfn_cluster.rb', line 1728

def to_jsii
  result = {}
  result.merge!({
    "nodeType" => @node_type,
    "partitionNames" => @partition_names,
  })
  result.compact
end