Class: AWSCDK::PCS::CfnCluster::AccountingProperty

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

Overview

The accounting configuration includes configurable settings for Slurm accounting.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode:, default_purge_time_in_days: nil) ⇒ AccountingProperty

Returns a new instance of AccountingProperty.

Parameters:

  • mode (String)

    The default value for mode is NONE .

  • default_purge_time_in_days (Numeric, nil) (defaults to: nil)

    The default value for all purge settings for slurmdbd.conf . For more information, see the slurmdbd.conf documentation at SchedMD .



621
622
623
624
625
626
# File 'pcs/cfn_cluster.rb', line 621

def initialize(mode:, default_purge_time_in_days: nil)
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode")
  @default_purge_time_in_days = default_purge_time_in_days
  Jsii::Type.check_type(@default_purge_time_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "defaultPurgeTimeInDays") unless @default_purge_time_in_days.nil?
end

Instance Attribute Details

#default_purge_time_in_daysNumeric? (readonly)

Note:

Default: - -1

The default value for all purge settings for slurmdbd.conf . For more information, see the slurmdbd.conf documentation at SchedMD .

The default value for default_purge_time_in_days is -1 .

A value of -1 means there is no purge time and records persist as long as the cluster exists.

0 isn't a valid value.



647
648
649
# File 'pcs/cfn_cluster.rb', line 647

def default_purge_time_in_days
  @default_purge_time_in_days
end

#modeString (readonly)

Note:

Default: - "NONE"

The default value for mode is NONE .

A value of STANDARD means Slurm accounting is enabled.



635
636
637
# File 'pcs/cfn_cluster.rb', line 635

def mode
  @mode
end

Class Method Details

.jsii_propertiesObject



649
650
651
652
653
654
# File 'pcs/cfn_cluster.rb', line 649

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

Instance Method Details

#to_jsiiObject



656
657
658
659
660
661
662
663
# File 'pcs/cfn_cluster.rb', line 656

def to_jsii
  result = {}
  result.merge!({
    "mode" => @mode,
    "defaultPurgeTimeInDays" => @default_purge_time_in_days,
  })
  result.compact
end