Class: AWSCDK::S3::CfnStorageLens::SelectionCriteriaProperty

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

Overview

This resource contains the details of the Amazon S3 Storage Lens selection criteria.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delimiter: nil, max_depth: nil, min_storage_bytes_percentage: nil) ⇒ SelectionCriteriaProperty

Returns a new instance of SelectionCriteriaProperty.

Parameters:

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

    This property contains the details of the S3 Storage Lens delimiter being used.

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

    This property contains the details of the max depth that S3 Storage Lens will collect metrics up to.

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

    This property contains the details of the minimum storage bytes percentage threshold that S3 Storage Lens will collect metrics up to.



1296
1297
1298
1299
1300
1301
1302
1303
# File 's3/cfn_storage_lens.rb', line 1296

def initialize(delimiter: nil, max_depth: nil, min_storage_bytes_percentage: nil)
  @delimiter = delimiter
  Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter") unless @delimiter.nil?
  @max_depth = max_depth
  Jsii::Type.check_type(@max_depth, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxDepth") unless @max_depth.nil?
  @min_storage_bytes_percentage = min_storage_bytes_percentage
  Jsii::Type.check_type(@min_storage_bytes_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minStorageBytesPercentage") unless @min_storage_bytes_percentage.nil?
end

Instance Attribute Details

#delimiterString? (readonly)

This property contains the details of the S3 Storage Lens delimiter being used.



1309
1310
1311
# File 's3/cfn_storage_lens.rb', line 1309

def delimiter
  @delimiter
end

#max_depthNumeric? (readonly)

This property contains the details of the max depth that S3 Storage Lens will collect metrics up to.



1314
1315
1316
# File 's3/cfn_storage_lens.rb', line 1314

def max_depth
  @max_depth
end

#min_storage_bytes_percentageNumeric? (readonly)

This property contains the details of the minimum storage bytes percentage threshold that S3 Storage Lens will collect metrics up to.



1319
1320
1321
# File 's3/cfn_storage_lens.rb', line 1319

def min_storage_bytes_percentage
  @min_storage_bytes_percentage
end

Class Method Details

.jsii_propertiesObject



1321
1322
1323
1324
1325
1326
1327
# File 's3/cfn_storage_lens.rb', line 1321

def self.jsii_properties
  {
    :delimiter => "delimiter",
    :max_depth => "maxDepth",
    :min_storage_bytes_percentage => "minStorageBytesPercentage",
  }
end

Instance Method Details

#to_jsiiObject



1329
1330
1331
1332
1333
1334
1335
1336
1337
# File 's3/cfn_storage_lens.rb', line 1329

def to_jsii
  result = {}
  result.merge!({
    "delimiter" => @delimiter,
    "maxDepth" => @max_depth,
    "minStorageBytesPercentage" => @min_storage_bytes_percentage,
  })
  result.compact
end