Class: AWSCDK::QuickSight::CfnTemplate::GridLayoutScreenCanvasSizeOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::GridLayoutScreenCanvasSizeOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The options that determine the sizing of the canvas used in a grid layout.
Instance Attribute Summary collapse
-
#optimized_view_port_width ⇒ String?
readonly
The width that the view port will be optimized for when the layout renders.
-
#resize_option ⇒ String
readonly
This value determines the layout behavior when the viewport is resized.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resize_option:, optimized_view_port_width: nil) ⇒ GridLayoutScreenCanvasSizeOptionsProperty
constructor
A new instance of GridLayoutScreenCanvasSizeOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resize_option:, optimized_view_port_width: nil) ⇒ GridLayoutScreenCanvasSizeOptionsProperty
Returns a new instance of GridLayoutScreenCanvasSizeOptionsProperty.
13325 13326 13327 13328 13329 13330 |
# File 'quick_sight/cfn_template.rb', line 13325 def initialize(resize_option:, optimized_view_port_width: nil) @resize_option = resize_option Jsii::Type.check_type(@resize_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resizeOption") @optimized_view_port_width = optimized_view_port_width Jsii::Type.check_type(@optimized_view_port_width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "optimizedViewPortWidth") unless @optimized_view_port_width.nil? end |
Instance Attribute Details
#optimized_view_port_width ⇒ String? (readonly)
The width that the view port will be optimized for when the layout renders.
13344 13345 13346 |
# File 'quick_sight/cfn_template.rb', line 13344 def optimized_view_port_width @optimized_view_port_width end |
#resize_option ⇒ String (readonly)
This value determines the layout behavior when the viewport is resized.
FIXED: A fixed width will be used when optimizing the layout. In the Quick Sight console, this option is calledClassic.RESPONSIVE: The width of the canvas will be responsive and optimized to the view port. In the Quick Sight console, this option is calledTiled.
13339 13340 13341 |
# File 'quick_sight/cfn_template.rb', line 13339 def resize_option @resize_option end |
Class Method Details
.jsii_properties ⇒ Object
13346 13347 13348 13349 13350 13351 |
# File 'quick_sight/cfn_template.rb', line 13346 def self.jsii_properties { :resize_option => "resizeOption", :optimized_view_port_width => "optimizedViewPortWidth", } end |
Instance Method Details
#to_jsii ⇒ Object
13353 13354 13355 13356 13357 13358 13359 13360 |
# File 'quick_sight/cfn_template.rb', line 13353 def to_jsii result = {} result.merge!({ "resizeOption" => @resize_option, "optimizedViewPortWidth" => @optimized_view_port_width, }) result.compact end |