Class: AWSCDK::QuickSight::CfnAnalysis::TableOptionsProperty

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



28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
# File 'quick_sight/cfn_analysis.rb', line 28553

def initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil)
  @cell_style = cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TableCellStyleProperty.new(**cell_style.transform_keys(&:to_sym)) : cell_style
  Jsii::Type.check_type(@cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "cellStyle") unless @cell_style.nil?
  @header_style = header_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TableCellStyleProperty.new(**header_style.transform_keys(&:to_sym)) : header_style
  Jsii::Type.check_type(@header_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "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::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlJvd0FsdGVybmF0ZUNvbG9yT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "rowAlternateColorOptions") unless @row_alternate_color_options.nil?
end

Instance Attribute Details

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

The table cell style of table cells.



28568
28569
28570
# File 'quick_sight/cfn_analysis.rb', line 28568

def cell_style
  @cell_style
end

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

The table cell style of a table header.



28573
28574
28575
# File 'quick_sight/cfn_analysis.rb', line 28573

def header_style
  @header_style
end

#orientationString? (readonly)

The orientation (vertical, horizontal) for a table.



28578
28579
28580
# File 'quick_sight/cfn_analysis.rb', line 28578

def orientation
  @orientation
end

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

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



28583
28584
28585
# File 'quick_sight/cfn_analysis.rb', line 28583

def row_alternate_color_options
  @row_alternate_color_options
end

Class Method Details

.jsii_propertiesObject



28585
28586
28587
28588
28589
28590
28591
28592
# File 'quick_sight/cfn_analysis.rb', line 28585

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

Instance Method Details

#to_jsiiObject



28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
# File 'quick_sight/cfn_analysis.rb', line 28594

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