Class: AWSCDK::S3::CfnStorageLensGroup::MatchObjectAgeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLensGroup::MatchObjectAgeProperty
- Defined in:
- s3/cfn_storage_lens_group.rb
Overview
This resource contains DaysGreaterThan and DaysLessThan to define the object age range (minimum and maximum number of days).
Instance Attribute Summary collapse
-
#days_greater_than ⇒ Numeric?
readonly
This property indicates the minimum object age in days.
-
#days_less_than ⇒ Numeric?
readonly
This property indicates the maximum object age in days.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(days_greater_than: nil, days_less_than: nil) ⇒ MatchObjectAgeProperty
constructor
A new instance of MatchObjectAgeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(days_greater_than: nil, days_less_than: nil) ⇒ MatchObjectAgeProperty
Returns a new instance of MatchObjectAgeProperty.
733 734 735 736 737 738 |
# File 's3/cfn_storage_lens_group.rb', line 733 def initialize(days_greater_than: nil, days_less_than: nil) @days_greater_than = days_greater_than Jsii::Type.check_type(@days_greater_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "daysGreaterThan") unless @days_greater_than.nil? @days_less_than = days_less_than Jsii::Type.check_type(@days_less_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "daysLessThan") unless @days_less_than.nil? end |
Instance Attribute Details
#days_greater_than ⇒ Numeric? (readonly)
This property indicates the minimum object age in days.
744 745 746 |
# File 's3/cfn_storage_lens_group.rb', line 744 def days_greater_than @days_greater_than end |
#days_less_than ⇒ Numeric? (readonly)
This property indicates the maximum object age in days.
749 750 751 |
# File 's3/cfn_storage_lens_group.rb', line 749 def days_less_than @days_less_than end |
Class Method Details
.jsii_properties ⇒ Object
751 752 753 754 755 756 |
# File 's3/cfn_storage_lens_group.rb', line 751 def self.jsii_properties { :days_greater_than => "daysGreaterThan", :days_less_than => "daysLessThan", } end |
Instance Method Details
#to_jsii ⇒ Object
758 759 760 761 762 763 764 765 |
# File 's3/cfn_storage_lens_group.rb', line 758 def to_jsii result = {} result.merge!({ "daysGreaterThan" => @days_greater_than, "daysLessThan" => @days_less_than, }) result.compact end |