Class: AWSCDK::QuickSight::CfnTemplate::TableCellStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::TableCellStyleProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The table cell style for a cell in pivot table or table visual.
Instance Attribute Summary collapse
-
#background_color ⇒ String?
readonly
The background color for the table cells.
-
#border ⇒ AWSCDK::IResolvable, ...
readonly
The borders for the table cells.
-
#font_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The font configuration of the table cells.
-
#height ⇒ Numeric?
readonly
The height color for the table cells.
-
#horizontal_text_alignment ⇒ String?
readonly
The horizontal text alignment (left, center, right, auto) for the table cells.
-
#text_wrap ⇒ String?
readonly
The text wrap (none, wrap) for the table cells.
-
#vertical_text_alignment ⇒ String?
readonly
The vertical text alignment (top, middle, bottom) for the table cells.
-
#visibility ⇒ String?
readonly
The visibility of the table cells.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background_color: nil, border: nil, font_configuration: nil, height: nil, horizontal_text_alignment: nil, text_wrap: nil, vertical_text_alignment: nil, visibility: nil) ⇒ TableCellStyleProperty
constructor
A new instance of TableCellStyleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background_color: nil, border: nil, font_configuration: nil, height: nil, horizontal_text_alignment: nil, text_wrap: nil, vertical_text_alignment: nil, visibility: nil) ⇒ TableCellStyleProperty
Returns a new instance of TableCellStyleProperty.
25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 |
# File 'quick_sight/cfn_template.rb', line 25691 def initialize(background_color: nil, border: nil, font_configuration: nil, height: nil, horizontal_text_alignment: nil, text_wrap: nil, vertical_text_alignment: nil, visibility: nil) @background_color = background_color Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backgroundColor") unless @background_color.nil? @border = border.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GlobalTableBorderOptionsProperty.new(**border.transform_keys(&:to_sym)) : border Jsii::Type.check_type(@border, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdsb2JhbFRhYmxlQm9yZGVyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "border") unless @border.nil? @font_configuration = font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontConfigurationProperty.new(**font_configuration.transform_keys(&:to_sym)) : font_configuration Jsii::Type.check_type(@font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "fontConfiguration") unless @font_configuration.nil? @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "height") unless @height.nil? @horizontal_text_alignment = horizontal_text_alignment Jsii::Type.check_type(@horizontal_text_alignment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "horizontalTextAlignment") unless @horizontal_text_alignment.nil? @text_wrap = text_wrap Jsii::Type.check_type(@text_wrap, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textWrap") unless @text_wrap.nil? @vertical_text_alignment = vertical_text_alignment Jsii::Type.check_type(@vertical_text_alignment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "verticalTextAlignment") unless @vertical_text_alignment.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? end |
Instance Attribute Details
#background_color ⇒ String? (readonly)
The background color for the table cells.
25714 25715 25716 |
# File 'quick_sight/cfn_template.rb', line 25714 def background_color @background_color end |
#border ⇒ AWSCDK::IResolvable, ... (readonly)
The borders for the table cells.
25719 25720 25721 |
# File 'quick_sight/cfn_template.rb', line 25719 def border @border end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the table cells.
25724 25725 25726 |
# File 'quick_sight/cfn_template.rb', line 25724 def font_configuration @font_configuration end |
#height ⇒ Numeric? (readonly)
The height color for the table cells.
25729 25730 25731 |
# File 'quick_sight/cfn_template.rb', line 25729 def height @height end |
#horizontal_text_alignment ⇒ String? (readonly)
The horizontal text alignment (left, center, right, auto) for the table cells.
25734 25735 25736 |
# File 'quick_sight/cfn_template.rb', line 25734 def horizontal_text_alignment @horizontal_text_alignment end |
#text_wrap ⇒ String? (readonly)
The text wrap (none, wrap) for the table cells.
25739 25740 25741 |
# File 'quick_sight/cfn_template.rb', line 25739 def text_wrap @text_wrap end |
#vertical_text_alignment ⇒ String? (readonly)
The vertical text alignment (top, middle, bottom) for the table cells.
25744 25745 25746 |
# File 'quick_sight/cfn_template.rb', line 25744 def vertical_text_alignment @vertical_text_alignment end |
#visibility ⇒ String? (readonly)
The visibility of the table cells.
25749 25750 25751 |
# File 'quick_sight/cfn_template.rb', line 25749 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 |
# File 'quick_sight/cfn_template.rb', line 25751 def self.jsii_properties { :background_color => "backgroundColor", :border => "border", :font_configuration => "fontConfiguration", :height => "height", :horizontal_text_alignment => "horizontalTextAlignment", :text_wrap => "textWrap", :vertical_text_alignment => "verticalTextAlignment", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 |
# File 'quick_sight/cfn_template.rb', line 25764 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "border" => @border, "fontConfiguration" => @font_configuration, "height" => @height, "horizontalTextAlignment" => @horizontal_text_alignment, "textWrap" => @text_wrap, "verticalTextAlignment" => @vertical_text_alignment, "visibility" => @visibility, }) result.compact end |