Class: AWSCDK::QuickSight::CfnTemplate::TableOptionsProperty

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



26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
# File 'quick_sight/cfn_template.rb', line 26421

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

Instance Attribute Details

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

The table cell style of table cells.



26436
26437
26438
# File 'quick_sight/cfn_template.rb', line 26436

def cell_style
  @cell_style
end

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

The table cell style of a table header.



26441
26442
26443
# File 'quick_sight/cfn_template.rb', line 26441

def header_style
  @header_style
end

#orientationString? (readonly)

The orientation (vertical, horizontal) for a table.



26446
26447
26448
# File 'quick_sight/cfn_template.rb', line 26446

def orientation
  @orientation
end

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

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



26451
26452
26453
# File 'quick_sight/cfn_template.rb', line 26451

def row_alternate_color_options
  @row_alternate_color_options
end

Class Method Details

.jsii_propertiesObject



26453
26454
26455
26456
26457
26458
26459
26460
# File 'quick_sight/cfn_template.rb', line 26453

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

Instance Method Details

#to_jsiiObject



26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
# File 'quick_sight/cfn_template.rb', line 26462

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