Class: AWSCDK::S3Tables::CfnTable::CompactionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_tables/cfn_table.rb

Overview

Contains details about the compaction settings for an Iceberg table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil, target_file_size_mb: nil) ⇒ CompactionProperty

Returns a new instance of CompactionProperty.

Parameters:

  • status (String, nil) (defaults to: nil)

    The status of the maintenance configuration.

  • target_file_size_mb (Numeric, nil) (defaults to: nil)

    The target file size for the table in MB.



666
667
668
669
670
671
# File 's3_tables/cfn_table.rb', line 666

def initialize(status: nil, target_file_size_mb: nil)
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @target_file_size_mb = target_file_size_mb
  Jsii::Type.check_type(@target_file_size_mb, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetFileSizeMb") unless @target_file_size_mb.nil?
end

Instance Attribute Details

#statusString? (readonly)

The status of the maintenance configuration.



677
678
679
# File 's3_tables/cfn_table.rb', line 677

def status
  @status
end

#target_file_size_mbNumeric? (readonly)

The target file size for the table in MB.



682
683
684
# File 's3_tables/cfn_table.rb', line 682

def target_file_size_mb
  @target_file_size_mb
end

Class Method Details

.jsii_propertiesObject



684
685
686
687
688
689
# File 's3_tables/cfn_table.rb', line 684

def self.jsii_properties
  {
    :status => "status",
    :target_file_size_mb => "targetFileSizeMb",
  }
end

Instance Method Details

#to_jsiiObject



691
692
693
694
695
696
697
698
# File 's3_tables/cfn_table.rb', line 691

def to_jsii
  result = {}
  result.merge!({
    "status" => @status,
    "targetFileSizeMb" => @target_file_size_mb,
  })
  result.compact
end