Class: AWSCDK::QuickSight::CfnTemplate::InsightVisualProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::InsightVisualProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
An insight visual.
For more information, see Working with insights in the Amazon Quick Suite User Guide .
Instance Attribute Summary collapse
-
#actions ⇒ AWSCDK::IResolvable, ...
readonly
The list of custom actions that are configured for a visual.
-
#data_set_identifier ⇒ String
readonly
The dataset that is used in the insight visual.
-
#insight_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of an insight visual.
-
#subtitle ⇒ AWSCDK::IResolvable, ...
readonly
The subtitle that is displayed on the visual.
-
#title ⇒ AWSCDK::IResolvable, ...
readonly
The title that is displayed on the visual.
-
#visual_content_alt_text ⇒ String?
readonly
The alt text for the visual.
-
#visual_id ⇒ String
readonly
The unique identifier of a visual.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_set_identifier:, visual_id:, actions: nil, insight_configuration: nil, subtitle: nil, title: nil, visual_content_alt_text: nil) ⇒ InsightVisualProperty
constructor
A new instance of InsightVisualProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_set_identifier:, visual_id:, actions: nil, insight_configuration: nil, subtitle: nil, title: nil, visual_content_alt_text: nil) ⇒ InsightVisualProperty
Returns a new instance of InsightVisualProperty.
14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 |
# File 'quick_sight/cfn_template.rb', line 14480 def initialize(data_set_identifier:, visual_id:, actions: nil, insight_configuration: nil, subtitle: nil, title: nil, visual_content_alt_text: nil) @data_set_identifier = data_set_identifier Jsii::Type.check_type(@data_set_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSetIdentifier") @visual_id = visual_id Jsii::Type.check_type(@visual_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visualId") @actions = actions Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5WaXN1YWxDdXN0b21BY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "actions") unless @actions.nil? @insight_configuration = insight_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::InsightConfigurationProperty.new(**insight_configuration.transform_keys(&:to_sym)) : insight_configuration Jsii::Type.check_type(@insight_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkluc2lnaHRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "insightConfiguration") unless @insight_configuration.nil? @subtitle = subtitle.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualSubtitleLabelOptionsProperty.new(**subtitle.transform_keys(&:to_sym)) : subtitle Jsii::Type.check_type(@subtitle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbFN1YnRpdGxlTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "subtitle") unless @subtitle.nil? @title = title.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualTitleLabelOptionsProperty.new(**title.transform_keys(&:to_sym)) : title Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbFRpdGxlTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "title") unless @title.nil? @visual_content_alt_text = visual_content_alt_text Jsii::Type.check_type(@visual_content_alt_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visualContentAltText") unless @visual_content_alt_text.nil? end |
Instance Attribute Details
#actions ⇒ AWSCDK::IResolvable, ... (readonly)
The list of custom actions that are configured for a visual.
14513 14514 14515 |
# File 'quick_sight/cfn_template.rb', line 14513 def actions @actions end |
#data_set_identifier ⇒ String (readonly)
The dataset that is used in the insight visual.
14501 14502 14503 |
# File 'quick_sight/cfn_template.rb', line 14501 def data_set_identifier @data_set_identifier end |
#insight_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of an insight visual.
14518 14519 14520 |
# File 'quick_sight/cfn_template.rb', line 14518 def insight_configuration @insight_configuration end |
#subtitle ⇒ AWSCDK::IResolvable, ... (readonly)
The subtitle that is displayed on the visual.
14523 14524 14525 |
# File 'quick_sight/cfn_template.rb', line 14523 def subtitle @subtitle end |
#title ⇒ AWSCDK::IResolvable, ... (readonly)
The title that is displayed on the visual.
14528 14529 14530 |
# File 'quick_sight/cfn_template.rb', line 14528 def title @title end |
#visual_content_alt_text ⇒ String? (readonly)
The alt text for the visual.
14533 14534 14535 |
# File 'quick_sight/cfn_template.rb', line 14533 def visual_content_alt_text @visual_content_alt_text end |
#visual_id ⇒ String (readonly)
The unique identifier of a visual.
This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
14508 14509 14510 |
# File 'quick_sight/cfn_template.rb', line 14508 def visual_id @visual_id end |
Class Method Details
.jsii_properties ⇒ Object
14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 |
# File 'quick_sight/cfn_template.rb', line 14535 def self.jsii_properties { :data_set_identifier => "dataSetIdentifier", :visual_id => "visualId", :actions => "actions", :insight_configuration => "insightConfiguration", :subtitle => "subtitle", :title => "title", :visual_content_alt_text => "visualContentAltText", } end |
Instance Method Details
#to_jsii ⇒ Object
14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 |
# File 'quick_sight/cfn_template.rb', line 14547 def to_jsii result = {} result.merge!({ "dataSetIdentifier" => @data_set_identifier, "visualId" => @visual_id, "actions" => @actions, "insightConfiguration" => @insight_configuration, "subtitle" => @subtitle, "title" => @title, "visualContentAltText" => @visual_content_alt_text, }) result.compact end |