Class: AWSCDK::QuickSight::CfnTemplate::GridLayoutScreenCanvasSizeOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



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_widthString? (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_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 .


13339
13340
13341
# File 'quick_sight/cfn_template.rb', line 13339

def resize_option
  @resize_option
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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