Class: AWSCDK::Rbin::CfnRule::UnlockDelayProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Rbin::CfnRule::UnlockDelayProperty
- Defined in:
- rbin/cfn_rule.rb
Overview
Information about the retention rule unlock delay.
The unlock delay is the period after which a retention rule can be modified or edited after it has been unlocked by a user with the required permissions. The retention rule can't be modified or deleted during the unlock delay.
Instance Attribute Summary collapse
-
#unlock_delay_unit ⇒ String?
readonly
The unit of time in which to measure the unlock delay.
-
#unlock_delay_value ⇒ Numeric?
readonly
The unlock delay period, measured in the unit specified for UnlockDelayUnit .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unlock_delay_unit: nil, unlock_delay_value: nil) ⇒ UnlockDelayProperty
constructor
A new instance of UnlockDelayProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(unlock_delay_unit: nil, unlock_delay_value: nil) ⇒ UnlockDelayProperty
Returns a new instance of UnlockDelayProperty.
732 733 734 735 736 737 |
# File 'rbin/cfn_rule.rb', line 732 def initialize(unlock_delay_unit: nil, unlock_delay_value: nil) @unlock_delay_unit = unlock_delay_unit Jsii::Type.check_type(@unlock_delay_unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unlockDelayUnit") unless @unlock_delay_unit.nil? @unlock_delay_value = unlock_delay_value Jsii::Type.check_type(@unlock_delay_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "unlockDelayValue") unless @unlock_delay_value.nil? end |
Instance Attribute Details
#unlock_delay_unit ⇒ String? (readonly)
The unit of time in which to measure the unlock delay.
Currently, the unlock delay can be measured only in days.
745 746 747 |
# File 'rbin/cfn_rule.rb', line 745 def unlock_delay_unit @unlock_delay_unit end |
#unlock_delay_value ⇒ Numeric? (readonly)
The unlock delay period, measured in the unit specified for UnlockDelayUnit .
750 751 752 |
# File 'rbin/cfn_rule.rb', line 750 def unlock_delay_value @unlock_delay_value end |
Class Method Details
.jsii_properties ⇒ Object
752 753 754 755 756 757 |
# File 'rbin/cfn_rule.rb', line 752 def self.jsii_properties { :unlock_delay_unit => "unlockDelayUnit", :unlock_delay_value => "unlockDelayValue", } end |
Instance Method Details
#to_jsii ⇒ Object
759 760 761 762 763 764 765 766 |
# File 'rbin/cfn_rule.rb', line 759 def to_jsii result = {} result.merge!({ "unlockDelayUnit" => @unlock_delay_unit, "unlockDelayValue" => @unlock_delay_value, }) result.compact end |