Class: AWSCDK::QuickSight::CfnDashboard::ShortFormatTextProperty

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

Overview

The text format for the title.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plain_text: nil, rich_text: nil) ⇒ ShortFormatTextProperty

Returns a new instance of ShortFormatTextProperty.

Parameters:

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

    Plain text format.

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

    Rich text.



27770
27771
27772
27773
27774
27775
# File 'quick_sight/cfn_dashboard.rb', line 27770

def initialize(plain_text: nil, rich_text: nil)
  @plain_text = plain_text
  Jsii::Type.check_type(@plain_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "plainText") unless @plain_text.nil?
  @rich_text = rich_text
  Jsii::Type.check_type(@rich_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "richText") unless @rich_text.nil?
end

Instance Attribute Details

#plain_textString? (readonly)

Plain text format.



27781
27782
27783
# File 'quick_sight/cfn_dashboard.rb', line 27781

def plain_text
  @plain_text
end

#rich_textString? (readonly)

Rich text.

Examples of rich text include bold, underline, and italics.



27788
27789
27790
# File 'quick_sight/cfn_dashboard.rb', line 27788

def rich_text
  @rich_text
end

Class Method Details

.jsii_propertiesObject



27790
27791
27792
27793
27794
27795
# File 'quick_sight/cfn_dashboard.rb', line 27790

def self.jsii_properties
  {
    :plain_text => "plainText",
    :rich_text => "richText",
  }
end

Instance Method Details

#to_jsiiObject



27797
27798
27799
27800
27801
27802
27803
27804
# File 'quick_sight/cfn_dashboard.rb', line 27797

def to_jsii
  result = {}
  result.merge!({
    "plainText" => @plain_text,
    "richText" => @rich_text,
  })
  result.compact
end