Class: AWSCDK::QuickSight::CfnAnalysis::LayoutConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::LayoutConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The configuration that determines what the type of layout will be used on a sheet.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Instance Attribute Summary collapse
-
#free_form_layout ⇒ AWSCDK::IResolvable, ...
readonly
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
-
#grid_layout ⇒ AWSCDK::IResolvable, ...
readonly
A type of layout that can be used on a sheet.
-
#section_based_layout ⇒ AWSCDK::IResolvable, ...
readonly
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(free_form_layout: nil, grid_layout: nil, section_based_layout: nil) ⇒ LayoutConfigurationProperty
constructor
A new instance of LayoutConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(free_form_layout: nil, grid_layout: nil, section_based_layout: nil) ⇒ LayoutConfigurationProperty
Returns a new instance of LayoutConfigurationProperty.
17407 17408 17409 17410 17411 17412 17413 17414 |
# File 'quick_sight/cfn_analysis.rb', line 17407 def initialize(free_form_layout: nil, grid_layout: nil, section_based_layout: nil) @free_form_layout = free_form_layout.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutConfigurationProperty.new(**free_form_layout.transform_keys(&:to_sym)) : free_form_layout Jsii::Type.check_type(@free_form_layout, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZyZWVGb3JtTGF5b3V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "freeFormLayout") unless @free_form_layout.nil? @grid_layout = grid_layout.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GridLayoutConfigurationProperty.new(**grid_layout.transform_keys(&:to_sym)) : grid_layout Jsii::Type.check_type(@grid_layout, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdyaWRMYXlvdXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "gridLayout") unless @grid_layout.nil? @section_based_layout = section_based_layout.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SectionBasedLayoutConfigurationProperty.new(**section_based_layout.transform_keys(&:to_sym)) : section_based_layout Jsii::Type.check_type(@section_based_layout, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNlY3Rpb25CYXNlZExheW91dENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "sectionBasedLayout") unless @section_based_layout.nil? end |
Instance Attribute Details
#free_form_layout ⇒ AWSCDK::IResolvable, ... (readonly)
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
17420 17421 17422 |
# File 'quick_sight/cfn_analysis.rb', line 17420 def free_form_layout @free_form_layout end |
#grid_layout ⇒ AWSCDK::IResolvable, ... (readonly)
A type of layout that can be used on a sheet.
In a grid layout, visuals snap to a grid with standard spacing and alignment. Dashboards are displayed as designed, with options to fit to screen or view at actual size. A grid layout can be configured to behave in one of two ways when the viewport is resized: FIXED or RESPONSIVE .
17427 17428 17429 |
# File 'quick_sight/cfn_analysis.rb', line 17427 def grid_layout @grid_layout end |
#section_based_layout ⇒ AWSCDK::IResolvable, ... (readonly)
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
17432 17433 17434 |
# File 'quick_sight/cfn_analysis.rb', line 17432 def section_based_layout @section_based_layout end |
Class Method Details
.jsii_properties ⇒ Object
17434 17435 17436 17437 17438 17439 17440 |
# File 'quick_sight/cfn_analysis.rb', line 17434 def self.jsii_properties { :free_form_layout => "freeFormLayout", :grid_layout => "gridLayout", :section_based_layout => "sectionBasedLayout", } end |
Instance Method Details
#to_jsii ⇒ Object
17442 17443 17444 17445 17446 17447 17448 17449 17450 |
# File 'quick_sight/cfn_analysis.rb', line 17442 def to_jsii result = {} result.merge!({ "freeFormLayout" => @free_form_layout, "gridLayout" => @grid_layout, "sectionBasedLayout" => @section_based_layout, }) result.compact end |