Class: AWSCDK::PCS::CfnComputeNodeGroup::SlurmCustomSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pcs/cfn_compute_node_group.rb

Overview

Additional settings that directly map to Slurm settings.

AWS PCS supports a subset of Slurm settings. For more information, see Configuring custom Slurm settings in AWS PCS in the AWS PCS User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter_name:, parameter_value:) ⇒ SlurmCustomSettingProperty

Returns a new instance of SlurmCustomSettingProperty.

Parameters:

  • parameter_name (String)

    AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues.

  • parameter_value (String)

    The values for the configured Slurm settings.



901
902
903
904
905
906
# File 'pcs/cfn_compute_node_group.rb', line 901

def initialize(parameter_name:, parameter_value:)
  @parameter_name = parameter_name
  Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName")
  @parameter_value = parameter_value
  Jsii::Type.check_type(@parameter_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterValue")
end

Instance Attribute Details

#parameter_nameString (readonly)

AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues.

For more information, see Configuring custom Slurm settings in AWS PCS in the AWS PCS User Guide .



914
915
916
# File 'pcs/cfn_compute_node_group.rb', line 914

def parameter_name
  @parameter_name
end

#parameter_valueString (readonly)

The values for the configured Slurm settings.



919
920
921
# File 'pcs/cfn_compute_node_group.rb', line 919

def parameter_value
  @parameter_value
end

Class Method Details

.jsii_propertiesObject



921
922
923
924
925
926
# File 'pcs/cfn_compute_node_group.rb', line 921

def self.jsii_properties
  {
    :parameter_name => "parameterName",
    :parameter_value => "parameterValue",
  }
end

Instance Method Details

#to_jsiiObject



928
929
930
931
932
933
934
935
# File 'pcs/cfn_compute_node_group.rb', line 928

def to_jsii
  result = {}
  result.merge!({
    "parameterName" => @parameter_name,
    "parameterValue" => @parameter_value,
  })
  result.compact
end