Class: AWSCDK::FSX::CfnVolume::AutocommitPeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnVolume::AutocommitPeriodProperty
- 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
-
#type ⇒ String
readonly
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
-
#value ⇒ Numeric?
readonly
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value: nil) ⇒ AutocommitPeriodProperty
constructor
A new instance of AutocommitPeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value: nil) ⇒ AutocommitPeriodProperty
Returns a new instance of AutocommitPeriodProperty.
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
#type ⇒ String (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 |
#value ⇒ Numeric? (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,535Hours: 1 - 65,535Days: 1 - 3,650Months: 1 - 120Years: 1 - 10
681 682 683 |
# File 'fsx/cfn_volume.rb', line 681 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |