Class: AWSCDK::QuickSight::CfnDataSet::InputColumnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_data_set.rb

Overview

Metadata for a column that is used as the input of a transform operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, id: nil, sub_type: nil) ⇒ InputColumnProperty

Returns a new instance of InputColumnProperty.

Parameters:

  • name (String)

    The name of this column in the underlying data source.

  • type (String)

    The data type of the column.

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

    A unique identifier for the input column.

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

    The sub data type of the column.



3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
# File 'quick_sight/cfn_data_set.rb', line 3485

def initialize(name:, type:, id: nil, sub_type: nil)
  @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")
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") unless @id.nil?
  @sub_type = sub_type
  Jsii::Type.check_type(@sub_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subType") unless @sub_type.nil?
end

Instance Attribute Details

#idString? (readonly)

A unique identifier for the input column.



3510
3511
3512
# File 'quick_sight/cfn_data_set.rb', line 3510

def id
  @id
end

#nameString (readonly)

The name of this column in the underlying data source.



3500
3501
3502
# File 'quick_sight/cfn_data_set.rb', line 3500

def name
  @name
end

#sub_typeString? (readonly)

The sub data type of the column.

Sub types are only available for decimal columns that are part of a SPICE dataset.



3517
3518
3519
# File 'quick_sight/cfn_data_set.rb', line 3517

def sub_type
  @sub_type
end

#typeString (readonly)

The data type of the column.



3505
3506
3507
# File 'quick_sight/cfn_data_set.rb', line 3505

def type
  @type
end

Class Method Details

.jsii_propertiesObject



3519
3520
3521
3522
3523
3524
3525
3526
# File 'quick_sight/cfn_data_set.rb', line 3519

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

Instance Method Details

#to_jsiiObject



3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
# File 'quick_sight/cfn_data_set.rb', line 3528

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