Class: AWSCDK::QuickSight::CfnAnalysis::InsightVisualProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::InsightVisualProperty
- Defined in:
- quick_sight/cfn_analysis.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.
16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 |
# File 'quick_sight/cfn_analysis.rb', line 16030 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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5WaXN1YWxDdXN0b21BY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "actions") unless @actions.nil? @insight_configuration = insight_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::InsightConfigurationProperty.new(**insight_configuration.transform_keys(&:to_sym)) : insight_configuration Jsii::Type.check_type(@insight_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkluc2lnaHRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "insightConfiguration") unless @insight_configuration.nil? @subtitle = subtitle.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::VisualSubtitleLabelOptionsProperty.new(**subtitle.transform_keys(&:to_sym)) : subtitle Jsii::Type.check_type(@subtitle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbFN1YnRpdGxlTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "subtitle") unless @subtitle.nil? @title = title.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::VisualTitleLabelOptionsProperty.new(**title.transform_keys(&:to_sym)) : title Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbFRpdGxlTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "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.
16063 16064 16065 |
# File 'quick_sight/cfn_analysis.rb', line 16063 def actions @actions end |
#data_set_identifier ⇒ String (readonly)
The dataset that is used in the insight visual.
16051 16052 16053 |
# File 'quick_sight/cfn_analysis.rb', line 16051 def data_set_identifier @data_set_identifier end |
#insight_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of an insight visual.
16068 16069 16070 |
# File 'quick_sight/cfn_analysis.rb', line 16068 def insight_configuration @insight_configuration end |
#subtitle ⇒ AWSCDK::IResolvable, ... (readonly)
The subtitle that is displayed on the visual.
16073 16074 16075 |
# File 'quick_sight/cfn_analysis.rb', line 16073 def subtitle @subtitle end |
#title ⇒ AWSCDK::IResolvable, ... (readonly)
The title that is displayed on the visual.
16078 16079 16080 |
# File 'quick_sight/cfn_analysis.rb', line 16078 def title @title end |
#visual_content_alt_text ⇒ String? (readonly)
The alt text for the visual.
16083 16084 16085 |
# File 'quick_sight/cfn_analysis.rb', line 16083 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.
16058 16059 16060 |
# File 'quick_sight/cfn_analysis.rb', line 16058 def visual_id @visual_id end |
Class Method Details
.jsii_properties ⇒ Object
16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 |
# File 'quick_sight/cfn_analysis.rb', line 16085 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
16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 |
# File 'quick_sight/cfn_analysis.rb', line 16097 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 |