Class: AWSCDK::IoTAnalytics::CfnDatastore::ColumnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_datastore.rb

Overview

Contains information about a column that stores your data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:) ⇒ ColumnProperty

Returns a new instance of ColumnProperty.

Parameters:

  • name (String)

    The name of the column.

  • type (String)

    The type of data.



602
603
604
605
606
607
# File 'io_t_analytics/cfn_datastore.rb', line 602

def initialize(name:, type:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#nameString (readonly)

The name of the column.



613
614
615
# File 'io_t_analytics/cfn_datastore.rb', line 613

def name
  @name
end

#typeString (readonly)

The type of data.

For more information about the supported data types, see Common data types in the AWS Glue Developer Guide .



620
621
622
# File 'io_t_analytics/cfn_datastore.rb', line 620

def type
  @type
end

Class Method Details

.jsii_propertiesObject



622
623
624
625
626
627
# File 'io_t_analytics/cfn_datastore.rb', line 622

def self.jsii_properties
  {
    :name => "name",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



629
630
631
632
633
634
635
636
# File 'io_t_analytics/cfn_datastore.rb', line 629

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "type" => @type,
  })
  result.compact
end