Class: AWSCDK::QuickSight::CfnDataSet::PivotConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::PivotConfigurationProperty
- Defined in:
- quick_sight/cfn_data_set.rb
Overview
Configuration for a pivot operation, specifying which column contains labels and how to pivot them.
Instance Attribute Summary collapse
-
#label_column_name ⇒ String?
readonly
The name of the column that contains the labels to be pivoted into separate columns.
-
#pivoted_labels ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDataSet::PivotedLabelProperty>
readonly
The list of specific label values to pivot into separate columns.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pivoted_labels:, label_column_name: nil) ⇒ PivotConfigurationProperty
constructor
A new instance of PivotConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(pivoted_labels:, label_column_name: nil) ⇒ PivotConfigurationProperty
Returns a new instance of PivotConfigurationProperty.
4438 4439 4440 4441 4442 4443 |
# File 'quick_sight/cfn_data_set.rb', line 4438 def initialize(pivoted_labels:, label_column_name: nil) @pivoted_labels = pivoted_labels Jsii::Type.check_type(@pivoted_labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXRhU2V0LlBpdm90ZWRMYWJlbFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "pivotedLabels") @label_column_name = label_column_name Jsii::Type.check_type(@label_column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "labelColumnName") unless @label_column_name.nil? end |
Instance Attribute Details
#label_column_name ⇒ String? (readonly)
The name of the column that contains the labels to be pivoted into separate columns.
4454 4455 4456 |
# File 'quick_sight/cfn_data_set.rb', line 4454 def label_column_name @label_column_name end |
#pivoted_labels ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDataSet::PivotedLabelProperty> (readonly)
The list of specific label values to pivot into separate columns.
4449 4450 4451 |
# File 'quick_sight/cfn_data_set.rb', line 4449 def pivoted_labels @pivoted_labels end |
Class Method Details
.jsii_properties ⇒ Object
4456 4457 4458 4459 4460 4461 |
# File 'quick_sight/cfn_data_set.rb', line 4456 def self.jsii_properties { :pivoted_labels => "pivotedLabels", :label_column_name => "labelColumnName", } end |
Instance Method Details
#to_jsii ⇒ Object
4463 4464 4465 4466 4467 4468 4469 4470 |
# File 'quick_sight/cfn_data_set.rb', line 4463 def to_jsii result = {} result.merge!({ "pivotedLabels" => @pivoted_labels, "labelColumnName" => @label_column_name, }) result.compact end |