Class: AWSCDK::QuickSight::CfnDashboard::TableOptionsProperty

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

Overview

The table options for a table visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) ⇒ TableOptionsProperty

Returns a new instance of TableOptionsProperty.

Parameters:



29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
# File 'quick_sight/cfn_dashboard.rb', line 29591

def initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil)
  @cell_style = cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**cell_style.transform_keys(&:to_sym)) : cell_style
  Jsii::Type.check_type(@cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "cellStyle") unless @cell_style.nil?
  @header_style = header_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**header_style.transform_keys(&:to_sym)) : header_style
  Jsii::Type.check_type(@header_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "headerStyle") unless @header_style.nil?
  @orientation = orientation
  Jsii::Type.check_type(@orientation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "orientation") unless @orientation.nil?
  @row_alternate_color_options = row_alternate_color_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::RowAlternateColorOptionsProperty.new(**row_alternate_color_options.transform_keys(&:to_sym)) : row_alternate_color_options
  Jsii::Type.check_type(@row_alternate_color_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Sb3dBbHRlcm5hdGVDb2xvck9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "rowAlternateColorOptions") unless @row_alternate_color_options.nil?
end

Instance Attribute Details

#cell_styleAWSCDK::IResolvable, ... (readonly)

The table cell style of table cells.



29606
29607
29608
# File 'quick_sight/cfn_dashboard.rb', line 29606

def cell_style
  @cell_style
end

#header_styleAWSCDK::IResolvable, ... (readonly)

The table cell style of a table header.



29611
29612
29613
# File 'quick_sight/cfn_dashboard.rb', line 29611

def header_style
  @header_style
end

#orientationString? (readonly)

The orientation (vertical, horizontal) for a table.



29616
29617
29618
# File 'quick_sight/cfn_dashboard.rb', line 29616

def orientation
  @orientation
end

#row_alternate_color_optionsAWSCDK::IResolvable, ... (readonly)

The row alternate color options (widget status, row alternate colors) for a table.



29621
29622
29623
# File 'quick_sight/cfn_dashboard.rb', line 29621

def row_alternate_color_options
  @row_alternate_color_options
end

Class Method Details

.jsii_propertiesObject



29623
29624
29625
29626
29627
29628
29629
29630
# File 'quick_sight/cfn_dashboard.rb', line 29623

def self.jsii_properties
  {
    :cell_style => "cellStyle",
    :header_style => "headerStyle",
    :orientation => "orientation",
    :row_alternate_color_options => "rowAlternateColorOptions",
  }
end

Instance Method Details

#to_jsiiObject



29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
# File 'quick_sight/cfn_dashboard.rb', line 29632

def to_jsii
  result = {}
  result.merge!({
    "cellStyle" => @cell_style,
    "headerStyle" => @header_style,
    "orientation" => @orientation,
    "rowAlternateColorOptions" => @row_alternate_color_options,
  })
  result.compact
end