Class: AWSCDK::QuickSight::CfnAnalysis::TableCellStyleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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::CfnAnalysis::GlobalTableBorderOptionsProperty, nil) (defaults to: nil)

    The borders for the table cells.

  • font_configuration (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::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.



27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
# File 'quick_sight/cfn_analysis.rb', line 27823

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



27846
27847
27848
# File 'quick_sight/cfn_analysis.rb', line 27846

def background_color
  @background_color
end

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

The borders for the table cells.



27851
27852
27853
# File 'quick_sight/cfn_analysis.rb', line 27851

def border
  @border
end

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

The font configuration of the table cells.



27856
27857
27858
# File 'quick_sight/cfn_analysis.rb', line 27856

def font_configuration
  @font_configuration
end

#heightNumeric? (readonly)

The height color for the table cells.



27861
27862
27863
# File 'quick_sight/cfn_analysis.rb', line 27861

def height
  @height
end

#horizontal_text_alignmentString? (readonly)

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



27866
27867
27868
# File 'quick_sight/cfn_analysis.rb', line 27866

def horizontal_text_alignment
  @horizontal_text_alignment
end

#text_wrapString? (readonly)

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



27871
27872
27873
# File 'quick_sight/cfn_analysis.rb', line 27871

def text_wrap
  @text_wrap
end

#vertical_text_alignmentString? (readonly)

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



27876
27877
27878
# File 'quick_sight/cfn_analysis.rb', line 27876

def vertical_text_alignment
  @vertical_text_alignment
end

#visibilityString? (readonly)

The visibility of the table cells.



27881
27882
27883
# File 'quick_sight/cfn_analysis.rb', line 27881

def visibility
  @visibility
end

Class Method Details

.jsii_propertiesObject



27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
# File 'quick_sight/cfn_analysis.rb', line 27883

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



27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
# File 'quick_sight/cfn_analysis.rb', line 27896

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