Class: AWSCDK::S3::CfnStorageLensProps

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

Overview

Properties for defining a CfnStorageLens.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(storage_lens_configuration:, tags: nil) ⇒ CfnStorageLensProps

Returns a new instance of CfnStorageLensProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#storage_lens_configurationAWSCDK::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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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