Class: AWSCDK::PCS::CfnCluster::SlurmCustomSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pcs/cfn_cluster.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.



1190
1191
1192
1193
1194
1195
# File 'pcs/cfn_cluster.rb', line 1190

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 .



1203
1204
1205
# File 'pcs/cfn_cluster.rb', line 1203

def parameter_name
  @parameter_name
end

#parameter_valueString (readonly)

The values for the configured Slurm settings.



1208
1209
1210
# File 'pcs/cfn_cluster.rb', line 1208

def parameter_value
  @parameter_value
end

Class Method Details

.jsii_propertiesObject



1210
1211
1212
1213
1214
1215
# File 'pcs/cfn_cluster.rb', line 1210

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

Instance Method Details

#to_jsiiObject



1217
1218
1219
1220
1221
1222
1223
1224
# File 'pcs/cfn_cluster.rb', line 1217

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