Class: AWSCDK::S3::CfnStorageLensGroup::MatchObjectSizeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_storage_lens_group.rb

Overview

This resource filters objects that match the specified object size range.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bytes_greater_than: nil, bytes_less_than: nil) ⇒ MatchObjectSizeProperty

Returns a new instance of MatchObjectSizeProperty.

Parameters:

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

    This property specifies the minimum object size in bytes.

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

    This property specifies the maximum object size in bytes.



776
777
778
779
780
781
# File 's3/cfn_storage_lens_group.rb', line 776

def initialize(bytes_greater_than: nil, bytes_less_than: nil)
  @bytes_greater_than = bytes_greater_than
  Jsii::Type.check_type(@bytes_greater_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bytesGreaterThan") unless @bytes_greater_than.nil?
  @bytes_less_than = bytes_less_than
  Jsii::Type.check_type(@bytes_less_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bytesLessThan") unless @bytes_less_than.nil?
end

Instance Attribute Details

#bytes_greater_thanNumeric? (readonly)

This property specifies the minimum object size in bytes.

The value must be a positive number, greater than 0 and less than 5 TB.



789
790
791
# File 's3/cfn_storage_lens_group.rb', line 789

def bytes_greater_than
  @bytes_greater_than
end

#bytes_less_thanNumeric? (readonly)

This property specifies the maximum object size in bytes.

The value must be a positive number, greater than the minimum object size and less than 5 TB.



796
797
798
# File 's3/cfn_storage_lens_group.rb', line 796

def bytes_less_than
  @bytes_less_than
end

Class Method Details

.jsii_propertiesObject



798
799
800
801
802
803
# File 's3/cfn_storage_lens_group.rb', line 798

def self.jsii_properties
  {
    :bytes_greater_than => "bytesGreaterThan",
    :bytes_less_than => "bytesLessThan",
  }
end

Instance Method Details

#to_jsiiObject



805
806
807
808
809
810
811
812
# File 's3/cfn_storage_lens_group.rb', line 805

def to_jsii
  result = {}
  result.merge!({
    "bytesGreaterThan" => @bytes_greater_than,
    "bytesLessThan" => @bytes_less_than,
  })
  result.compact
end