Class: AWSCDK::QuickSight::CfnDataSet::ColumnToUnpivotProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::ColumnToUnpivotProperty
- 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
-
#column_name ⇒ String?
readonly
The name of the column to unpivot from the source data.
-
#new_value ⇒ String?
readonly
The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column_name: nil, new_value: nil) ⇒ ColumnToUnpivotProperty
constructor
A new instance of ColumnToUnpivotProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column_name: nil, new_value: nil) ⇒ ColumnToUnpivotProperty
Returns a new instance of ColumnToUnpivotProperty.
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_name ⇒ String? (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_value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |