Class: AWSCDK::QuickSight::CfnDashboard::LongFormatTextProperty

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

Overview

The text format for a subtitle.

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) ⇒ LongFormatTextProperty

Returns a new instance of LongFormatTextProperty.

Parameters:

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

    Plain text format.

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

    Rich text.



19539
19540
19541
19542
19543
19544
# File 'quick_sight/cfn_dashboard.rb', line 19539

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.



19550
19551
19552
# File 'quick_sight/cfn_dashboard.rb', line 19550

def plain_text
  @plain_text
end

#rich_textString? (readonly)

Rich text.

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



19557
19558
19559
# File 'quick_sight/cfn_dashboard.rb', line 19557

def rich_text
  @rich_text
end

Class Method Details

.jsii_propertiesObject



19559
19560
19561
19562
19563
19564
# File 'quick_sight/cfn_dashboard.rb', line 19559

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

Instance Method Details

#to_jsiiObject



19566
19567
19568
19569
19570
19571
19572
19573
# File 'quick_sight/cfn_dashboard.rb', line 19566

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