Class: AWSCDK::Glue::CfnTableProps

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

Overview

Properties for defining a CfnTable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id:, database_name:, name: nil, open_table_format_input: nil, table_input: nil) ⇒ CfnTableProps

Returns a new instance of CfnTableProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'glue/cfn_table_props.rb', line 14

def initialize(catalog_id:, database_name:, name: nil, open_table_format_input: nil, table_input: nil)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId")
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @open_table_format_input = open_table_format_input.is_a?(Hash) ? ::AWSCDK::Glue::CfnTable::OpenTableFormatInputProperty.new(**open_table_format_input.transform_keys(&:to_sym)) : open_table_format_input
  Jsii::Type.check_type(@open_table_format_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblRhYmxlLk9wZW5UYWJsZUZvcm1hdElucHV0UHJvcGVydHkifV19fQ==")), "openTableFormatInput") unless @open_table_format_input.nil?
  @table_input = table_input.is_a?(Hash) ? ::AWSCDK::Glue::CfnTable::TableInputProperty.new(**table_input.transform_keys(&:to_sym)) : table_input
  Jsii::Type.check_type(@table_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblRhYmxlLlRhYmxlSW5wdXRQcm9wZXJ0eSJ9XX19")), "tableInput") unless @table_input.nil?
end

Instance Attribute Details

#catalog_idString (readonly)

The ID of the Data Catalog in which to create the Table .



31
32
33
# File 'glue/cfn_table_props.rb', line 31

def catalog_id
  @catalog_id
end

#database_nameString (readonly)

The name of the database where the table metadata resides.

For Hive compatibility, this must be all lowercase.



38
39
40
# File 'glue/cfn_table_props.rb', line 38

def database_name
  @database_name
end

#nameString? (readonly)



41
42
43
# File 'glue/cfn_table_props.rb', line 41

def name
  @name
end

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

Specifies an OpenTableFormatInput structure when creating an open format table.



46
47
48
# File 'glue/cfn_table_props.rb', line 46

def open_table_format_input
  @open_table_format_input
end

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

A structure used to define a table.



51
52
53
# File 'glue/cfn_table_props.rb', line 51

def table_input
  @table_input
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'glue/cfn_table_props.rb', line 53

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :database_name => "databaseName",
    :name => "name",
    :open_table_format_input => "openTableFormatInput",
    :table_input => "tableInput",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'glue/cfn_table_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "catalogId" => @catalog_id,
    "databaseName" => @database_name,
    "name" => @name,
    "openTableFormatInput" => @open_table_format_input,
    "tableInput" => @table_input,
  })
  result.compact
end