Class: AWSCDK::S3Tables::CfnTable::IcebergPartitionSpecProperty

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

Overview

Partition specification for an Iceberg table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields:, spec_id: nil) ⇒ IcebergPartitionSpecProperty

Returns a new instance of IcebergPartitionSpecProperty.

Parameters:



847
848
849
850
851
852
# File 's3_tables/cfn_table.rb', line 847

def initialize(fields:, spec_id: nil)
  @fields = fields
  Jsii::Type.check_type(@fields, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczN0YWJsZXMuQ2ZuVGFibGUuSWNlYmVyZ1BhcnRpdGlvbkZpZWxkUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "fields")
  @spec_id = spec_id
  Jsii::Type.check_type(@spec_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "specId") unless @spec_id.nil?
end

Instance Attribute Details

#spec_idNumeric? (readonly)

The partition spec ID (defaults to 0 if not specified).



863
864
865
# File 's3_tables/cfn_table.rb', line 863

def spec_id
  @spec_id
end

Class Method Details

.jsii_propertiesObject



865
866
867
868
869
870
# File 's3_tables/cfn_table.rb', line 865

def self.jsii_properties
  {
    :fields => "fields",
    :spec_id => "specId",
  }
end

Instance Method Details

#to_jsiiObject



872
873
874
875
876
877
878
879
# File 's3_tables/cfn_table.rb', line 872

def to_jsii
  result = {}
  result.merge!({
    "fields" => @fields,
    "specId" => @spec_id,
  })
  result.compact
end