Class: AWSCDK::S3::CfnStorageLens::BucketsAndRegionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buckets: nil, regions: nil) ⇒ BucketsAndRegionsProperty

Returns a new instance of BucketsAndRegionsProperty.

Parameters:

  • buckets (Array<String>, nil) (defaults to: nil)

    This property contains the details of the buckets for the Amazon S3 Storage Lens configuration.

  • regions (Array<String>, nil) (defaults to: nil)

    This property contains the details of the Regions for the S3 Storage Lens configuration.



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

#bucketsArray<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

#regionsArray<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_propertiesObject



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_jsiiObject



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