Class: AWSCDK::Glue::CfnTable::IcebergTableInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnTable::IcebergTableInputProperty
- Defined in:
- glue/cfn_table.rb
Overview
Instance Attribute Summary collapse
- #location ⇒ String readonly
- #partition_spec ⇒ AWSCDK::IResolvable, ... readonly
- #properties ⇒ Object? readonly
- #schema ⇒ AWSCDK::IResolvable, AWSCDK::Glue::CfnTable::IcebergSchemaProperty readonly
- #write_order ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:, schema:, partition_spec: nil, properties: nil, write_order: nil) ⇒ IcebergTableInputProperty
constructor
A new instance of IcebergTableInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location:, schema:, partition_spec: nil, properties: nil, write_order: nil) ⇒ IcebergTableInputProperty
Returns a new instance of IcebergTableInputProperty.
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
#location ⇒ String (readonly)
971 972 973 |
# File 'glue/cfn_table.rb', line 971 def location @location end |
#partition_spec ⇒ AWSCDK::IResolvable, ... (readonly)
977 978 979 |
# File 'glue/cfn_table.rb', line 977 def partition_spec @partition_spec end |
#properties ⇒ Object? (readonly)
980 981 982 |
# File 'glue/cfn_table.rb', line 980 def properties @properties end |
#schema ⇒ AWSCDK::IResolvable, AWSCDK::Glue::CfnTable::IcebergSchemaProperty (readonly)
974 975 976 |
# File 'glue/cfn_table.rb', line 974 def schema @schema end |
#write_order ⇒ AWSCDK::IResolvable, ... (readonly)
983 984 985 |
# File 'glue/cfn_table.rb', line 983 def write_order @write_order end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |