Class: AWSCDK::QuickSight::CfnDataSet::ColumnToUnpivotProperty

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

Overview

Specifies a column to be unpivoted, transforming it from a column into rows with associated values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_name: nil, new_value: nil) ⇒ ColumnToUnpivotProperty

Returns a new instance of ColumnToUnpivotProperty.

Parameters:

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

    The name of the column to unpivot from the source data.

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

    The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.



1498
1499
1500
1501
1502
1503
# File 'quick_sight/cfn_data_set.rb', line 1498

def initialize(column_name: nil, new_value: nil)
  @column_name = column_name
  Jsii::Type.check_type(@column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnName") unless @column_name.nil?
  @new_value = new_value
  Jsii::Type.check_type(@new_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "newValue") unless @new_value.nil?
end

Instance Attribute Details

#column_nameString? (readonly)

The name of the column to unpivot from the source data.



1509
1510
1511
# File 'quick_sight/cfn_data_set.rb', line 1509

def column_name
  @column_name
end

#new_valueString? (readonly)

The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.



1514
1515
1516
# File 'quick_sight/cfn_data_set.rb', line 1514

def new_value
  @new_value
end

Class Method Details

.jsii_propertiesObject



1516
1517
1518
1519
1520
1521
# File 'quick_sight/cfn_data_set.rb', line 1516

def self.jsii_properties
  {
    :column_name => "columnName",
    :new_value => "newValue",
  }
end

Instance Method Details

#to_jsiiObject



1523
1524
1525
1526
1527
1528
1529
1530
# File 'quick_sight/cfn_data_set.rb', line 1523

def to_jsii
  result = {}
  result.merge!({
    "columnName" => @column_name,
    "newValue" => @new_value,
  })
  result.compact
end