Class: AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

The table cell style for a cell in pivot table or table visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • background_color (String, nil) (defaults to: nil)

    The background color for the table cells.

  • border (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::GlobalTableBorderOptionsProperty, nil) (defaults to: nil)

    The borders for the table cells.

  • font_configuration (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::FontConfigurationProperty, nil) (defaults to: nil)

    The font configuration of the table cells.

  • height (Numeric, nil) (defaults to: nil)

    The height color for the table cells.

  • horizontal_text_alignment (String, nil) (defaults to: nil)

    The horizontal text alignment (left, center, right, auto) for the table cells.

  • text_wrap (String, nil) (defaults to: nil)

    The text wrap (none, wrap) for the table cells.

  • vertical_text_alignment (String, nil) (defaults to: nil)

    The vertical text alignment (top, middle, bottom) for the table cells.

  • visibility (String, nil) (defaults to: nil)

    The visibility of the table cells.



28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
# File 'quick_sight/cfn_dashboard.rb', line 28861

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::CfnDashboard::GlobalTableBorderOptionsProperty.new(**border.transform_keys(&:to_sym)) : border
  Jsii::Type.check_type(@border, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HbG9iYWxUYWJsZUJvcmRlck9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "border") unless @border.nil?
  @font_configuration = font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FontConfigurationProperty.new(**font_configuration.transform_keys(&:to_sym)) : font_configuration
  Jsii::Type.check_type(@font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Gb250Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "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_colorString? (readonly)

The background color for the table cells.



28884
28885
28886
# File 'quick_sight/cfn_dashboard.rb', line 28884

def background_color
  @background_color
end

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

The borders for the table cells.



28889
28890
28891
# File 'quick_sight/cfn_dashboard.rb', line 28889

def border
  @border
end

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

The font configuration of the table cells.



28894
28895
28896
# File 'quick_sight/cfn_dashboard.rb', line 28894

def font_configuration
  @font_configuration
end

#heightNumeric? (readonly)

The height color for the table cells.



28899
28900
28901
# File 'quick_sight/cfn_dashboard.rb', line 28899

def height
  @height
end

#horizontal_text_alignmentString? (readonly)

The horizontal text alignment (left, center, right, auto) for the table cells.



28904
28905
28906
# File 'quick_sight/cfn_dashboard.rb', line 28904

def horizontal_text_alignment
  @horizontal_text_alignment
end

#text_wrapString? (readonly)

The text wrap (none, wrap) for the table cells.



28909
28910
28911
# File 'quick_sight/cfn_dashboard.rb', line 28909

def text_wrap
  @text_wrap
end

#vertical_text_alignmentString? (readonly)

The vertical text alignment (top, middle, bottom) for the table cells.



28914
28915
28916
# File 'quick_sight/cfn_dashboard.rb', line 28914

def vertical_text_alignment
  @vertical_text_alignment
end

#visibilityString? (readonly)

The visibility of the table cells.



28919
28920
28921
# File 'quick_sight/cfn_dashboard.rb', line 28919

def visibility
  @visibility
end

Class Method Details

.jsii_propertiesObject



28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
# File 'quick_sight/cfn_dashboard.rb', line 28921

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_jsiiObject



28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
# File 'quick_sight/cfn_dashboard.rb', line 28934

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