Class: AWSCDK::PCS::CfnCluster::SlurmRestProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode:) ⇒ SlurmRestProperty

Returns a new instance of SlurmRestProperty.

Parameters:

  • mode (String)

    The default value for mode is NONE .



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

#modeString (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_propertiesObject



1250
1251
1252
1253
1254
# File 'pcs/cfn_cluster.rb', line 1250

def self.jsii_properties
  {
    :mode => "mode",
  }
end

Instance Method Details

#to_jsiiObject



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