Class: AWSCDK::QuickSight::CfnAnalysis::CustomContentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::CustomContentConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 |
# File 'quick_sight/cfn_analysis.rb', line 5723 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::CfnAnalysis::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbEludGVyYWN0aW9uT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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.
5740 5741 5742 |
# File 'quick_sight/cfn_analysis.rb', line 5740 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.
5745 5746 5747 |
# File 'quick_sight/cfn_analysis.rb', line 5745 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' .
5752 5753 5754 |
# File 'quick_sight/cfn_analysis.rb', line 5752 def image_scaling @image_scaling end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general visual interactions setup for a visual.
5757 5758 5759 |
# File 'quick_sight/cfn_analysis.rb', line 5757 def interactions @interactions end |
Class Method Details
.jsii_properties ⇒ Object
5759 5760 5761 5762 5763 5764 5765 5766 |
# File 'quick_sight/cfn_analysis.rb', line 5759 def self.jsii_properties { :content_type => "contentType", :content_url => "contentUrl", :image_scaling => "imageScaling", :interactions => "interactions", } end |
Instance Method Details
#to_jsii ⇒ Object
5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 |
# File 'quick_sight/cfn_analysis.rb', line 5768 def to_jsii result = {} result.merge!({ "contentType" => @content_type, "contentUrl" => @content_url, "imageScaling" => @image_scaling, "interactions" => @interactions, }) result.compact end |