Class: AWSCDK::Glue::CfnTable::ColumnProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnTable::ColumnProperty
- Defined in:
- glue/cfn_table.rb
Overview
A column in a Table .
Instance Attribute Summary collapse
-
#comment ⇒ String?
readonly
A free-form text comment.
-
#name ⇒ String
readonly
The name of the
Column. -
#type ⇒ String?
readonly
The data type of the
Column.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, comment: nil, type: nil) ⇒ ColumnProperty
constructor
A new instance of ColumnProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, comment: nil, type: nil) ⇒ ColumnProperty
Returns a new instance of ColumnProperty.
554 555 556 557 558 559 560 561 |
# File 'glue/cfn_table.rb', line 554 def initialize(name:, comment: nil, type: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @comment = comment Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#comment ⇒ String? (readonly)
A free-form text comment.
572 573 574 |
# File 'glue/cfn_table.rb', line 572 def comment @comment end |
#name ⇒ String (readonly)
The name of the Column .
567 568 569 |
# File 'glue/cfn_table.rb', line 567 def name @name end |
#type ⇒ String? (readonly)
The data type of the Column .
577 578 579 |
# File 'glue/cfn_table.rb', line 577 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
579 580 581 582 583 584 585 |
# File 'glue/cfn_table.rb', line 579 def self.jsii_properties { :name => "name", :comment => "comment", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
587 588 589 590 591 592 593 594 595 |
# File 'glue/cfn_table.rb', line 587 def to_jsii result = {} result.merge!({ "name" => @name, "comment" => @comment, "type" => @type, }) result.compact end |