Class: AWSCDK::S3::CfnStorageLens::DataExportProperty

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

Overview

This resource contains the details of the Amazon S3 Storage Lens metrics export.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_metrics: nil, s3_bucket_destination: nil, storage_lens_table_destination: nil) ⇒ DataExportProperty

Returns a new instance of DataExportProperty.

Parameters:



965
966
967
968
969
970
971
972
# File 's3/cfn_storage_lens.rb', line 965

def initialize(cloud_watch_metrics: nil, s3_bucket_destination: nil, storage_lens_table_destination: nil)
  @cloud_watch_metrics = cloud_watch_metrics.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::CloudWatchMetricsProperty.new(**cloud_watch_metrics.transform_keys(&:to_sym)) : cloud_watch_metrics
  Jsii::Type.check_type(@cloud_watch_metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5DbG91ZFdhdGNoTWV0cmljc1Byb3BlcnR5In1dfX0=")), "cloudWatchMetrics") unless @cloud_watch_metrics.nil?
  @s3_bucket_destination = s3_bucket_destination.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::S3BucketDestinationProperty.new(**s3_bucket_destination.transform_keys(&:to_sym)) : s3_bucket_destination
  Jsii::Type.check_type(@s3_bucket_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5TM0J1Y2tldERlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "s3BucketDestination") unless @s3_bucket_destination.nil?
  @storage_lens_table_destination = storage_lens_table_destination.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::StorageLensTableDestinationProperty.new(**storage_lens_table_destination.transform_keys(&:to_sym)) : storage_lens_table_destination
  Jsii::Type.check_type(@storage_lens_table_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5TdG9yYWdlTGVuc1RhYmxlRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "storageLensTableDestination") unless @storage_lens_table_destination.nil?
end

Instance Attribute Details

#cloud_watch_metricsAWSCDK::IResolvable, ... (readonly)

This property enables the Amazon CloudWatch publishing option for S3 Storage Lens metrics.



978
979
980
# File 's3/cfn_storage_lens.rb', line 978

def cloud_watch_metrics
  @cloud_watch_metrics
end

#s3_bucket_destinationAWSCDK::IResolvable, ... (readonly)

This property contains the details of the bucket where the S3 Storage Lens metrics export will be placed.



983
984
985
# File 's3/cfn_storage_lens.rb', line 983

def s3_bucket_destination
  @s3_bucket_destination
end

#storage_lens_table_destinationAWSCDK::IResolvable, ... (readonly)

This property contains the details of the S3 table bucket where the S3 Storage Lens default metrics report will be placed.

This property enables you to store your Storage Lens metrics in read-only S3 Tables.



990
991
992
# File 's3/cfn_storage_lens.rb', line 990

def storage_lens_table_destination
  @storage_lens_table_destination
end

Class Method Details

.jsii_propertiesObject



992
993
994
995
996
997
998
# File 's3/cfn_storage_lens.rb', line 992

def self.jsii_properties
  {
    :cloud_watch_metrics => "cloudWatchMetrics",
    :s3_bucket_destination => "s3BucketDestination",
    :storage_lens_table_destination => "storageLensTableDestination",
  }
end

Instance Method Details

#to_jsiiObject



1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 's3/cfn_storage_lens.rb', line 1000

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchMetrics" => @cloud_watch_metrics,
    "s3BucketDestination" => @s3_bucket_destination,
    "storageLensTableDestination" => @storage_lens_table_destination,
  })
  result.compact
end