Class: AWSCDK::QuickSight::CfnAnalysis::GridLayoutScreenCanvasSizeOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The options that determine the sizing of the canvas used in a grid layout.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resize_option:, optimized_view_port_width: nil) ⇒ GridLayoutScreenCanvasSizeOptionsProperty

Returns a new instance of GridLayoutScreenCanvasSizeOptionsProperty.

Parameters:

  • resize_option (String)

    This value determines the layout behavior when the viewport is resized.

  • optimized_view_port_width (String, nil) (defaults to: nil)

    The width that the view port will be optimized for when the layout renders.



14832
14833
14834
14835
14836
14837
# File 'quick_sight/cfn_analysis.rb', line 14832

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_widthString? (readonly)

The width that the view port will be optimized for when the layout renders.



14851
14852
14853
# File 'quick_sight/cfn_analysis.rb', line 14851

def optimized_view_port_width
  @optimized_view_port_width
end

#resize_optionString (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 called Classic .
  • RESPONSIVE : The width of the canvas will be responsive and optimized to the view port. In the Quick Sight console, this option is called Tiled .


14846
14847
14848
# File 'quick_sight/cfn_analysis.rb', line 14846

def resize_option
  @resize_option
end

Class Method Details

.jsii_propertiesObject



14853
14854
14855
14856
14857
14858
# File 'quick_sight/cfn_analysis.rb', line 14853

def self.jsii_properties
  {
    :resize_option => "resizeOption",
    :optimized_view_port_width => "optimizedViewPortWidth",
  }
end

Instance Method Details

#to_jsiiObject



14860
14861
14862
14863
14864
14865
14866
14867
# File 'quick_sight/cfn_analysis.rb', line 14860

def to_jsii
  result = {}
  result.merge!({
    "resizeOption" => @resize_option,
    "optimizedViewPortWidth" => @optimized_view_port_width,
  })
  result.compact
end