Class: AWSCDK::S3::CfnBucket::MetadataConfigurationProperty

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

Overview

Creates a V2 Amazon S3 Metadata configuration of a general purpose bucket.

For more information, see Accelerating data discovery with S3 Metadata in the Amazon S3 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(journal_table_configuration:, annotation_table_configuration: nil, destination: nil, inventory_table_configuration: nil) ⇒ MetadataConfigurationProperty

Returns a new instance of MetadataConfigurationProperty.

Parameters:



2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
# File 's3/cfn_bucket.rb', line 2258

def initialize(journal_table_configuration:, annotation_table_configuration: nil, destination: nil, inventory_table_configuration: nil)
  @journal_table_configuration = journal_table_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::JournalTableConfigurationProperty.new(**journal_table_configuration.transform_keys(&:to_sym)) : journal_table_configuration
  Jsii::Type.check_type(@journal_table_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuSm91cm5hbFRhYmxlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "journalTableConfiguration")
  @annotation_table_configuration = annotation_table_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::AnnotationTableConfigurationProperty.new(**annotation_table_configuration.transform_keys(&:to_sym)) : annotation_table_configuration
  Jsii::Type.check_type(@annotation_table_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuQW5ub3RhdGlvblRhYmxlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "annotationTableConfiguration") unless @annotation_table_configuration.nil?
  @destination = destination.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::MetadataDestinationProperty.new(**destination.transform_keys(&:to_sym)) : destination
  Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuTWV0YWRhdGFEZXN0aW5hdGlvblByb3BlcnR5In1dfX0=")), "destination") unless @destination.nil?
  @inventory_table_configuration = inventory_table_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::InventoryTableConfigurationProperty.new(**inventory_table_configuration.transform_keys(&:to_sym)) : inventory_table_configuration
  Jsii::Type.check_type(@inventory_table_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuSW52ZW50b3J5VGFibGVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "inventoryTableConfiguration") unless @inventory_table_configuration.nil?
end

Instance Attribute Details

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



2276
2277
2278
# File 's3/cfn_bucket.rb', line 2276

def annotation_table_configuration
  @annotation_table_configuration
end

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

The destination information for the S3 Metadata configuration.



2281
2282
2283
# File 's3/cfn_bucket.rb', line 2281

def destination
  @destination
end

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

The inventory table configuration for a metadata configuration.



2286
2287
2288
# File 's3/cfn_bucket.rb', line 2286

def inventory_table_configuration
  @inventory_table_configuration
end

#journal_table_configurationAWSCDK::IResolvable, AWSCDK::S3::CfnBucket::JournalTableConfigurationProperty (readonly)

The journal table configuration for a metadata configuration.



2273
2274
2275
# File 's3/cfn_bucket.rb', line 2273

def journal_table_configuration
  @journal_table_configuration
end

Class Method Details

.jsii_propertiesObject



2288
2289
2290
2291
2292
2293
2294
2295
# File 's3/cfn_bucket.rb', line 2288

def self.jsii_properties
  {
    :journal_table_configuration => "journalTableConfiguration",
    :annotation_table_configuration => "annotationTableConfiguration",
    :destination => "destination",
    :inventory_table_configuration => "inventoryTableConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
# File 's3/cfn_bucket.rb', line 2297

def to_jsii
  result = {}
  result.merge!({
    "journalTableConfiguration" => @journal_table_configuration,
    "annotationTableConfiguration" => @annotation_table_configuration,
    "destination" => @destination,
    "inventoryTableConfiguration" => @inventory_table_configuration,
  })
  result.compact
end