Class: AWSCDK::QuickSight::CfnTemplate::BodySectionConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::BodySectionConfigurationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The configuration of a body section.
Instance Attribute Summary collapse
-
#content ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::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.
2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 |
# File 'quick_sight/cfn_template.rb', line 2211 def initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil) @content = content.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::BodySectionContentProperty.new(**content.transform_keys(&:to_sym)) : content Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkJvZHlTZWN0aW9uQ29udGVudFByb3BlcnR5In1dfX0=")), "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::CfnTemplate::SectionPageBreakConfigurationProperty.new(**page_break_configuration.transform_keys(&:to_sym)) : page_break_configuration Jsii::Type.check_type(@page_break_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNlY3Rpb25QYWdlQnJlYWtDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "pageBreakConfiguration") unless @page_break_configuration.nil? @repeat_configuration = repeat_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::BodySectionRepeatConfigurationProperty.new(**repeat_configuration.transform_keys(&:to_sym)) : repeat_configuration Jsii::Type.check_type(@repeat_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkJvZHlTZWN0aW9uUmVwZWF0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "repeatConfiguration") unless @repeat_configuration.nil? @style = style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::SectionStyleProperty.new(**style.transform_keys(&:to_sym)) : style Jsii::Type.check_type(@style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNlY3Rpb25TdHlsZVByb3BlcnR5In1dfX0=")), "style") unless @style.nil? end |
Instance Attribute Details
#content ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::BodySectionContentProperty (readonly)
The configuration of content in a body section.
2228 2229 2230 |
# File 'quick_sight/cfn_template.rb', line 2228 def content @content end |
#page_break_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of a page break for a section.
2238 2239 2240 |
# File 'quick_sight/cfn_template.rb', line 2238 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.
2243 2244 2245 |
# File 'quick_sight/cfn_template.rb', line 2243 def repeat_configuration @repeat_configuration end |
#section_id ⇒ String (readonly)
The unique identifier of a body section.
2233 2234 2235 |
# File 'quick_sight/cfn_template.rb', line 2233 def section_id @section_id end |
#style ⇒ AWSCDK::IResolvable, ... (readonly)
The style options of a body section.
2248 2249 2250 |
# File 'quick_sight/cfn_template.rb', line 2248 def style @style end |
Class Method Details
.jsii_properties ⇒ Object
2250 2251 2252 2253 2254 2255 2256 2257 2258 |
# File 'quick_sight/cfn_template.rb', line 2250 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
2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 |
# File 'quick_sight/cfn_template.rb', line 2260 def to_jsii result = {} result.merge!({ "content" => @content, "sectionId" => @section_id, "pageBreakConfiguration" => @page_break_configuration, "repeatConfiguration" => @repeat_configuration, "style" => @style, }) result.compact end |