Class: AWSCDK::QuickSight::CfnTemplate::FontConfigurationProperty

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

Overview

Configures the display properties of the given text.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(font_color: nil, font_decoration: nil, font_family: nil, font_size: nil, font_style: nil, font_weight: nil) ⇒ FontConfigurationProperty

Returns a new instance of FontConfigurationProperty.

Parameters:

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

    Determines the color of the text.

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

    Determines the appearance of decorative lines on the text.

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

    The font family that you want to use.

  • font_size (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::FontSizeProperty, nil) (defaults to: nil)

    The option that determines the text display size.

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

    Determines the text display face that is inherited by the given font family.

  • font_weight (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::FontWeightProperty, nil) (defaults to: nil)

    The option that determines the text display weight, or boldness.



10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
# File 'quick_sight/cfn_template.rb', line 10743

def initialize(font_color: nil, font_decoration: nil, font_family: nil, font_size: nil, font_style: nil, font_weight: nil)
  @font_color = font_color
  Jsii::Type.check_type(@font_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontColor") unless @font_color.nil?
  @font_decoration = font_decoration
  Jsii::Type.check_type(@font_decoration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontDecoration") unless @font_decoration.nil?
  @font_family = font_family
  Jsii::Type.check_type(@font_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontFamily") unless @font_family.nil?
  @font_size = font_size.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontSizeProperty.new(**font_size.transform_keys(&:to_sym)) : font_size
  Jsii::Type.check_type(@font_size, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRTaXplUHJvcGVydHkifV19fQ==")), "fontSize") unless @font_size.nil?
  @font_style = font_style
  Jsii::Type.check_type(@font_style, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontStyle") unless @font_style.nil?
  @font_weight = font_weight.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontWeightProperty.new(**font_weight.transform_keys(&:to_sym)) : font_weight
  Jsii::Type.check_type(@font_weight, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRXZWlnaHRQcm9wZXJ0eSJ9XX19")), "fontWeight") unless @font_weight.nil?
end

Instance Attribute Details

#font_colorString? (readonly)

Determines the color of the text.



10762
10763
10764
# File 'quick_sight/cfn_template.rb', line 10762

def font_color
  @font_color
end

#font_decorationString? (readonly)

Determines the appearance of decorative lines on the text.



10767
10768
10769
# File 'quick_sight/cfn_template.rb', line 10767

def font_decoration
  @font_decoration
end

#font_familyString? (readonly)

The font family that you want to use.



10772
10773
10774
# File 'quick_sight/cfn_template.rb', line 10772

def font_family
  @font_family
end

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

The option that determines the text display size.



10777
10778
10779
# File 'quick_sight/cfn_template.rb', line 10777

def font_size
  @font_size
end

#font_styleString? (readonly)

Determines the text display face that is inherited by the given font family.



10782
10783
10784
# File 'quick_sight/cfn_template.rb', line 10782

def font_style
  @font_style
end

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

The option that determines the text display weight, or boldness.



10787
10788
10789
# File 'quick_sight/cfn_template.rb', line 10787

def font_weight
  @font_weight
end

Class Method Details

.jsii_propertiesObject



10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
# File 'quick_sight/cfn_template.rb', line 10789

def self.jsii_properties
  {
    :font_color => "fontColor",
    :font_decoration => "fontDecoration",
    :font_family => "fontFamily",
    :font_size => "fontSize",
    :font_style => "fontStyle",
    :font_weight => "fontWeight",
  }
end

Instance Method Details

#to_jsiiObject



10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
# File 'quick_sight/cfn_template.rb', line 10800

def to_jsii
  result = {}
  result.merge!({
    "fontColor" => @font_color,
    "fontDecoration" => @font_decoration,
    "fontFamily" => @font_family,
    "fontSize" => @font_size,
    "fontStyle" => @font_style,
    "fontWeight" => @font_weight,
  })
  result.compact
end