Class: AWSCDK::QuickSight::CfnTemplate::SheetTextBoxProperty

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

Overview

A text box.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sheet_text_box_id:, content: nil) ⇒ SheetTextBoxProperty

Returns a new instance of SheetTextBoxProperty.

Parameters:

  • sheet_text_box_id (String)

    The unique identifier for a text box.

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

    The content that is displayed in the text box.



24755
24756
24757
24758
24759
24760
# File 'quick_sight/cfn_template.rb', line 24755

def initialize(sheet_text_box_id:, content: nil)
  @sheet_text_box_id = sheet_text_box_id
  Jsii::Type.check_type(@sheet_text_box_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sheetTextBoxId")
  @content = content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content") unless @content.nil?
end

Instance Attribute Details

#contentString? (readonly)

The content that is displayed in the text box.



24773
24774
24775
# File 'quick_sight/cfn_template.rb', line 24773

def content
  @content
end

#sheet_text_box_idString (readonly)

The unique identifier for a text box.

This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have text boxes that share identifiers.



24768
24769
24770
# File 'quick_sight/cfn_template.rb', line 24768

def sheet_text_box_id
  @sheet_text_box_id
end

Class Method Details

.jsii_propertiesObject



24775
24776
24777
24778
24779
24780
# File 'quick_sight/cfn_template.rb', line 24775

def self.jsii_properties
  {
    :sheet_text_box_id => "sheetTextBoxId",
    :content => "content",
  }
end

Instance Method Details

#to_jsiiObject



24782
24783
24784
24785
24786
24787
24788
24789
# File 'quick_sight/cfn_template.rb', line 24782

def to_jsii
  result = {}
  result.merge!({
    "sheetTextBoxId" => @sheet_text_box_id,
    "content" => @content,
  })
  result.compact
end