Class: AWSCDK::Glue::CfnPartition::ColumnProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnPartition::ColumnProperty
- Defined in:
- glue/cfn_partition.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.
542 543 544 545 546 547 548 549 |
# File 'glue/cfn_partition.rb', line 542 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.
560 561 562 |
# File 'glue/cfn_partition.rb', line 560 def comment @comment end |
#name ⇒ String (readonly)
The name of the Column .
555 556 557 |
# File 'glue/cfn_partition.rb', line 555 def name @name end |
#type ⇒ String? (readonly)
The data type of the Column .
565 566 567 |
# File 'glue/cfn_partition.rb', line 565 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
567 568 569 570 571 572 573 |
# File 'glue/cfn_partition.rb', line 567 def self.jsii_properties { :name => "name", :comment => "comment", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
575 576 577 578 579 580 581 582 583 |
# File 'glue/cfn_partition.rb', line 575 def to_jsii result = {} result.merge!({ "name" => @name, "comment" => @comment, "type" => @type, }) result.compact end |