Class: AWSCDK::QuickSight::CfnDashboard::SheetTextBoxProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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.



27667
27668
27669
27670
27671
27672
# File 'quick_sight/cfn_dashboard.rb', line 27667

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.



27685
27686
27687
# File 'quick_sight/cfn_dashboard.rb', line 27685

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.



27680
27681
27682
# File 'quick_sight/cfn_dashboard.rb', line 27680

def sheet_text_box_id
  @sheet_text_box_id
end

Class Method Details

.jsii_propertiesObject



27687
27688
27689
27690
27691
27692
# File 'quick_sight/cfn_dashboard.rb', line 27687

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

Instance Method Details

#to_jsiiObject



27694
27695
27696
27697
27698
27699
27700
27701
# File 'quick_sight/cfn_dashboard.rb', line 27694

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