Class: AWSCDK::Glue::CfnTable::IcebergTableInputProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, schema:, partition_spec: nil, properties: nil, write_order: nil) ⇒ IcebergTableInputProperty

Returns a new instance of IcebergTableInputProperty.

Parameters:



956
957
958
959
960
961
962
963
964
965
966
967
# File 'glue/cfn_table.rb', line 956

def initialize(location:, schema:, partition_spec: nil, properties: nil, write_order: nil)
  @location = location
  Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location")
  @schema = schema.is_a?(Hash) ? ::AWSCDK::Glue::CfnTable::IcebergSchemaProperty.new(**schema.transform_keys(&:to_sym)) : schema
  Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblRhYmxlLkljZWJlcmdTY2hlbWFQcm9wZXJ0eSJ9XX19")), "schema")
  @partition_spec = partition_spec.is_a?(Hash) ? ::AWSCDK::Glue::CfnTable::IcebergPartitionSpecProperty.new(**partition_spec.transform_keys(&:to_sym)) : partition_spec
  Jsii::Type.check_type(@partition_spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblRhYmxlLkljZWJlcmdQYXJ0aXRpb25TcGVjUHJvcGVydHkifV19fQ==")), "partitionSpec") unless @partition_spec.nil?
  @properties = properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "properties") unless @properties.nil?
  @write_order = write_order.is_a?(Hash) ? ::AWSCDK::Glue::CfnTable::IcebergSortOrderProperty.new(**write_order.transform_keys(&:to_sym)) : write_order
  Jsii::Type.check_type(@write_order, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblRhYmxlLkljZWJlcmdTb3J0T3JkZXJQcm9wZXJ0eSJ9XX19")), "writeOrder") unless @write_order.nil?
end

Instance Attribute Details

#locationString (readonly)



971
972
973
# File 'glue/cfn_table.rb', line 971

def location
  @location
end

#propertiesObject? (readonly)



980
981
982
# File 'glue/cfn_table.rb', line 980

def properties
  @properties
end

Class Method Details

.jsii_propertiesObject



985
986
987
988
989
990
991
992
993
# File 'glue/cfn_table.rb', line 985

def self.jsii_properties
  {
    :location => "location",
    :schema => "schema",
    :partition_spec => "partitionSpec",
    :properties => "properties",
    :write_order => "writeOrder",
  }
end

Instance Method Details

#to_jsiiObject



995
996
997
998
999
1000
1001
1002
1003
1004
1005
# File 'glue/cfn_table.rb', line 995

def to_jsii
  result = {}
  result.merge!({
    "location" => @location,
    "schema" => @schema,
    "partitionSpec" => @partition_spec,
    "properties" => @properties,
    "writeOrder" => @write_order,
  })
  result.compact
end