Class: AWSCDK::QuickSight::CfnTemplate::TableOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::TableOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The table options for a table visual.
Instance Attribute Summary collapse
-
#cell_style ⇒ AWSCDK::IResolvable, ...
readonly
The table cell style of table cells.
-
#header_style ⇒ AWSCDK::IResolvable, ...
readonly
The table cell style of a table header.
-
#orientation ⇒ String?
readonly
The orientation (vertical, horizontal) for a table.
-
#row_alternate_color_options ⇒ AWSCDK::IResolvable, ...
readonly
The row alternate color options (widget status, row alternate colors) for a table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) ⇒ TableOptionsProperty
constructor
A new instance of TableOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) ⇒ TableOptionsProperty
Returns a new instance of TableOptionsProperty.
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 = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::RowAlternateColorOptionsProperty.new(**.transform_keys(&:to_sym)) : 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_style ⇒ AWSCDK::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_style ⇒ AWSCDK::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 |
#orientation ⇒ String? (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_options ⇒ AWSCDK::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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |