Class: AWSCDK::FSX::CfnVolume::AutocommitPeriodProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_volume.rb

Overview

Sets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.

For more information, see Autocommit .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value: nil) ⇒ AutocommitPeriodProperty

Returns a new instance of AutocommitPeriodProperty.

Parameters:

  • type (String)

    Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.

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

    Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.



655
656
657
658
659
660
# File 'fsx/cfn_volume.rb', line 655

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

Instance Attribute Details

#typeString (readonly)

Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.

Setting this value to NONE disables autocommit. The default value is NONE .



668
669
670
# File 'fsx/cfn_volume.rb', line 668

def type
  @type
end

#valueNumeric? (readonly)

Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.

The following ranges are valid:

  • Minutes : 5 - 65,535
  • Hours : 1 - 65,535
  • Days : 1 - 3,650
  • Months : 1 - 120
  • Years : 1 - 10


681
682
683
# File 'fsx/cfn_volume.rb', line 681

def value
  @value
end

Class Method Details

.jsii_propertiesObject



683
684
685
686
687
688
# File 'fsx/cfn_volume.rb', line 683

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

Instance Method Details

#to_jsiiObject



690
691
692
693
694
695
696
697
# File 'fsx/cfn_volume.rb', line 690

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end