Class: AWSCDK::QuickSight::CfnDashboard::BodySectionConfigurationProperty

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

Overview

The configuration of a body section.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil) ⇒ BodySectionConfigurationProperty

Returns a new instance of BodySectionConfigurationProperty.

Parameters:



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

#page_break_configurationAWSCDK::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_configurationAWSCDK::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_idString (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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