Class: AWSCDK::Rbin::CfnRule::UnlockDelayProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unlock_delay_unit: nil, unlock_delay_value: nil) ⇒ UnlockDelayProperty

Returns a new instance of UnlockDelayProperty.

Parameters:

  • unlock_delay_unit (String, nil) (defaults to: nil)

    The unit of time in which to measure the unlock delay.

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

    The unlock delay period, measured in the unit specified for UnlockDelayUnit .



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_unitString? (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_valueNumeric? (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_propertiesObject



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_jsiiObject



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