Class: AWSCDK::Sagemaker::CfnCluster::OrchestratorProperty

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

Overview

The orchestrator for a SageMaker HyperPod cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eks: nil, slurm: nil) ⇒ OrchestratorProperty

Returns a new instance of OrchestratorProperty.

Parameters:



1910
1911
1912
1913
1914
1915
# File 'sagemaker/cfn_cluster.rb', line 1910

def initialize(eks: nil, slurm: nil)
  @eks = eks.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnCluster::ClusterOrchestratorEKSConfigProperty.new(**eks.transform_keys(&:to_sym)) : eks
  Jsii::Type.check_type(@eks, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQ2x1c3Rlci5DbHVzdGVyT3JjaGVzdHJhdG9yRWtzQ29uZmlnUHJvcGVydHkifV19fQ==")), "eks") unless @eks.nil?
  @slurm = slurm.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnCluster::ClusterOrchestratorSlurmConfigProperty.new(**slurm.transform_keys(&:to_sym)) : slurm
  Jsii::Type.check_type(@slurm, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQ2x1c3Rlci5DbHVzdGVyT3JjaGVzdHJhdG9yU2x1cm1Db25maWdQcm9wZXJ0eSJ9XX19")), "slurm") unless @slurm.nil?
end

Instance Attribute Details

#eksAWSCDK::IResolvable, ... (readonly)

The configuration of the Amazon EKS orchestrator cluster for the SageMaker HyperPod cluster.



1921
1922
1923
# File 'sagemaker/cfn_cluster.rb', line 1921

def eks
  @eks
end

#slurmAWSCDK::IResolvable, ... (readonly)

Specifies parameter(s) related to Slurm as orchestrator.



1926
1927
1928
# File 'sagemaker/cfn_cluster.rb', line 1926

def slurm
  @slurm
end

Class Method Details

.jsii_propertiesObject



1928
1929
1930
1931
1932
1933
# File 'sagemaker/cfn_cluster.rb', line 1928

def self.jsii_properties
  {
    :eks => "eks",
    :slurm => "slurm",
  }
end

Instance Method Details

#to_jsiiObject



1935
1936
1937
1938
1939
1940
1941
1942
# File 'sagemaker/cfn_cluster.rb', line 1935

def to_jsii
  result = {}
  result.merge!({
    "eks" => @eks,
    "slurm" => @slurm,
  })
  result.compact
end