Class: AWSCDK::QuickSight::CfnTemplate::TransposedTableOptionProperty

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

Overview

The column option of the transposed table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_type:, column_index: nil, column_width: nil) ⇒ TransposedTableOptionProperty

Returns a new instance of TransposedTableOptionProperty.

Parameters:

  • column_type (String)

    The column type of the column in a transposed table. Choose one of the following options:.

  • column_index (Numeric, nil) (defaults to: nil)

    The index of a columns in a transposed table.

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

    The width of a column in a transposed table.



28592
28593
28594
28595
28596
28597
28598
28599
# File 'quick_sight/cfn_template.rb', line 28592

def initialize(column_type:, column_index: nil, column_width: nil)
  @column_type = column_type
  Jsii::Type.check_type(@column_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnType")
  @column_index = column_index
  Jsii::Type.check_type(@column_index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "columnIndex") unless @column_index.nil?
  @column_width = column_width
  Jsii::Type.check_type(@column_width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnWidth") unless @column_width.nil?
end

Instance Attribute Details

#column_indexNumeric? (readonly)

The index of a columns in a transposed table.

The index range is 0-9999.



28615
28616
28617
# File 'quick_sight/cfn_template.rb', line 28615

def column_index
  @column_index
end

#column_typeString (readonly)

The column type of the column in a transposed table. Choose one of the following options:.

  • ROW_HEADER_COLUMN : Refers to the leftmost column of the row header in the transposed table.
  • VALUE_COLUMN : Refers to all value columns in the transposed table.


28608
28609
28610
# File 'quick_sight/cfn_template.rb', line 28608

def column_type
  @column_type
end

#column_widthString? (readonly)

The width of a column in a transposed table.



28620
28621
28622
# File 'quick_sight/cfn_template.rb', line 28620

def column_width
  @column_width
end

Class Method Details

.jsii_propertiesObject



28622
28623
28624
28625
28626
28627
28628
# File 'quick_sight/cfn_template.rb', line 28622

def self.jsii_properties
  {
    :column_type => "columnType",
    :column_index => "columnIndex",
    :column_width => "columnWidth",
  }
end

Instance Method Details

#to_jsiiObject



28630
28631
28632
28633
28634
28635
28636
28637
28638
# File 'quick_sight/cfn_template.rb', line 28630

def to_jsii
  result = {}
  result.merge!({
    "columnType" => @column_type,
    "columnIndex" => @column_index,
    "columnWidth" => @column_width,
  })
  result.compact
end