Class: AWSCDK::S3::CfnStorageLensGroup::MatchObjectAgeProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(days_greater_than: nil, days_less_than: nil) ⇒ MatchObjectAgeProperty

Returns a new instance of MatchObjectAgeProperty.

Parameters:

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

    This property indicates the minimum object age in days.

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

    This property indicates the maximum object age in days.



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_thanNumeric? (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_thanNumeric? (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_propertiesObject



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_jsiiObject



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