Class: AWSCDK::QuickSight::CfnAnalysis::BodySectionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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:



2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
# File 'quick_sight/cfn_analysis.rb', line 2489

def initialize(content:, section_id:, page_break_configuration: nil, repeat_configuration: nil, style: nil)
  @content = content.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::BodySectionContentProperty.new(**content.transform_keys(&:to_sym)) : content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkJvZHlTZWN0aW9uQ29udGVudFByb3BlcnR5In1dfX0=")), "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::CfnAnalysis::SectionPageBreakConfigurationProperty.new(**page_break_configuration.transform_keys(&:to_sym)) : page_break_configuration
  Jsii::Type.check_type(@page_break_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNlY3Rpb25QYWdlQnJlYWtDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "pageBreakConfiguration") unless @page_break_configuration.nil?
  @repeat_configuration = repeat_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::BodySectionRepeatConfigurationProperty.new(**repeat_configuration.transform_keys(&:to_sym)) : repeat_configuration
  Jsii::Type.check_type(@repeat_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkJvZHlTZWN0aW9uUmVwZWF0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "repeatConfiguration") unless @repeat_configuration.nil?
  @style = style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SectionStyleProperty.new(**style.transform_keys(&:to_sym)) : style
  Jsii::Type.check_type(@style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNlY3Rpb25TdHlsZVByb3BlcnR5In1dfX0=")), "style") unless @style.nil?
end

Instance Attribute Details

#page_break_configurationAWSCDK::IResolvable, ... (readonly)

The configuration of a page break for a section.



2516
2517
2518
# File 'quick_sight/cfn_analysis.rb', line 2516

def page_break_configuration
  @page_break_configuration
end

#repeat_configurationAWSCDK::IResolvable, ... (readonly)

Describes the configurations that are required to declare a section as repeating.



2521
2522
2523
# File 'quick_sight/cfn_analysis.rb', line 2521

def repeat_configuration
  @repeat_configuration
end

#section_idString (readonly)

The unique identifier of a body section.



2511
2512
2513
# File 'quick_sight/cfn_analysis.rb', line 2511

def section_id
  @section_id
end

Class Method Details

.jsii_propertiesObject



2528
2529
2530
2531
2532
2533
2534
2535
2536
# File 'quick_sight/cfn_analysis.rb', line 2528

def self.jsii_properties
  {
    :content => "content",
    :section_id => "sectionId",
    :page_break_configuration => "pageBreakConfiguration",
    :repeat_configuration => "repeatConfiguration",
    :style => "style",
  }
end

Instance Method Details

#to_jsiiObject



2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
# File 'quick_sight/cfn_analysis.rb', line 2538

def to_jsii
  result = {}
  result.merge!({
    "content" => @content,
    "sectionId" => @section_id,
    "pageBreakConfiguration" => @page_break_configuration,
    "repeatConfiguration" => @repeat_configuration,
    "style" => @style,
  })
  result.compact
end