Class: AWSCDK::Sagemaker::CfnCluster::OrchestratorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::OrchestratorProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
The orchestrator for a SageMaker HyperPod cluster.
Instance Attribute Summary collapse
-
#eks ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the Amazon EKS orchestrator cluster for the SageMaker HyperPod cluster.
-
#slurm ⇒ AWSCDK::IResolvable, ...
readonly
Specifies parameter(s) related to Slurm as orchestrator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(eks: nil, slurm: nil) ⇒ OrchestratorProperty
constructor
A new instance of OrchestratorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(eks: nil, slurm: nil) ⇒ OrchestratorProperty
Returns a new instance of OrchestratorProperty.
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
#eks ⇒ AWSCDK::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 |
#slurm ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |