Class: AWSCDK::QuickSight::CfnDashboard::CustomContentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::CustomContentConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The configuration of a CustomContentVisual .
Instance Attribute Summary collapse
-
#content_type ⇒ String?
readonly
The content type of the custom content visual.
-
#content_url ⇒ String?
readonly
The input URL that links to the custom content that you want in the custom visual.
-
#image_scaling ⇒ String?
readonly
The sizing options for the size of the custom content visual.
-
#interactions ⇒ AWSCDK::IResolvable, ...
readonly
The general visual interactions setup for a visual.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content_type: nil, content_url: nil, image_scaling: nil, interactions: nil) ⇒ CustomContentConfigurationProperty
constructor
A new instance of CustomContentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content_type: nil, content_url: nil, image_scaling: nil, interactions: nil) ⇒ CustomContentConfigurationProperty
Returns a new instance of CustomContentConfigurationProperty.
5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 |
# File 'quick_sight/cfn_dashboard.rb', line 5589 def initialize(content_type: nil, content_url: nil, image_scaling: nil, interactions: nil) @content_type = content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil? @content_url = content_url Jsii::Type.check_type(@content_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentUrl") unless @content_url.nil? @image_scaling = image_scaling Jsii::Type.check_type(@image_scaling, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageScaling") unless @image_scaling.nil? @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5WaXN1YWxJbnRlcmFjdGlvbk9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "interactions") unless @interactions.nil? end |
Instance Attribute Details
#content_type ⇒ String? (readonly)
The content type of the custom content visual.
You can use this to have the visual render as an image.
5606 5607 5608 |
# File 'quick_sight/cfn_dashboard.rb', line 5606 def content_type @content_type end |
#content_url ⇒ String? (readonly)
The input URL that links to the custom content that you want in the custom visual.
5611 5612 5613 |
# File 'quick_sight/cfn_dashboard.rb', line 5611 def content_url @content_url end |
#image_scaling ⇒ String? (readonly)
The sizing options for the size of the custom content visual.
This structure is required when the ContentType of the visual is 'IMAGE' .
5618 5619 5620 |
# File 'quick_sight/cfn_dashboard.rb', line 5618 def image_scaling @image_scaling end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general visual interactions setup for a visual.
5623 5624 5625 |
# File 'quick_sight/cfn_dashboard.rb', line 5623 def interactions @interactions end |
Class Method Details
.jsii_properties ⇒ Object
5625 5626 5627 5628 5629 5630 5631 5632 |
# File 'quick_sight/cfn_dashboard.rb', line 5625 def self.jsii_properties { :content_type => "contentType", :content_url => "contentUrl", :image_scaling => "imageScaling", :interactions => "interactions", } end |
Instance Method Details
#to_jsii ⇒ Object
5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 |
# File 'quick_sight/cfn_dashboard.rb', line 5634 def to_jsii result = {} result.merge!({ "contentType" => @content_type, "contentUrl" => @content_url, "imageScaling" => @image_scaling, "interactions" => @interactions, }) result.compact end |