Class: AWSCDK::FSX::CfnVolume::RetentionPeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnVolume::RetentionPeriodProperty
- Defined in:
- fsx/cfn_volume.rb
Overview
Specifies the retention period of an FSx for ONTAP SnapLock volume.
After it is set, it can't be changed. Files can't be deleted or modified during the retention period.
For more information, see Working with the retention period in SnapLock .
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
-
#value ⇒ Numeric?
readonly
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value: nil) ⇒ RetentionPeriodProperty
constructor
A new instance of RetentionPeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value: nil) ⇒ RetentionPeriodProperty
Returns a new instance of RetentionPeriodProperty.
1185 1186 1187 1188 1189 1190 |
# File 'fsx/cfn_volume.rb', line 1185 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 retention period of an FSx for ONTAP SnapLock volume.
Set it to one of the valid types. If you set it to INFINITE , the files are retained forever. If you set it to UNSPECIFIED , the files are retained until you set an explicit retention period.
1198 1199 1200 |
# File 'fsx/cfn_volume.rb', line 1198 def type @type end |
#value ⇒ Numeric? (readonly)
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
You can't set a value for INFINITE or UNSPECIFIED . For all other options, the following ranges are valid:
Seconds: 0 - 65,535Minutes: 0 - 65,535Hours: 0 - 24Days: 0 - 365Months: 0 - 12Years: 0 - 100
1212 1213 1214 |
# File 'fsx/cfn_volume.rb', line 1212 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1214 1215 1216 1217 1218 1219 |
# File 'fsx/cfn_volume.rb', line 1214 def self.jsii_properties { :type => "type", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1221 1222 1223 1224 1225 1226 1227 1228 |
# File 'fsx/cfn_volume.rb', line 1221 def to_jsii result = {} result.merge!({ "type" => @type, "value" => @value, }) result.compact end |