Class: AWSCDK::Glue::CfnPartition::ColumnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_partition.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 .



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

#commentString? (readonly)

A free-form text comment.



560
561
562
# File 'glue/cfn_partition.rb', line 560

def comment
  @comment
end

#nameString (readonly)

The name of the Column .



555
556
557
# File 'glue/cfn_partition.rb', line 555

def name
  @name
end

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



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_jsiiObject



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