Class: AWSCDK::QuickSight::CfnAnalysis::SheetImageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::SheetImageProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
An image that is located on a sheet.
Instance Attribute Summary collapse
-
#actions ⇒ AWSCDK::IResolvable, ...
readonly
A list of custom actions that are configured for an image.
-
#image_content_alt_text ⇒ String?
readonly
The alt text for the image.
-
#interactions ⇒ AWSCDK::IResolvable, ...
readonly
The general image interactions setup for an image.
-
#scaling ⇒ AWSCDK::IResolvable, ...
readonly
Determines how the image is scaled.
-
#sheet_image_id ⇒ String
readonly
The ID of the sheet image.
-
#source ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::SheetImageSourceProperty
readonly
The source of the image.
-
#tooltip ⇒ AWSCDK::IResolvable, ...
readonly
The tooltip to be shown when hovering over the image.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(sheet_image_id:, source:, actions: nil, image_content_alt_text: nil, interactions: nil, scaling: nil, tooltip: nil) ⇒ SheetImageProperty
constructor
A new instance of SheetImageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(sheet_image_id:, source:, actions: nil, image_content_alt_text: nil, interactions: nil, scaling: nil, tooltip: nil) ⇒ SheetImageProperty
Returns a new instance of SheetImageProperty.
26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 |
# File 'quick_sight/cfn_analysis.rb', line 26312 def initialize(sheet_image_id:, source:, actions: nil, image_content_alt_text: nil, interactions: nil, scaling: nil, tooltip: nil) @sheet_image_id = sheet_image_id Jsii::Type.check_type(@sheet_image_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sheetImageId") @source = source.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SheetImageSourceProperty.new(**source.transform_keys(&:to_sym)) : source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNoZWV0SW1hZ2VTb3VyY2VQcm9wZXJ0eSJ9XX19")), "source") @actions = actions Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5JbWFnZUN1c3RvbUFjdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "actions") unless @actions.nil? @image_content_alt_text = image_content_alt_text Jsii::Type.check_type(@image_content_alt_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageContentAltText") unless @image_content_alt_text.nil? @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ImageInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkltYWdlSW50ZXJhY3Rpb25PcHRpb25zUHJvcGVydHkifV19fQ==")), "interactions") unless @interactions.nil? @scaling = scaling.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SheetImageScalingConfigurationProperty.new(**scaling.transform_keys(&:to_sym)) : scaling Jsii::Type.check_type(@scaling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNoZWV0SW1hZ2VTY2FsaW5nQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "scaling") unless @scaling.nil? @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SheetImageTooltipConfigurationProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNoZWV0SW1hZ2VUb29sdGlwQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "tooltip") unless @tooltip.nil? end |
Instance Attribute Details
#actions ⇒ AWSCDK::IResolvable, ... (readonly)
A list of custom actions that are configured for an image.
26343 26344 26345 |
# File 'quick_sight/cfn_analysis.rb', line 26343 def actions @actions end |
#image_content_alt_text ⇒ String? (readonly)
The alt text for the image.
26348 26349 26350 |
# File 'quick_sight/cfn_analysis.rb', line 26348 def image_content_alt_text @image_content_alt_text end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general image interactions setup for an image.
26353 26354 26355 |
# File 'quick_sight/cfn_analysis.rb', line 26353 def interactions @interactions end |
#scaling ⇒ AWSCDK::IResolvable, ... (readonly)
Determines how the image is scaled.
26358 26359 26360 |
# File 'quick_sight/cfn_analysis.rb', line 26358 def scaling @scaling end |
#sheet_image_id ⇒ String (readonly)
The ID of the sheet image.
26333 26334 26335 |
# File 'quick_sight/cfn_analysis.rb', line 26333 def sheet_image_id @sheet_image_id end |
#source ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::SheetImageSourceProperty (readonly)
The source of the image.
26338 26339 26340 |
# File 'quick_sight/cfn_analysis.rb', line 26338 def source @source end |
#tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
The tooltip to be shown when hovering over the image.
26363 26364 26365 |
# File 'quick_sight/cfn_analysis.rb', line 26363 def tooltip @tooltip end |
Class Method Details
.jsii_properties ⇒ Object
26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 |
# File 'quick_sight/cfn_analysis.rb', line 26365 def self.jsii_properties { :sheet_image_id => "sheetImageId", :source => "source", :actions => "actions", :image_content_alt_text => "imageContentAltText", :interactions => "interactions", :scaling => "scaling", :tooltip => "tooltip", } end |
Instance Method Details
#to_jsii ⇒ Object
26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 |
# File 'quick_sight/cfn_analysis.rb', line 26377 def to_jsii result = {} result.merge!({ "sheetImageId" => @sheet_image_id, "source" => @source, "actions" => @actions, "imageContentAltText" => @image_content_alt_text, "interactions" => @interactions, "scaling" => @scaling, "tooltip" => @tooltip, }) result.compact end |