Class: AWSCDK::QuickSight::CfnDataSet::CalculatedColumnProperty

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

Overview

A calculated column for a dataset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_id:, column_name:, expression:) ⇒ CalculatedColumnProperty

Returns a new instance of CalculatedColumnProperty.

Parameters:

  • column_id (String)

    A unique ID to identify a calculated column.

  • column_name (String)

    Column name.

  • expression (String)

    An expression that defines the calculated column.



1094
1095
1096
1097
1098
1099
1100
1101
# File 'quick_sight/cfn_data_set.rb', line 1094

def initialize(column_id:, column_name:, expression:)
  @column_id = column_id
  Jsii::Type.check_type(@column_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnId")
  @column_name = column_name
  Jsii::Type.check_type(@column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnName")
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression")
end

Instance Attribute Details

#column_idString (readonly)

A unique ID to identify a calculated column.

During a dataset update, if the column ID of a calculated column matches that of an existing calculated column, Quick Sight preserves the existing calculated column.



1109
1110
1111
# File 'quick_sight/cfn_data_set.rb', line 1109

def column_id
  @column_id
end

#column_nameString (readonly)

Column name.



1114
1115
1116
# File 'quick_sight/cfn_data_set.rb', line 1114

def column_name
  @column_name
end

#expressionString (readonly)

An expression that defines the calculated column.



1119
1120
1121
# File 'quick_sight/cfn_data_set.rb', line 1119

def expression
  @expression
end

Class Method Details

.jsii_propertiesObject



1121
1122
1123
1124
1125
1126
1127
# File 'quick_sight/cfn_data_set.rb', line 1121

def self.jsii_properties
  {
    :column_id => "columnId",
    :column_name => "columnName",
    :expression => "expression",
  }
end

Instance Method Details

#to_jsiiObject



1129
1130
1131
1132
1133
1134
1135
1136
1137
# File 'quick_sight/cfn_data_set.rb', line 1129

def to_jsii
  result = {}
  result.merge!({
    "columnId" => @column_id,
    "columnName" => @column_name,
    "expression" => @expression,
  })
  result.compact
end