Class: AWSCDK::QuickSight::CfnAnalysis::TransposedTableOptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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.



30310
30311
30312
30313
30314
30315
30316
30317
# File 'quick_sight/cfn_analysis.rb', line 30310

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.



30333
30334
30335
# File 'quick_sight/cfn_analysis.rb', line 30333

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.


30326
30327
30328
# File 'quick_sight/cfn_analysis.rb', line 30326

def column_type
  @column_type
end

#column_widthString? (readonly)

The width of a column in a transposed table.



30338
30339
30340
# File 'quick_sight/cfn_analysis.rb', line 30338

def column_width
  @column_width
end

Class Method Details

.jsii_propertiesObject



30340
30341
30342
30343
30344
30345
30346
# File 'quick_sight/cfn_analysis.rb', line 30340

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

Instance Method Details

#to_jsiiObject



30348
30349
30350
30351
30352
30353
30354
30355
30356
# File 'quick_sight/cfn_analysis.rb', line 30348

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