Class: AWSCDK::PCS::CfnCluster::SlurmRestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnCluster::SlurmRestProperty
- Defined in:
- pcs/cfn_cluster.rb
Overview
The Slurm REST API configuration includes settings for enabling and configuring the Slurm REST API.
It's a property of the ClusterSlurmConfiguration object.
Instance Attribute Summary collapse
-
#mode ⇒ String
readonly
The default value for
modeisNONE.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:) ⇒ SlurmRestProperty
constructor
A new instance of SlurmRestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode:) ⇒ SlurmRestProperty
Returns a new instance of SlurmRestProperty.
1236 1237 1238 1239 |
# File 'pcs/cfn_cluster.rb', line 1236 def initialize(mode:) @mode = mode Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") end |
Instance Attribute Details
#mode ⇒ String (readonly)
Note:
Default: - "NONE"
The default value for mode is NONE .
A value of STANDARD means the Slurm REST API is enabled.
1248 1249 1250 |
# File 'pcs/cfn_cluster.rb', line 1248 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
1250 1251 1252 1253 1254 |
# File 'pcs/cfn_cluster.rb', line 1250 def self.jsii_properties { :mode => "mode", } end |
Instance Method Details
#to_jsii ⇒ Object
1256 1257 1258 1259 1260 1261 1262 |
# File 'pcs/cfn_cluster.rb', line 1256 def to_jsii result = {} result.merge!({ "mode" => @mode, }) result.compact end |