Class: AWSCDK::DLM::CfnLifecyclePolicy::CrossRegionCopyDeprecateRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DLM::CfnLifecyclePolicy::CrossRegionCopyDeprecateRuleProperty
- Defined in:
- dlm/cfn_lifecycle_policy.rb
Overview
[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
Instance Attribute Summary collapse
-
#interval ⇒ Numeric
readonly
The period after which to deprecate the cross-Region AMI copies.
-
#interval_unit ⇒ String
readonly
The unit of time in which to measure the Interval .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interval:, interval_unit:) ⇒ CrossRegionCopyDeprecateRuleProperty
constructor
A new instance of CrossRegionCopyDeprecateRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(interval:, interval_unit:) ⇒ CrossRegionCopyDeprecateRuleProperty
Returns a new instance of CrossRegionCopyDeprecateRuleProperty.
949 950 951 952 953 954 |
# File 'dlm/cfn_lifecycle_policy.rb', line 949 def initialize(interval:, interval_unit:) @interval = interval Jsii::Type.check_type(@interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "interval") @interval_unit = interval_unit Jsii::Type.check_type(@interval_unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "intervalUnit") end |
Instance Attribute Details
#interval ⇒ Numeric (readonly)
The period after which to deprecate the cross-Region AMI copies.
The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
962 963 964 |
# File 'dlm/cfn_lifecycle_policy.rb', line 962 def interval @interval end |
#interval_unit ⇒ String (readonly)
The unit of time in which to measure the Interval .
For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS .
969 970 971 |
# File 'dlm/cfn_lifecycle_policy.rb', line 969 def interval_unit @interval_unit end |
Class Method Details
.jsii_properties ⇒ Object
971 972 973 974 975 976 |
# File 'dlm/cfn_lifecycle_policy.rb', line 971 def self.jsii_properties { :interval => "interval", :interval_unit => "intervalUnit", } end |
Instance Method Details
#to_jsii ⇒ Object
978 979 980 981 982 983 984 985 |
# File 'dlm/cfn_lifecycle_policy.rb', line 978 def to_jsii result = {} result.merge!({ "interval" => @interval, "intervalUnit" => @interval_unit, }) result.compact end |