Class: AWSCDK::QuickSight::CfnDashboard::TransposedTableOptionProperty

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



31348
31349
31350
31351
31352
31353
31354
31355
# File 'quick_sight/cfn_dashboard.rb', line 31348

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.



31371
31372
31373
# File 'quick_sight/cfn_dashboard.rb', line 31371

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.


31364
31365
31366
# File 'quick_sight/cfn_dashboard.rb', line 31364

def column_type
  @column_type
end

#column_widthString? (readonly)

The width of a column in a transposed table.



31376
31377
31378
# File 'quick_sight/cfn_dashboard.rb', line 31376

def column_width
  @column_width
end

Class Method Details

.jsii_propertiesObject



31378
31379
31380
31381
31382
31383
31384
# File 'quick_sight/cfn_dashboard.rb', line 31378

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

Instance Method Details

#to_jsiiObject



31386
31387
31388
31389
31390
31391
31392
31393
31394
# File 'quick_sight/cfn_dashboard.rb', line 31386

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