Class: AWSCDK::S3::CfnStorageLensGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLensGroupProps
- Defined in:
- s3/cfn_storage_lens_group_props.rb
Overview
Properties for defining a CfnStorageLensGroup.
Instance Attribute Summary collapse
-
#filter ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnStorageLensGroup::FilterProperty
readonly
This property contains the criteria for the Storage Lens group data that is displayed.
-
#name ⇒ String
readonly
This property contains the Storage Lens group name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
This property contains the AWS resource tags that you're adding to your Storage Lens group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filter:, name:, tags: nil) ⇒ CfnStorageLensGroupProps
constructor
A new instance of CfnStorageLensGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(filter:, name:, tags: nil) ⇒ CfnStorageLensGroupProps
Returns a new instance of CfnStorageLensGroupProps.
12 13 14 15 16 17 18 19 |
# File 's3/cfn_storage_lens_group_props.rb', line 12 def initialize(filter:, name:, tags: nil) @filter = filter.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLensGroup::FilterProperty.new(**filter.transform_keys(&:to_sym)) : filter Jsii::Type.check_type(@filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVuc0dyb3VwLkZpbHRlclByb3BlcnR5In1dfX0=")), "filter") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @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
#filter ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnStorageLensGroup::FilterProperty (readonly)
This property contains the criteria for the Storage Lens group data that is displayed.
25 26 27 |
# File 's3/cfn_storage_lens_group_props.rb', line 25 def filter @filter end |
#name ⇒ String (readonly)
This property contains the Storage Lens group name.
30 31 32 |
# File 's3/cfn_storage_lens_group_props.rb', line 30 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
This property contains the AWS resource tags that you're adding to your Storage Lens group.
This parameter is optional.
37 38 39 |
# File 's3/cfn_storage_lens_group_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 's3/cfn_storage_lens_group_props.rb', line 39 def self.jsii_properties { :filter => "filter", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 's3/cfn_storage_lens_group_props.rb', line 47 def to_jsii result = {} result.merge!({ "filter" => @filter, "name" => @name, "tags" => @tags, }) result.compact end |