Class: AWSCDK::PCS::CfnComputeNodeGroup::SlurmConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnComputeNodeGroup::SlurmConfigurationProperty
- Defined in:
- pcs/cfn_compute_node_group.rb
Overview
Additional options related to the Slurm scheduler.
Instance Attribute Summary collapse
-
#scale_down_idle_time_in_seconds ⇒ Numeric?
readonly
The time before an idle node is scaled down.
-
#slurm_custom_settings ⇒ AWSCDK::IResolvable, ...
readonly
Additional Slurm-specific configuration that directly maps to Slurm settings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scale_down_idle_time_in_seconds: nil, slurm_custom_settings: nil) ⇒ SlurmConfigurationProperty
constructor
A new instance of SlurmConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scale_down_idle_time_in_seconds: nil, slurm_custom_settings: nil) ⇒ SlurmConfigurationProperty
Returns a new instance of SlurmConfigurationProperty.
856 857 858 859 860 861 |
# File 'pcs/cfn_compute_node_group.rb', line 856 def initialize(scale_down_idle_time_in_seconds: nil, slurm_custom_settings: nil) @scale_down_idle_time_in_seconds = scale_down_idle_time_in_seconds Jsii::Type.check_type(@scale_down_idle_time_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "scaleDownIdleTimeInSeconds") unless @scale_down_idle_time_in_seconds.nil? @slurm_custom_settings = slurm_custom_settings Jsii::Type.check_type(@slurm_custom_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGNzLkNmbkNvbXB1dGVOb2RlR3JvdXAuU2x1cm1DdXN0b21TZXR0aW5nUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "slurmCustomSettings") unless @slurm_custom_settings.nil? end |
Instance Attribute Details
#scale_down_idle_time_in_seconds ⇒ Numeric? (readonly)
The time before an idle node is scaled down.
867 868 869 |
# File 'pcs/cfn_compute_node_group.rb', line 867 def scale_down_idle_time_in_seconds @scale_down_idle_time_in_seconds end |
#slurm_custom_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Additional Slurm-specific configuration that directly maps to Slurm settings.
872 873 874 |
# File 'pcs/cfn_compute_node_group.rb', line 872 def slurm_custom_settings @slurm_custom_settings end |
Class Method Details
.jsii_properties ⇒ Object
874 875 876 877 878 879 |
# File 'pcs/cfn_compute_node_group.rb', line 874 def self.jsii_properties { :scale_down_idle_time_in_seconds => "scaleDownIdleTimeInSeconds", :slurm_custom_settings => "slurmCustomSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
881 882 883 884 885 886 887 888 |
# File 'pcs/cfn_compute_node_group.rb', line 881 def to_jsii result = {} result.merge!({ "scaleDownIdleTimeInSeconds" => @scale_down_idle_time_in_seconds, "slurmCustomSettings" => @slurm_custom_settings, }) result.compact end |