Class: AWSCDK::QuickSight::CfnDashboard::BodySectionConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::BodySectionConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The configuration of a body section.
Instance Attribute Summary collapse
-
#content ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::BodySectionContentProperty
readonly
The configuration of content in a body section.
-
#page_break_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of a page break for a section.
-
#repeat_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Describes the configurations that are required to declare a section as repeating.
-
#section_id ⇒ String
readonly
The unique identifier of a body section.
-
#style ⇒ AWSCDK::IResolvable, ...
readonly
The style options of a body section.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil) ⇒ BodySectionConfigurationProperty
constructor
A new instance of BodySectionConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil) ⇒ BodySectionConfigurationProperty
Returns a new instance of BodySectionConfigurationProperty.
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 |
# File 'quick_sight/cfn_dashboard.rb', line 2355 def initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil) @content = content.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::BodySectionContentProperty.new(**content.transform_keys(&:to_sym)) : content Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Cb2R5U2VjdGlvbkNvbnRlbnRQcm9wZXJ0eSJ9XX19")), "content") @section_id = section_id Jsii::Type.check_type(@section_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sectionId") @page_break_configuration = page_break_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SectionPageBreakConfigurationProperty.new(**page_break_configuration.transform_keys(&:to_sym)) : page_break_configuration Jsii::Type.check_type(@page_break_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TZWN0aW9uUGFnZUJyZWFrQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "pageBreakConfiguration") unless @page_break_configuration.nil? @repeat_configuration = repeat_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::BodySectionRepeatConfigurationProperty.new(**repeat_configuration.transform_keys(&:to_sym)) : repeat_configuration Jsii::Type.check_type(@repeat_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Cb2R5U2VjdGlvblJlcGVhdENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "repeatConfiguration") unless @repeat_configuration.nil? @style = style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SectionStyleProperty.new(**style.transform_keys(&:to_sym)) : style Jsii::Type.check_type(@style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TZWN0aW9uU3R5bGVQcm9wZXJ0eSJ9XX19")), "style") unless @style.nil? end |
Instance Attribute Details
#content ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::BodySectionContentProperty (readonly)
The configuration of content in a body section.
2372 2373 2374 |
# File 'quick_sight/cfn_dashboard.rb', line 2372 def content @content end |
#page_break_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of a page break for a section.
2382 2383 2384 |
# File 'quick_sight/cfn_dashboard.rb', line 2382 def page_break_configuration @page_break_configuration end |
#repeat_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Describes the configurations that are required to declare a section as repeating.
2387 2388 2389 |
# File 'quick_sight/cfn_dashboard.rb', line 2387 def repeat_configuration @repeat_configuration end |
#section_id ⇒ String (readonly)
The unique identifier of a body section.
2377 2378 2379 |
# File 'quick_sight/cfn_dashboard.rb', line 2377 def section_id @section_id end |
#style ⇒ AWSCDK::IResolvable, ... (readonly)
The style options of a body section.
2392 2393 2394 |
# File 'quick_sight/cfn_dashboard.rb', line 2392 def style @style end |
Class Method Details
.jsii_properties ⇒ Object
2394 2395 2396 2397 2398 2399 2400 2401 2402 |
# File 'quick_sight/cfn_dashboard.rb', line 2394 def self.jsii_properties { :content => "content", :section_id => "sectionId", :page_break_configuration => "pageBreakConfiguration", :repeat_configuration => "repeatConfiguration", :style => "style", } end |
Instance Method Details
#to_jsii ⇒ Object
2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 |
# File 'quick_sight/cfn_dashboard.rb', line 2404 def to_jsii result = {} result.merge!({ "content" => @content, "sectionId" => @section_id, "pageBreakConfiguration" => @page_break_configuration, "repeatConfiguration" => @repeat_configuration, "style" => @style, }) result.compact end |