Class: AWSCDK::S3::CfnStorageLensProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLensProps
- Defined in:
- s3/cfn_storage_lens_props.rb
Overview
Properties for defining a CfnStorageLens.
Instance Attribute Summary collapse
-
#storage_lens_configuration ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnStorageLens::StorageLensConfigurationProperty
readonly
This resource contains the details Amazon S3 Storage Lens configuration.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A set of tags (key–value pairs) to associate with the Storage Lens configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(storage_lens_configuration:, tags: nil) ⇒ CfnStorageLensProps
constructor
A new instance of CfnStorageLensProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(storage_lens_configuration:, tags: nil) ⇒ CfnStorageLensProps
Returns a new instance of CfnStorageLensProps.
11 12 13 14 15 16 |
# File 's3/cfn_storage_lens_props.rb', line 11 def initialize(storage_lens_configuration:, tags: nil) @storage_lens_configuration = storage_lens_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::StorageLensConfigurationProperty.new(**storage_lens_configuration.transform_keys(&:to_sym)) : storage_lens_configuration Jsii::Type.check_type(@storage_lens_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5TdG9yYWdlTGVuc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "storageLensConfiguration") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#storage_lens_configuration ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnStorageLens::StorageLensConfigurationProperty (readonly)
This resource contains the details Amazon S3 Storage Lens configuration.
22 23 24 |
# File 's3/cfn_storage_lens_props.rb', line 22 def storage_lens_configuration @storage_lens_configuration end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A set of tags (key–value pairs) to associate with the Storage Lens configuration.
27 28 29 |
# File 's3/cfn_storage_lens_props.rb', line 27 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 's3/cfn_storage_lens_props.rb', line 29 def self.jsii_properties { :storage_lens_configuration => "storageLensConfiguration", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 's3/cfn_storage_lens_props.rb', line 36 def to_jsii result = {} result.merge!({ "storageLensConfiguration" => @storage_lens_configuration, "tags" => @tags, }) result.compact end |