Class: AWSCDK::QuickSight::CfnDataSet::PivotedLabelProperty

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

Overview

Specifies a label value to be pivoted into a separate column, including the new column name and identifier.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label_name:, new_column_id:, new_column_name:) ⇒ PivotedLabelProperty

Returns a new instance of PivotedLabelProperty.

Parameters:

  • label_name (String)

    The label value from the source data to be pivoted.

  • new_column_id (String)

    A unique identifier for the new column created from this pivoted label.

  • new_column_name (String)

    The name for the new column created from this pivoted label.



4555
4556
4557
4558
4559
4560
4561
4562
# File 'quick_sight/cfn_data_set.rb', line 4555

def initialize(label_name:, new_column_id:, new_column_name:)
  @label_name = label_name
  Jsii::Type.check_type(@label_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "labelName")
  @new_column_id = new_column_id
  Jsii::Type.check_type(@new_column_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "newColumnId")
  @new_column_name = new_column_name
  Jsii::Type.check_type(@new_column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "newColumnName")
end

Instance Attribute Details

#label_nameString (readonly)

The label value from the source data to be pivoted.



4568
4569
4570
# File 'quick_sight/cfn_data_set.rb', line 4568

def label_name
  @label_name
end

#new_column_idString (readonly)

A unique identifier for the new column created from this pivoted label.



4573
4574
4575
# File 'quick_sight/cfn_data_set.rb', line 4573

def new_column_id
  @new_column_id
end

#new_column_nameString (readonly)

The name for the new column created from this pivoted label.



4578
4579
4580
# File 'quick_sight/cfn_data_set.rb', line 4578

def new_column_name
  @new_column_name
end

Class Method Details

.jsii_propertiesObject



4580
4581
4582
4583
4584
4585
4586
# File 'quick_sight/cfn_data_set.rb', line 4580

def self.jsii_properties
  {
    :label_name => "labelName",
    :new_column_id => "newColumnId",
    :new_column_name => "newColumnName",
  }
end

Instance Method Details

#to_jsiiObject



4588
4589
4590
4591
4592
4593
4594
4595
4596
# File 'quick_sight/cfn_data_set.rb', line 4588

def to_jsii
  result = {}
  result.merge!({
    "labelName" => @label_name,
    "newColumnId" => @new_column_id,
    "newColumnName" => @new_column_name,
  })
  result.compact
end