Class: AWSCDK::S3::CfnStorageLens::PrefixLevelStorageMetricsProperty

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

Overview

This resource contains the details of the prefix-level storage metrics for Amazon S3 Storage Lens.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(is_enabled: nil, selection_criteria: nil) ⇒ PrefixLevelStorageMetricsProperty

Returns a new instance of PrefixLevelStorageMetricsProperty.

Parameters:



1134
1135
1136
1137
1138
1139
# File 's3/cfn_storage_lens.rb', line 1134

def initialize(is_enabled: nil, selection_criteria: nil)
  @is_enabled = is_enabled
  Jsii::Type.check_type(@is_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isEnabled") unless @is_enabled.nil?
  @selection_criteria = selection_criteria.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::SelectionCriteriaProperty.new(**selection_criteria.transform_keys(&:to_sym)) : selection_criteria
  Jsii::Type.check_type(@selection_criteria, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5TZWxlY3Rpb25Dcml0ZXJpYVByb3BlcnR5In1dfX0=")), "selectionCriteria") unless @selection_criteria.nil?
end

Instance Attribute Details

#is_enabledBoolean, ... (readonly)

This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.



1145
1146
1147
# File 's3/cfn_storage_lens.rb', line 1145

def is_enabled
  @is_enabled
end

#selection_criteriaAWSCDK::IResolvable, ... (readonly)

This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.



1150
1151
1152
# File 's3/cfn_storage_lens.rb', line 1150

def selection_criteria
  @selection_criteria
end

Class Method Details

.jsii_propertiesObject



1152
1153
1154
1155
1156
1157
# File 's3/cfn_storage_lens.rb', line 1152

def self.jsii_properties
  {
    :is_enabled => "isEnabled",
    :selection_criteria => "selectionCriteria",
  }
end

Instance Method Details

#to_jsiiObject



1159
1160
1161
1162
1163
1164
1165
1166
# File 's3/cfn_storage_lens.rb', line 1159

def to_jsii
  result = {}
  result.merge!({
    "isEnabled" => @is_enabled,
    "selectionCriteria" => @selection_criteria,
  })
  result.compact
end