Class: AWSCDK::PCS::CfnCluster::AccountingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnCluster::AccountingProperty
- Defined in:
- pcs/cfn_cluster.rb
Overview
The accounting configuration includes configurable settings for Slurm accounting.
Instance Attribute Summary collapse
-
#default_purge_time_in_days ⇒ Numeric?
readonly
The default value for all purge settings for
slurmdbd.conf. -
#mode ⇒ String
readonly
The default value for
modeisNONE.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:, default_purge_time_in_days: nil) ⇒ AccountingProperty
constructor
A new instance of AccountingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode:, default_purge_time_in_days: nil) ⇒ AccountingProperty
Returns a new instance of AccountingProperty.
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_days ⇒ Numeric? (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.
0isn'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 |
#mode ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |