Class: AWSCDK::Glue::CfnTable::ColumnProperty

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

Overview

A column in a Table .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, comment: nil, type: nil) ⇒ ColumnProperty

Returns a new instance of ColumnProperty.

Parameters:

  • name (String)

    The name of the Column .

  • comment (String, nil) (defaults to: nil)

    A free-form text comment.

  • type (String, nil) (defaults to: nil)

    The data type of the Column .



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

#commentString? (readonly)

A free-form text comment.



572
573
574
# File 'glue/cfn_table.rb', line 572

def comment
  @comment
end

#nameString (readonly)

The name of the Column .



567
568
569
# File 'glue/cfn_table.rb', line 567

def name
  @name
end

#typeString? (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_propertiesObject



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_jsiiObject



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