Class: AWSCDK::QuickSight::CfnAnalysis::TableOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TableOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.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.
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 = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::RowAlternateColorOptionsProperty.new(**.transform_keys(&:to_sym)) : 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_style ⇒ AWSCDK::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_style ⇒ AWSCDK::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 |
#orientation ⇒ String? (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_options ⇒ AWSCDK::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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |