Class: AWSCDK::S3::CfnStorageLens::BucketsAndRegionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLens::BucketsAndRegionsProperty
- Defined in:
- s3/cfn_storage_lens.rb
Overview
This resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration.
Instance Attribute Summary collapse
-
#buckets ⇒ Array<String>?
readonly
This property contains the details of the buckets for the Amazon S3 Storage Lens configuration.
-
#regions ⇒ Array<String>?
readonly
This property contains the details of the Regions for the S3 Storage Lens configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(buckets: nil, regions: nil) ⇒ BucketsAndRegionsProperty
constructor
A new instance of BucketsAndRegionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(buckets: nil, regions: nil) ⇒ BucketsAndRegionsProperty
Returns a new instance of BucketsAndRegionsProperty.
884 885 886 887 888 889 |
# File 's3/cfn_storage_lens.rb', line 884 def initialize(buckets: nil, regions: nil) @buckets = buckets Jsii::Type.check_type(@buckets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "buckets") unless @buckets.nil? @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") unless @regions.nil? end |
Instance Attribute Details
#buckets ⇒ Array<String>? (readonly)
This property contains the details of the buckets for the Amazon S3 Storage Lens configuration.
This should be the bucket Amazon Resource Name(ARN). For valid values, see Buckets ARN format here in the Amazon S3 API Reference .
897 898 899 |
# File 's3/cfn_storage_lens.rb', line 897 def buckets @buckets end |
#regions ⇒ Array<String>? (readonly)
This property contains the details of the Regions for the S3 Storage Lens configuration.
902 903 904 |
# File 's3/cfn_storage_lens.rb', line 902 def regions @regions end |
Class Method Details
.jsii_properties ⇒ Object
904 905 906 907 908 909 |
# File 's3/cfn_storage_lens.rb', line 904 def self.jsii_properties { :buckets => "buckets", :regions => "regions", } end |
Instance Method Details
#to_jsii ⇒ Object
911 912 913 914 915 916 917 918 |
# File 's3/cfn_storage_lens.rb', line 911 def to_jsii result = {} result.merge!({ "buckets" => @buckets, "regions" => @regions, }) result.compact end |